Skip to content

Commit f7c94b6

Browse files
authored
fix: stringify scope field for deleteMyCommands (#1282)
1 parent 59b43a5 commit f7c94b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/telegram.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,9 @@ class TelegramBot extends EventEmitter {
25042504
* @see https://core.telegram.org/bots/api#deletemycommands
25052505
*/
25062506
deleteMyCommands(form = {}) {
2507+
if (form.scope) {
2508+
form.scope = stringify(form.scope);
2509+
}
25072510
return this._request('deleteMyCommands', { form });
25082511
}
25092512

0 commit comments

Comments
 (0)