Skip to content

Commit 0f92357

Browse files
authored
feat: Bot API v9.6 (#18)
1 parent cb526b8 commit 0f92357

4 files changed

Lines changed: 765 additions & 181 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![bot-api](https://img.shields.io/badge/v9.5-000?style=flat&logo=telegram&logoColor=%2325A3E1&label=Bot%20API&labelColor=%23000&color=%2325A3E1)][bot-api]
1+
[![bot-api](https://img.shields.io/badge/v9.6-000?style=flat&logo=telegram&logoColor=%2325A3E1&label=Bot%20API&labelColor=%23000&color=%2325A3E1)][bot-api]
22
[![npm](https://img.shields.io/npm/v/%40grom.js%2Fbot-api-spec?style=flat&logo=npm&logoColor=%23BB443E&logoSize=auto&label=Latest&labelColor=%23fff&color=%23BB443E)](https://www.npmjs.com/package/@grom.js/bot-api-spec)
33
[![jsr](https://img.shields.io/jsr/v/%40grom/bot-api-spec?style=flat&logo=jsr&logoColor=%231B3646&logoSize=auto&label=Latest&labelColor=%23F3E051&color=%231B3646)](https://jsr.io/@grom/bot-api-spec)
44

scripts/generate.ts

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,14 @@ export const OVERRIDES: OverridesConfig = {
549549
hash: 'c5f0f787',
550550
description: { markdown: 'Additional interface options. An object for an [inline keyboard](https://core.telegram.org/bots/features#inline-keyboards), [custom reply keyboard](https://core.telegram.org/bots/features#keyboards), instructions to remove a reply keyboard or to force a reply from the user' },
551551
},
552+
correct_option_ids: {
553+
hash: 'bb7b2dc2',
554+
description: { markdown: 'An array of monotonically increasing 0-based identifiers of the correct answer options, required for polls in quiz mode' },
555+
},
556+
description_entities: {
557+
hash: '0e32756f',
558+
description: { markdown: 'An array of special entities that appear in the poll description, which can be specified instead of _description\\_parse\\_mode_' },
559+
},
552560
},
553561
},
554562
sendChecklist: {
@@ -861,6 +869,14 @@ export const OVERRIDES: OverridesConfig = {
861869
hash: '29acf5f0',
862870
returnType: T_apiType('BusinessConnection'),
863871
},
872+
getManagedBotToken: {
873+
hash: 'b3181f76',
874+
returnType: T_str(),
875+
},
876+
replaceManagedBotToken: {
877+
hash: '0d2c997f',
878+
returnType: T_str(),
879+
},
864880
setMyCommands: {
865881
hash: '62c2a7f0',
866882
returnType: T_bool(true),
@@ -964,11 +980,11 @@ export const OVERRIDES: OverridesConfig = {
964980
returnType: T_bool(true),
965981
parameters: {
966982
text_parse_mode: {
967-
hash: '426b8a25',
983+
hash: '8c186b33',
968984
type: T_parseMode(),
969985
},
970986
text_entities: {
971-
hash: 'b14ecbfe',
987+
hash: '322e1ab2',
972988
description: { markdown: 'An array of special entities that appear in the gift text. It can be specified instead of _text\\_parse\\_mode_. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom\\_emoji” are ignored.' },
973989
},
974990
},
@@ -986,11 +1002,11 @@ export const OVERRIDES: OverridesConfig = {
9861002
type: T_int32Union(1000, 1500, 2500),
9871003
},
9881004
text_parse_mode: {
989-
hash: '426b8a25',
1005+
hash: '8c186b33',
9901006
type: T_parseMode(),
9911007
},
9921008
text_entities: {
993-
hash: 'b14ecbfe',
1009+
hash: '322e1ab2',
9941010
description: { markdown: 'An array of special entities that appear in the gift text. It can be specified instead of _text\\_parse\\_mode_. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom\\_emoji” are ignored.' },
9951011
},
9961012
},
@@ -1427,6 +1443,16 @@ export const OVERRIDES: OverridesConfig = {
14271443
},
14281444
},
14291445
},
1446+
savePreparedKeyboardButton: {
1447+
hash: '8b81fc02',
1448+
returnType: T_apiType('PreparedKeyboardButton'),
1449+
parameters: {
1450+
button: {
1451+
hash: '603d6fd3',
1452+
description: { markdown: 'An object describing the button to be saved. The button must be of the type _request\\_users_, _request\\_chat_, or _request\\_managed\\_bot_' },
1453+
},
1454+
},
1455+
},
14301456
sendInvoice: {
14311457
hash: '5f4d4133',
14321458
returnType: T_apiType('Message'),

0 commit comments

Comments
 (0)