@codebam/cf-workers-telegram-bot 11.9.0 → 11.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/telegram_api.d.ts +6 -0
- package/dist/telegram_api.js +9 -0
- package/package.json +1 -1
package/dist/telegram_api.d.ts
CHANGED
|
@@ -219,4 +219,10 @@ export default class TelegramApi {
|
|
|
219
219
|
* @returns Promise with the API response
|
|
220
220
|
*/
|
|
221
221
|
answerPreCheckoutQuery(botApi: string, data: AnswerPreCheckoutParams): Promise<Response>;
|
|
222
|
+
/**
|
|
223
|
+
* Get basic information about the bot
|
|
224
|
+
* @param botApi - full URL to the telegram API without slug
|
|
225
|
+
* @returns Promise with the API response
|
|
226
|
+
*/
|
|
227
|
+
getMe(botApi: string): Promise<Response>;
|
|
222
228
|
}
|
package/dist/telegram_api.js
CHANGED
|
@@ -206,4 +206,13 @@ export default class TelegramApi {
|
|
|
206
206
|
const url = this.getApiUrl(botApi, 'answerPreCheckoutQuery', data);
|
|
207
207
|
return await this.fetchAndLog(url, 'answerPreCheckoutQuery', data);
|
|
208
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* Get basic information about the bot
|
|
211
|
+
* @param botApi - full URL to the telegram API without slug
|
|
212
|
+
* @returns Promise with the API response
|
|
213
|
+
*/
|
|
214
|
+
async getMe(botApi) {
|
|
215
|
+
const url = this.getApiUrl(botApi, 'getMe', {});
|
|
216
|
+
return await this.fetchAndLog(url, 'getMe', {});
|
|
217
|
+
}
|
|
209
218
|
}
|