@@ -1525,6 +1525,19 @@ declare namespace TelegramBot {
15251525 | BotCommandScopeChat
15261526 | BotCommandScopeChatAdministrators
15271527 | BotCommandScopeChatMember ;
1528+
1529+ interface BotName {
1530+ name : string ;
1531+ }
1532+
1533+ interface BotDescription {
1534+ description : string ;
1535+ }
1536+
1537+ interface BotShortDescription {
1538+ short_description : string ;
1539+ }
1540+
15281541 interface WebAppInfo {
15291542 url : string ;
15301543 }
@@ -2177,16 +2190,37 @@ declare class TelegramBot extends TelegramBotEventEmitter<TelegramBot.TelegramEv
21772190
21782191 setChatAdministratorCustomTitle ( chatId : TelegramBot . ChatId , userId : number , customTitle : string ) : Promise < boolean > ;
21792192
2180- getMyCommands ( scope ?: TelegramBot . BotCommandScope , language_code ?: string ) : Promise < TelegramBot . BotCommand [ ] > ;
2193+ getMyCommands (
2194+ form ?: { scope ?: TelegramBot . BotCommandScope ; language_code ?: string } ,
2195+ ) : Promise < TelegramBot . BotCommand [ ] > ;
21812196
21822197 setMyCommands (
21832198 commands : TelegramBot . BotCommand [ ] ,
2184- options ?: {
2199+ form ?: {
21852200 language_code ?: string ;
21862201 scope ?: TelegramBot . BotCommandScope ;
21872202 } ,
21882203 ) : Promise < boolean > ;
21892204
2205+ deleteMyCommands (
2206+ form ?: {
2207+ language_code ?: string ;
2208+ scope ?: TelegramBot . BotCommandScope ;
2209+ } ,
2210+ ) : Promise < boolean > ;
2211+
2212+ setMyName ( form ?: { name ?: string ; language_code ?: string } ) : Promise < boolean > ;
2213+
2214+ getMyName ( form ?: { language_code ?: string } ) : Promise < TelegramBot . BotName > ;
2215+
2216+ setMyDescription ( form ?: { description ?: string ; language_code ?: string } ) : Promise < boolean > ;
2217+
2218+ getMyDescription ( form ?: { language_code ?: string } ) : Promise < TelegramBot . BotDescription > ;
2219+
2220+ setMyShortDescription ( form ?: { short_description ?: string ; language_code ?: string } ) : Promise < boolean > ;
2221+
2222+ getMyShortDescription ( form ?: { language_code ?: string } ) : Promise < TelegramBot . BotShortDescription > ;
2223+
21902224 setChatMenuButton ( form : { chat_id ?: number ; menu_button ?: TelegramBot . MenuButton } ) : Promise < boolean > ;
21912225
21922226 getChatMenuButton ( form : { chat_id ?: number } ) : Promise < TelegramBot . MenuButton > ;
0 commit comments