We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135ef6e commit 6856c53Copy full SHA for 6856c53
1 file changed
src/telegram_api.ts
@@ -358,4 +358,14 @@ export default class TelegramApi {
358
const url = this.getApiUrl(botApi, 'answerPreCheckoutQuery', data);
359
return await this.fetchAndLog(url, 'answerPreCheckoutQuery', data);
360
}
361
+
362
+ /**
363
+ * Get basic information about the bot
364
+ * @param botApi - full URL to the telegram API without slug
365
+ * @returns Promise with the API response
366
+ */
367
+ async getMe(botApi: string): Promise<Response> {
368
+ const url = this.getApiUrl(botApi, 'getMe', {});
369
+ return await this.fetchAndLog(url, 'getMe', {});
370
+ }
371
0 commit comments