@grom.js/bot-api-spec 0.8.0 → 0.9.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/README.md +1 -1
- package/dist/methods.gen.d.ts +5 -2
- package/dist/methods.gen.d.ts.map +1 -1
- package/dist/methods.gen.js +271 -116
- package/dist/methods.gen.js.map +1 -1
- package/dist/types.gen.d.ts +8 -2
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/types.gen.js +450 -56
- package/dist/types.gen.js.map +1 -1
- package/package.json +8 -8
- package/src/methods.gen.ts +276 -118
- package/src/types.gen.ts +458 -58
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[][bot-api]
|
|
2
2
|
[](https://www.npmjs.com/package/@grom.js/bot-api-spec)
|
|
3
3
|
[](https://jsr.io/@grom/bot-api-spec)
|
|
4
4
|
|
package/dist/methods.gen.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ export declare const methods: {
|
|
|
92
92
|
answerCallbackQuery: ApiMethod;
|
|
93
93
|
getUserChatBoosts: ApiMethod;
|
|
94
94
|
getBusinessConnection: ApiMethod;
|
|
95
|
+
getManagedBotToken: ApiMethod;
|
|
96
|
+
replaceManagedBotToken: ApiMethod;
|
|
95
97
|
setMyCommands: ApiMethod;
|
|
96
98
|
deleteMyCommands: ApiMethod;
|
|
97
99
|
getMyCommands: ApiMethod;
|
|
@@ -134,6 +136,9 @@ export declare const methods: {
|
|
|
134
136
|
repostStory: ApiMethod;
|
|
135
137
|
editStory: ApiMethod;
|
|
136
138
|
deleteStory: ApiMethod;
|
|
139
|
+
answerWebAppQuery: ApiMethod;
|
|
140
|
+
savePreparedInlineMessage: ApiMethod;
|
|
141
|
+
savePreparedKeyboardButton: ApiMethod;
|
|
137
142
|
editMessageText: ApiMethod;
|
|
138
143
|
editMessageCaption: ApiMethod;
|
|
139
144
|
editMessageMedia: ApiMethod;
|
|
@@ -163,8 +168,6 @@ export declare const methods: {
|
|
|
163
168
|
setCustomEmojiStickerSetThumbnail: ApiMethod;
|
|
164
169
|
deleteStickerSet: ApiMethod;
|
|
165
170
|
answerInlineQuery: ApiMethod;
|
|
166
|
-
answerWebAppQuery: ApiMethod;
|
|
167
|
-
savePreparedInlineMessage: ApiMethod;
|
|
168
171
|
sendInvoice: ApiMethod;
|
|
169
172
|
createInvoiceLink: ApiMethod;
|
|
170
173
|
answerShippingQuery: ApiMethod;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.gen.d.ts","sourceRoot":"","sources":["../src/methods.gen.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"methods.gen.d.ts","sourceRoot":"","sources":["../src/methods.gen.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAuiY5C;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0KnB,CAAA"}
|
package/dist/methods.gen.js
CHANGED
|
@@ -3935,17 +3935,60 @@ const sendPoll = {
|
|
|
3935
3935
|
type: 'bool',
|
|
3936
3936
|
},
|
|
3937
3937
|
description: {
|
|
3938
|
-
markdown: '_True_, if the poll allows multiple answers,
|
|
3938
|
+
markdown: 'Pass _True_, if the poll allows multiple answers, defaults to _False_',
|
|
3939
3939
|
},
|
|
3940
3940
|
required: false,
|
|
3941
3941
|
},
|
|
3942
3942
|
{
|
|
3943
|
-
name: '
|
|
3943
|
+
name: 'allows_revoting',
|
|
3944
3944
|
type: {
|
|
3945
|
-
type: '
|
|
3945
|
+
type: 'bool',
|
|
3946
|
+
},
|
|
3947
|
+
description: {
|
|
3948
|
+
markdown: 'Pass _True_, if the poll allows to change chosen answer options, defaults to _False_ for quizzes and to _True_ for regular polls',
|
|
3949
|
+
},
|
|
3950
|
+
required: false,
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
name: 'shuffle_options',
|
|
3954
|
+
type: {
|
|
3955
|
+
type: 'bool',
|
|
3956
|
+
},
|
|
3957
|
+
description: {
|
|
3958
|
+
markdown: 'Pass _True_, if the poll options must be shown in random order',
|
|
3959
|
+
},
|
|
3960
|
+
required: false,
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
name: 'allow_adding_options',
|
|
3964
|
+
type: {
|
|
3965
|
+
type: 'bool',
|
|
3946
3966
|
},
|
|
3947
3967
|
description: {
|
|
3948
|
-
markdown: '
|
|
3968
|
+
markdown: 'Pass _True_, if answer options can be added to the poll after creation; not supported for anonymous polls and quizzes',
|
|
3969
|
+
},
|
|
3970
|
+
required: false,
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
name: 'hide_results_until_closes',
|
|
3974
|
+
type: {
|
|
3975
|
+
type: 'bool',
|
|
3976
|
+
},
|
|
3977
|
+
description: {
|
|
3978
|
+
markdown: 'Pass _True_, if poll results must be shown only after the poll closes',
|
|
3979
|
+
},
|
|
3980
|
+
required: false,
|
|
3981
|
+
},
|
|
3982
|
+
{
|
|
3983
|
+
name: 'correct_option_ids',
|
|
3984
|
+
type: {
|
|
3985
|
+
type: 'array',
|
|
3986
|
+
of: {
|
|
3987
|
+
type: 'int32',
|
|
3988
|
+
},
|
|
3989
|
+
},
|
|
3990
|
+
description: {
|
|
3991
|
+
markdown: 'An array of monotonically increasing 0-based identifiers of the correct answer options, required for polls in quiz mode',
|
|
3949
3992
|
},
|
|
3950
3993
|
required: false,
|
|
3951
3994
|
},
|
|
@@ -4003,7 +4046,7 @@ const sendPoll = {
|
|
|
4003
4046
|
type: 'int32',
|
|
4004
4047
|
},
|
|
4005
4048
|
description: {
|
|
4006
|
-
markdown: 'Amount of time in seconds the poll will be active after creation, 5-
|
|
4049
|
+
markdown: 'Amount of time in seconds the poll will be active after creation, 5-2628000. Can\'t be used together with _close\\_date_.',
|
|
4007
4050
|
},
|
|
4008
4051
|
required: false,
|
|
4009
4052
|
},
|
|
@@ -4013,7 +4056,7 @@ const sendPoll = {
|
|
|
4013
4056
|
type: 'int32',
|
|
4014
4057
|
},
|
|
4015
4058
|
description: {
|
|
4016
|
-
markdown: 'Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than
|
|
4059
|
+
markdown: 'Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 2628000 seconds in the future. Can\'t be used together with _open\\_period_.',
|
|
4017
4060
|
},
|
|
4018
4061
|
required: false,
|
|
4019
4062
|
},
|
|
@@ -4027,6 +4070,40 @@ const sendPoll = {
|
|
|
4027
4070
|
},
|
|
4028
4071
|
required: false,
|
|
4029
4072
|
},
|
|
4073
|
+
{
|
|
4074
|
+
name: 'description',
|
|
4075
|
+
type: {
|
|
4076
|
+
type: 'str',
|
|
4077
|
+
},
|
|
4078
|
+
description: {
|
|
4079
|
+
markdown: 'Description of the poll to be sent, 0-1024 characters after entities parsing',
|
|
4080
|
+
},
|
|
4081
|
+
required: false,
|
|
4082
|
+
},
|
|
4083
|
+
{
|
|
4084
|
+
name: 'description_parse_mode',
|
|
4085
|
+
type: {
|
|
4086
|
+
type: 'str',
|
|
4087
|
+
},
|
|
4088
|
+
description: {
|
|
4089
|
+
markdown: 'Mode for parsing entities in the poll description. See [formatting options](https://core.telegram.org/bots/api#formatting-options) for more details.',
|
|
4090
|
+
},
|
|
4091
|
+
required: false,
|
|
4092
|
+
},
|
|
4093
|
+
{
|
|
4094
|
+
name: 'description_entities',
|
|
4095
|
+
type: {
|
|
4096
|
+
type: 'array',
|
|
4097
|
+
of: {
|
|
4098
|
+
type: 'api-type',
|
|
4099
|
+
name: 'MessageEntity',
|
|
4100
|
+
},
|
|
4101
|
+
},
|
|
4102
|
+
description: {
|
|
4103
|
+
markdown: 'An array of special entities that appear in the poll description, which can be specified instead of _description\\_parse\\_mode_',
|
|
4104
|
+
},
|
|
4105
|
+
required: false,
|
|
4106
|
+
},
|
|
4030
4107
|
{
|
|
4031
4108
|
name: 'disable_notification',
|
|
4032
4109
|
type: {
|
|
@@ -6989,6 +7066,48 @@ const getBusinessConnection = {
|
|
|
6989
7066
|
name: 'BusinessConnection',
|
|
6990
7067
|
},
|
|
6991
7068
|
};
|
|
7069
|
+
const getManagedBotToken = {
|
|
7070
|
+
name: 'getManagedBotToken',
|
|
7071
|
+
description: {
|
|
7072
|
+
markdown: 'Use this method to get the token of a managed bot. Returns the token as _String_ on success.',
|
|
7073
|
+
},
|
|
7074
|
+
parameters: [
|
|
7075
|
+
{
|
|
7076
|
+
name: 'user_id',
|
|
7077
|
+
type: {
|
|
7078
|
+
type: 'int32',
|
|
7079
|
+
},
|
|
7080
|
+
description: {
|
|
7081
|
+
markdown: 'User identifier of the managed bot whose token will be returned',
|
|
7082
|
+
},
|
|
7083
|
+
required: true,
|
|
7084
|
+
},
|
|
7085
|
+
],
|
|
7086
|
+
returnType: {
|
|
7087
|
+
type: 'str',
|
|
7088
|
+
},
|
|
7089
|
+
};
|
|
7090
|
+
const replaceManagedBotToken = {
|
|
7091
|
+
name: 'replaceManagedBotToken',
|
|
7092
|
+
description: {
|
|
7093
|
+
markdown: 'Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as _String_ on success.',
|
|
7094
|
+
},
|
|
7095
|
+
parameters: [
|
|
7096
|
+
{
|
|
7097
|
+
name: 'user_id',
|
|
7098
|
+
type: {
|
|
7099
|
+
type: 'int32',
|
|
7100
|
+
},
|
|
7101
|
+
description: {
|
|
7102
|
+
markdown: 'User identifier of the managed bot whose token will be replaced',
|
|
7103
|
+
},
|
|
7104
|
+
required: true,
|
|
7105
|
+
},
|
|
7106
|
+
],
|
|
7107
|
+
returnType: {
|
|
7108
|
+
type: 'str',
|
|
7109
|
+
},
|
|
7110
|
+
};
|
|
6992
7111
|
const setMyCommands = {
|
|
6993
7112
|
name: 'setMyCommands',
|
|
6994
7113
|
description: {
|
|
@@ -7506,7 +7625,7 @@ const sendGift = {
|
|
|
7506
7625
|
],
|
|
7507
7626
|
},
|
|
7508
7627
|
description: {
|
|
7509
|
-
markdown: 'Mode for parsing entities in the text. See [formatting options](https://core.telegram.org/bots/api#formatting-options) for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “
|
|
7628
|
+
markdown: 'Mode for parsing entities in the text. See [formatting options](https://core.telegram.org/bots/api#formatting-options) for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom\\_emoji”, and “date\\_time” are ignored.',
|
|
7510
7629
|
},
|
|
7511
7630
|
required: false,
|
|
7512
7631
|
},
|
|
@@ -7624,7 +7743,7 @@ const giftPremiumSubscription = {
|
|
|
7624
7743
|
],
|
|
7625
7744
|
},
|
|
7626
7745
|
description: {
|
|
7627
|
-
markdown: 'Mode for parsing entities in the text. See [formatting options](https://core.telegram.org/bots/api#formatting-options) for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “
|
|
7746
|
+
markdown: 'Mode for parsing entities in the text. See [formatting options](https://core.telegram.org/bots/api#formatting-options) for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom\\_emoji”, and “date\\_time” are ignored.',
|
|
7628
7747
|
},
|
|
7629
7748
|
required: false,
|
|
7630
7749
|
},
|
|
@@ -8987,6 +9106,145 @@ const deleteStory = {
|
|
|
8987
9106
|
literal: true,
|
|
8988
9107
|
},
|
|
8989
9108
|
};
|
|
9109
|
+
const answerWebAppQuery = {
|
|
9110
|
+
name: 'answerWebAppQuery',
|
|
9111
|
+
description: {
|
|
9112
|
+
markdown: 'Use this method to set the result of an interaction with a [Web App](https://core.telegram.org/bots/webapps) and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a [SentWebAppMessage](https://core.telegram.org/bots/api#sentwebappmessage) object is returned.',
|
|
9113
|
+
},
|
|
9114
|
+
parameters: [
|
|
9115
|
+
{
|
|
9116
|
+
name: 'web_app_query_id',
|
|
9117
|
+
type: {
|
|
9118
|
+
type: 'str',
|
|
9119
|
+
},
|
|
9120
|
+
description: {
|
|
9121
|
+
markdown: 'Unique identifier for the query to be answered',
|
|
9122
|
+
},
|
|
9123
|
+
required: true,
|
|
9124
|
+
},
|
|
9125
|
+
{
|
|
9126
|
+
name: 'result',
|
|
9127
|
+
type: {
|
|
9128
|
+
type: 'api-type',
|
|
9129
|
+
name: 'InlineQueryResult',
|
|
9130
|
+
},
|
|
9131
|
+
description: {
|
|
9132
|
+
markdown: 'An object describing the message to be sent',
|
|
9133
|
+
},
|
|
9134
|
+
required: true,
|
|
9135
|
+
},
|
|
9136
|
+
],
|
|
9137
|
+
returnType: {
|
|
9138
|
+
type: 'api-type',
|
|
9139
|
+
name: 'SentWebAppMessage',
|
|
9140
|
+
},
|
|
9141
|
+
};
|
|
9142
|
+
const savePreparedInlineMessage = {
|
|
9143
|
+
name: 'savePreparedInlineMessage',
|
|
9144
|
+
description: {
|
|
9145
|
+
markdown: 'Stores a message that can be sent by a user of a Mini App. Returns a [PreparedInlineMessage](https://core.telegram.org/bots/api#preparedinlinemessage) object.',
|
|
9146
|
+
},
|
|
9147
|
+
parameters: [
|
|
9148
|
+
{
|
|
9149
|
+
name: 'user_id',
|
|
9150
|
+
type: {
|
|
9151
|
+
type: 'int32',
|
|
9152
|
+
},
|
|
9153
|
+
description: {
|
|
9154
|
+
markdown: 'Unique identifier of the target user that can use the prepared message',
|
|
9155
|
+
},
|
|
9156
|
+
required: true,
|
|
9157
|
+
},
|
|
9158
|
+
{
|
|
9159
|
+
name: 'result',
|
|
9160
|
+
type: {
|
|
9161
|
+
type: 'api-type',
|
|
9162
|
+
name: 'InlineQueryResult',
|
|
9163
|
+
},
|
|
9164
|
+
description: {
|
|
9165
|
+
markdown: 'An object describing the message to be sent',
|
|
9166
|
+
},
|
|
9167
|
+
required: true,
|
|
9168
|
+
},
|
|
9169
|
+
{
|
|
9170
|
+
name: 'allow_user_chats',
|
|
9171
|
+
type: {
|
|
9172
|
+
type: 'bool',
|
|
9173
|
+
},
|
|
9174
|
+
description: {
|
|
9175
|
+
markdown: 'Pass _True_ if the message can be sent to private chats with users',
|
|
9176
|
+
},
|
|
9177
|
+
required: false,
|
|
9178
|
+
},
|
|
9179
|
+
{
|
|
9180
|
+
name: 'allow_bot_chats',
|
|
9181
|
+
type: {
|
|
9182
|
+
type: 'bool',
|
|
9183
|
+
},
|
|
9184
|
+
description: {
|
|
9185
|
+
markdown: 'Pass _True_ if the message can be sent to private chats with bots',
|
|
9186
|
+
},
|
|
9187
|
+
required: false,
|
|
9188
|
+
},
|
|
9189
|
+
{
|
|
9190
|
+
name: 'allow_group_chats',
|
|
9191
|
+
type: {
|
|
9192
|
+
type: 'bool',
|
|
9193
|
+
},
|
|
9194
|
+
description: {
|
|
9195
|
+
markdown: 'Pass _True_ if the message can be sent to group and supergroup chats',
|
|
9196
|
+
},
|
|
9197
|
+
required: false,
|
|
9198
|
+
},
|
|
9199
|
+
{
|
|
9200
|
+
name: 'allow_channel_chats',
|
|
9201
|
+
type: {
|
|
9202
|
+
type: 'bool',
|
|
9203
|
+
},
|
|
9204
|
+
description: {
|
|
9205
|
+
markdown: 'Pass _True_ if the message can be sent to channel chats',
|
|
9206
|
+
},
|
|
9207
|
+
required: false,
|
|
9208
|
+
},
|
|
9209
|
+
],
|
|
9210
|
+
returnType: {
|
|
9211
|
+
type: 'api-type',
|
|
9212
|
+
name: 'PreparedInlineMessage',
|
|
9213
|
+
},
|
|
9214
|
+
};
|
|
9215
|
+
const savePreparedKeyboardButton = {
|
|
9216
|
+
name: 'savePreparedKeyboardButton',
|
|
9217
|
+
description: {
|
|
9218
|
+
markdown: 'Stores a keyboard button that can be used by a user within a Mini App. Returns a [PreparedKeyboardButton](https://core.telegram.org/bots/api#preparedkeyboardbutton) object.',
|
|
9219
|
+
},
|
|
9220
|
+
parameters: [
|
|
9221
|
+
{
|
|
9222
|
+
name: 'user_id',
|
|
9223
|
+
type: {
|
|
9224
|
+
type: 'int32',
|
|
9225
|
+
},
|
|
9226
|
+
description: {
|
|
9227
|
+
markdown: 'Unique identifier of the target user that can use the button',
|
|
9228
|
+
},
|
|
9229
|
+
required: true,
|
|
9230
|
+
},
|
|
9231
|
+
{
|
|
9232
|
+
name: 'button',
|
|
9233
|
+
type: {
|
|
9234
|
+
type: 'api-type',
|
|
9235
|
+
name: 'KeyboardButton',
|
|
9236
|
+
},
|
|
9237
|
+
description: {
|
|
9238
|
+
markdown: 'An object describing the button to be saved. The button must be of the type _request\\_users_, _request\\_chat_, or _request\\_managed\\_bot_',
|
|
9239
|
+
},
|
|
9240
|
+
required: true,
|
|
9241
|
+
},
|
|
9242
|
+
],
|
|
9243
|
+
returnType: {
|
|
9244
|
+
type: 'api-type',
|
|
9245
|
+
name: 'PreparedKeyboardButton',
|
|
9246
|
+
},
|
|
9247
|
+
};
|
|
8990
9248
|
const editMessageText = {
|
|
8991
9249
|
name: 'editMessageText',
|
|
8992
9250
|
description: {
|
|
@@ -10811,112 +11069,6 @@ const answerInlineQuery = {
|
|
|
10811
11069
|
literal: true,
|
|
10812
11070
|
},
|
|
10813
11071
|
};
|
|
10814
|
-
const answerWebAppQuery = {
|
|
10815
|
-
name: 'answerWebAppQuery',
|
|
10816
|
-
description: {
|
|
10817
|
-
markdown: 'Use this method to set the result of an interaction with a [Web App](https://core.telegram.org/bots/webapps) and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a [SentWebAppMessage](https://core.telegram.org/bots/api#sentwebappmessage) object is returned.',
|
|
10818
|
-
},
|
|
10819
|
-
parameters: [
|
|
10820
|
-
{
|
|
10821
|
-
name: 'web_app_query_id',
|
|
10822
|
-
type: {
|
|
10823
|
-
type: 'str',
|
|
10824
|
-
},
|
|
10825
|
-
description: {
|
|
10826
|
-
markdown: 'Unique identifier for the query to be answered',
|
|
10827
|
-
},
|
|
10828
|
-
required: true,
|
|
10829
|
-
},
|
|
10830
|
-
{
|
|
10831
|
-
name: 'result',
|
|
10832
|
-
type: {
|
|
10833
|
-
type: 'api-type',
|
|
10834
|
-
name: 'InlineQueryResult',
|
|
10835
|
-
},
|
|
10836
|
-
description: {
|
|
10837
|
-
markdown: 'An object describing the message to be sent',
|
|
10838
|
-
},
|
|
10839
|
-
required: true,
|
|
10840
|
-
},
|
|
10841
|
-
],
|
|
10842
|
-
returnType: {
|
|
10843
|
-
type: 'api-type',
|
|
10844
|
-
name: 'SentWebAppMessage',
|
|
10845
|
-
},
|
|
10846
|
-
};
|
|
10847
|
-
const savePreparedInlineMessage = {
|
|
10848
|
-
name: 'savePreparedInlineMessage',
|
|
10849
|
-
description: {
|
|
10850
|
-
markdown: 'Stores a message that can be sent by a user of a Mini App. Returns a [PreparedInlineMessage](https://core.telegram.org/bots/api#preparedinlinemessage) object.',
|
|
10851
|
-
},
|
|
10852
|
-
parameters: [
|
|
10853
|
-
{
|
|
10854
|
-
name: 'user_id',
|
|
10855
|
-
type: {
|
|
10856
|
-
type: 'int32',
|
|
10857
|
-
},
|
|
10858
|
-
description: {
|
|
10859
|
-
markdown: 'Unique identifier of the target user that can use the prepared message',
|
|
10860
|
-
},
|
|
10861
|
-
required: true,
|
|
10862
|
-
},
|
|
10863
|
-
{
|
|
10864
|
-
name: 'result',
|
|
10865
|
-
type: {
|
|
10866
|
-
type: 'api-type',
|
|
10867
|
-
name: 'InlineQueryResult',
|
|
10868
|
-
},
|
|
10869
|
-
description: {
|
|
10870
|
-
markdown: 'An object describing the message to be sent',
|
|
10871
|
-
},
|
|
10872
|
-
required: true,
|
|
10873
|
-
},
|
|
10874
|
-
{
|
|
10875
|
-
name: 'allow_user_chats',
|
|
10876
|
-
type: {
|
|
10877
|
-
type: 'bool',
|
|
10878
|
-
},
|
|
10879
|
-
description: {
|
|
10880
|
-
markdown: 'Pass _True_ if the message can be sent to private chats with users',
|
|
10881
|
-
},
|
|
10882
|
-
required: false,
|
|
10883
|
-
},
|
|
10884
|
-
{
|
|
10885
|
-
name: 'allow_bot_chats',
|
|
10886
|
-
type: {
|
|
10887
|
-
type: 'bool',
|
|
10888
|
-
},
|
|
10889
|
-
description: {
|
|
10890
|
-
markdown: 'Pass _True_ if the message can be sent to private chats with bots',
|
|
10891
|
-
},
|
|
10892
|
-
required: false,
|
|
10893
|
-
},
|
|
10894
|
-
{
|
|
10895
|
-
name: 'allow_group_chats',
|
|
10896
|
-
type: {
|
|
10897
|
-
type: 'bool',
|
|
10898
|
-
},
|
|
10899
|
-
description: {
|
|
10900
|
-
markdown: 'Pass _True_ if the message can be sent to group and supergroup chats',
|
|
10901
|
-
},
|
|
10902
|
-
required: false,
|
|
10903
|
-
},
|
|
10904
|
-
{
|
|
10905
|
-
name: 'allow_channel_chats',
|
|
10906
|
-
type: {
|
|
10907
|
-
type: 'bool',
|
|
10908
|
-
},
|
|
10909
|
-
description: {
|
|
10910
|
-
markdown: 'Pass _True_ if the message can be sent to channel chats',
|
|
10911
|
-
},
|
|
10912
|
-
required: false,
|
|
10913
|
-
},
|
|
10914
|
-
],
|
|
10915
|
-
returnType: {
|
|
10916
|
-
type: 'api-type',
|
|
10917
|
-
name: 'PreparedInlineMessage',
|
|
10918
|
-
},
|
|
10919
|
-
};
|
|
10920
11072
|
const sendInvoice = {
|
|
10921
11073
|
name: 'sendInvoice',
|
|
10922
11074
|
description: {
|
|
@@ -12095,6 +12247,8 @@ export const methods = {
|
|
|
12095
12247
|
answerCallbackQuery,
|
|
12096
12248
|
getUserChatBoosts,
|
|
12097
12249
|
getBusinessConnection,
|
|
12250
|
+
getManagedBotToken,
|
|
12251
|
+
replaceManagedBotToken,
|
|
12098
12252
|
setMyCommands,
|
|
12099
12253
|
deleteMyCommands,
|
|
12100
12254
|
getMyCommands,
|
|
@@ -12137,6 +12291,9 @@ export const methods = {
|
|
|
12137
12291
|
repostStory,
|
|
12138
12292
|
editStory,
|
|
12139
12293
|
deleteStory,
|
|
12294
|
+
answerWebAppQuery,
|
|
12295
|
+
savePreparedInlineMessage,
|
|
12296
|
+
savePreparedKeyboardButton,
|
|
12140
12297
|
editMessageText,
|
|
12141
12298
|
editMessageCaption,
|
|
12142
12299
|
editMessageMedia,
|
|
@@ -12166,8 +12323,6 @@ export const methods = {
|
|
|
12166
12323
|
setCustomEmojiStickerSetThumbnail,
|
|
12167
12324
|
deleteStickerSet,
|
|
12168
12325
|
answerInlineQuery,
|
|
12169
|
-
answerWebAppQuery,
|
|
12170
|
-
savePreparedInlineMessage,
|
|
12171
12326
|
sendInvoice,
|
|
12172
12327
|
createInvoiceLink,
|
|
12173
12328
|
answerShippingQuery,
|