@effect-ak/tg-bot-client 0.2.1 → 0.2.2
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/index.d.ts +2821 -0
- package/dist/index.js +462 -0
- package/dist/index.mjs +418 -0
- package/package.json +15 -15
- package/readme.md +1 -1
- package/dist/cjs/bot/factory/_service.js +0 -59
- package/dist/cjs/bot/factory/client-config.js +0 -68
- package/dist/cjs/bot/factory/make-bot.js +0 -59
- package/dist/cjs/bot/message-handler/_service.js +0 -51
- package/dist/cjs/bot/message-handler/types.js +0 -5
- package/dist/cjs/bot/message-handler/utils.js +0 -19
- package/dist/cjs/bot/run.js +0 -10
- package/dist/cjs/bot/update-poller/_service.js +0 -78
- package/dist/cjs/bot/update-poller/errors.js +0 -5
- package/dist/cjs/bot/update-poller/fetch-updates.js +0 -109
- package/dist/cjs/bot/update-poller/poll-and-handle.js +0 -89
- package/dist/cjs/bot/update-poller/settings.js +0 -23
- package/dist/cjs/client/_client.js +0 -64
- package/dist/cjs/client/config.js +0 -56
- package/dist/cjs/client/errors.js +0 -57
- package/dist/cjs/client/execute-request/_service.js +0 -59
- package/dist/cjs/client/execute-request/execute.js +0 -98
- package/dist/cjs/client/execute-request/payload.js +0 -24
- package/dist/cjs/client/file/_service.js +0 -61
- package/dist/cjs/client/file/get-file.js +0 -77
- package/dist/cjs/client/guards.js +0 -12
- package/dist/cjs/const.js +0 -20
- package/dist/cjs/index.js +0 -29
- package/dist/cjs/specification/api.js +0 -5
- package/dist/cjs/specification/types.js +0 -5
- package/dist/dts/bot/factory/_service.d.ts +0 -37
- package/dist/dts/bot/factory/client-config.d.ts +0 -3
- package/dist/dts/bot/factory/make-bot.d.ts +0 -7
- package/dist/dts/bot/message-handler/_service.d.ts +0 -6
- package/dist/dts/bot/message-handler/types.d.ts +0 -16
- package/dist/dts/bot/message-handler/utils.d.ts +0 -6
- package/dist/dts/bot/run.d.ts +0 -7
- package/dist/dts/bot/update-poller/_service.d.ts +0 -21
- package/dist/dts/bot/update-poller/errors.d.ts +0 -1
- package/dist/dts/bot/update-poller/fetch-updates.d.ts +0 -17
- package/dist/dts/bot/update-poller/poll-and-handle.d.ts +0 -16
- package/dist/dts/bot/update-poller/settings.d.ts +0 -6
- package/dist/dts/client/_client.d.ts +0 -8
- package/dist/dts/client/config.d.ts +0 -8
- package/dist/dts/client/errors.d.ts +0 -23
- package/dist/dts/client/execute-request/_service.d.ts +0 -15
- package/dist/dts/client/execute-request/execute.d.ts +0 -5
- package/dist/dts/client/execute-request/payload.d.ts +0 -1
- package/dist/dts/client/file/_service.d.ts +0 -16
- package/dist/dts/client/file/get-file.d.ts +0 -5
- package/dist/dts/client/guards.d.ts +0 -17
- package/dist/dts/const.d.ts +0 -12
- package/dist/dts/index.d.ts +0 -5
- package/dist/dts/specification/api.d.ts +0 -1030
- package/dist/dts/specification/types.d.ts +0 -1663
- package/dist/esm/bot/factory/_service.js +0 -49
- package/dist/esm/bot/factory/client-config.js +0 -57
- package/dist/esm/bot/factory/make-bot.js +0 -46
- package/dist/esm/bot/message-handler/_service.js +0 -41
- package/dist/esm/bot/message-handler/types.js +0 -2
- package/dist/esm/bot/message-handler/utils.js +0 -16
- package/dist/esm/bot/run.js +0 -10
- package/dist/esm/bot/update-poller/_service.js +0 -68
- package/dist/esm/bot/update-poller/errors.js +0 -2
- package/dist/esm/bot/update-poller/fetch-updates.js +0 -86
- package/dist/esm/bot/update-poller/poll-and-handle.js +0 -74
- package/dist/esm/bot/update-poller/settings.js +0 -19
- package/dist/esm/client/_client.js +0 -53
- package/dist/esm/client/config.js +0 -46
- package/dist/esm/client/errors.js +0 -46
- package/dist/esm/client/execute-request/_service.js +0 -49
- package/dist/esm/client/execute-request/execute.js +0 -74
- package/dist/esm/client/execute-request/payload.js +0 -25
- package/dist/esm/client/file/_service.js +0 -51
- package/dist/esm/client/file/get-file.js +0 -61
- package/dist/esm/client/guards.js +0 -13
- package/dist/esm/const.js +0 -17
- package/dist/esm/index.js +0 -21
- package/dist/esm/specification/api.js +0 -2
- package/dist/esm/specification/types.js +0 -2
|
@@ -1,1030 +0,0 @@
|
|
|
1
|
-
import * as T from "./types.js";
|
|
2
|
-
export interface Api {
|
|
3
|
-
add_sticker_to_set(_: AddStickerToSetInput): boolean;
|
|
4
|
-
answer_callback_query(_: AnswerCallbackQueryInput): boolean;
|
|
5
|
-
answer_inline_query(_: AnswerInlineQueryInput): boolean;
|
|
6
|
-
answer_pre_checkout_query(_: AnswerPreCheckoutQueryInput): boolean;
|
|
7
|
-
answer_shipping_query(_: AnswerShippingQueryInput): boolean;
|
|
8
|
-
answer_web_app_query(_: AnswerWebAppQueryInput): T.SentWebAppMessage;
|
|
9
|
-
approve_chat_join_request(_: ApproveChatJoinRequestInput): boolean;
|
|
10
|
-
ban_chat_member(_: BanChatMemberInput): boolean;
|
|
11
|
-
ban_chat_sender_chat(_: BanChatSenderChatInput): boolean;
|
|
12
|
-
close(_: CloseInput): boolean;
|
|
13
|
-
close_forum_topic(_: CloseForumTopicInput): boolean;
|
|
14
|
-
close_general_forum_topic(_: CloseGeneralForumTopicInput): boolean;
|
|
15
|
-
copy_message(_: CopyMessageInput): T.MessageId;
|
|
16
|
-
copy_messages(_: CopyMessagesInput): T.MessageId[];
|
|
17
|
-
create_chat_invite_link(_: CreateChatInviteLinkInput): T.ChatInviteLink;
|
|
18
|
-
create_chat_subscription_invite_link(_: CreateChatSubscriptionInviteLinkInput): T.ChatInviteLink;
|
|
19
|
-
create_forum_topic(_: CreateForumTopicInput): T.ForumTopic;
|
|
20
|
-
create_invoice_link(_: CreateInvoiceLinkInput): string;
|
|
21
|
-
create_new_sticker_set(_: CreateNewStickerSetInput): boolean;
|
|
22
|
-
decline_chat_join_request(_: DeclineChatJoinRequestInput): boolean;
|
|
23
|
-
delete_chat_photo(_: DeleteChatPhotoInput): boolean;
|
|
24
|
-
delete_chat_sticker_set(_: DeleteChatStickerSetInput): boolean;
|
|
25
|
-
delete_forum_topic(_: DeleteForumTopicInput): boolean;
|
|
26
|
-
delete_message(_: DeleteMessageInput): boolean;
|
|
27
|
-
delete_messages(_: DeleteMessagesInput): boolean;
|
|
28
|
-
delete_my_commands(_: DeleteMyCommandsInput): boolean;
|
|
29
|
-
delete_sticker_from_set(_: DeleteStickerFromSetInput): boolean;
|
|
30
|
-
delete_sticker_set(_: DeleteStickerSetInput): boolean;
|
|
31
|
-
delete_webhook(_: DeleteWebhookInput): boolean;
|
|
32
|
-
edit_chat_invite_link(_: EditChatInviteLinkInput): T.ChatInviteLink;
|
|
33
|
-
edit_chat_subscription_invite_link(_: EditChatSubscriptionInviteLinkInput): T.ChatInviteLink;
|
|
34
|
-
edit_forum_topic(_: EditForumTopicInput): boolean;
|
|
35
|
-
edit_general_forum_topic(_: EditGeneralForumTopicInput): boolean;
|
|
36
|
-
edit_message_caption(_: EditMessageCaptionInput): T.Message | boolean;
|
|
37
|
-
edit_message_live_location(_: EditMessageLiveLocationInput): T.Message | boolean;
|
|
38
|
-
edit_message_media(_: EditMessageMediaInput): T.Message | boolean;
|
|
39
|
-
edit_message_reply_markup(_: EditMessageReplyMarkupInput): T.Message | boolean;
|
|
40
|
-
edit_message_text(_: EditMessageTextInput): T.Message | boolean;
|
|
41
|
-
edit_user_star_subscription(_: EditUserStarSubscriptionInput): boolean;
|
|
42
|
-
export_chat_invite_link(_: ExportChatInviteLinkInput): string;
|
|
43
|
-
forward_message(_: ForwardMessageInput): T.Message;
|
|
44
|
-
forward_messages(_: ForwardMessagesInput): T.MessageId[];
|
|
45
|
-
get_available_gifts(_: GetAvailableGiftsInput): T.Gifts;
|
|
46
|
-
get_business_connection(_: GetBusinessConnectionInput): T.BusinessConnection;
|
|
47
|
-
get_chat(_: GetChatInput): T.ChatFullInfo;
|
|
48
|
-
get_chat_administrators(_: GetChatAdministratorsInput): T.ChatMember[];
|
|
49
|
-
get_chat_member(_: GetChatMemberInput): T.ChatMember;
|
|
50
|
-
get_chat_member_count(_: GetChatMemberCountInput): number;
|
|
51
|
-
get_chat_menu_button(_: GetChatMenuButtonInput): T.MenuButton;
|
|
52
|
-
get_custom_emoji_stickers(_: GetCustomEmojiStickersInput): T.Sticker[];
|
|
53
|
-
get_file(_: GetFileInput): T.File;
|
|
54
|
-
get_forum_topic_icon_stickers(_: GetForumTopicIconStickersInput): T.Sticker[];
|
|
55
|
-
get_game_high_scores(_: GetGameHighScoresInput): T.GameHighScore[];
|
|
56
|
-
get_me(_: GetMeInput): T.User;
|
|
57
|
-
get_my_commands(_: GetMyCommandsInput): T.BotCommand[];
|
|
58
|
-
get_my_default_administrator_rights(_: GetMyDefaultAdministratorRightsInput): T.ChatAdministratorRights;
|
|
59
|
-
get_my_description(_: GetMyDescriptionInput): T.BotDescription;
|
|
60
|
-
get_my_name(_: GetMyNameInput): T.BotName;
|
|
61
|
-
get_my_short_description(_: GetMyShortDescriptionInput): T.BotShortDescription;
|
|
62
|
-
get_star_transactions(_: GetStarTransactionsInput): T.StarTransactions;
|
|
63
|
-
get_sticker_set(_: GetStickerSetInput): T.StickerSet;
|
|
64
|
-
get_updates(_: GetUpdatesInput): T.Update[];
|
|
65
|
-
get_user_chat_boosts(_: GetUserChatBoostsInput): T.UserChatBoosts;
|
|
66
|
-
get_user_profile_photos(_: GetUserProfilePhotosInput): T.UserProfilePhotos;
|
|
67
|
-
get_webhook_info(_: GetWebhookInfoInput): T.WebhookInfo;
|
|
68
|
-
hide_general_forum_topic(_: HideGeneralForumTopicInput): boolean;
|
|
69
|
-
leave_chat(_: LeaveChatInput): boolean;
|
|
70
|
-
log_out(_: LogOutInput): boolean;
|
|
71
|
-
pin_chat_message(_: PinChatMessageInput): boolean;
|
|
72
|
-
promote_chat_member(_: PromoteChatMemberInput): boolean;
|
|
73
|
-
refund_star_payment(_: RefundStarPaymentInput): boolean;
|
|
74
|
-
reopen_forum_topic(_: ReopenForumTopicInput): boolean;
|
|
75
|
-
reopen_general_forum_topic(_: ReopenGeneralForumTopicInput): boolean;
|
|
76
|
-
replace_sticker_in_set(_: ReplaceStickerInSetInput): boolean;
|
|
77
|
-
restrict_chat_member(_: RestrictChatMemberInput): boolean;
|
|
78
|
-
revoke_chat_invite_link(_: RevokeChatInviteLinkInput): T.ChatInviteLink;
|
|
79
|
-
save_prepared_inline_message(_: SavePreparedInlineMessageInput): T.PreparedInlineMessage;
|
|
80
|
-
send_animation(_: SendAnimationInput): T.Message;
|
|
81
|
-
send_audio(_: SendAudioInput): T.Message;
|
|
82
|
-
send_chat_action(_: SendChatActionInput): boolean;
|
|
83
|
-
send_contact(_: SendContactInput): T.Message;
|
|
84
|
-
send_dice(_: SendDiceInput): T.Message;
|
|
85
|
-
send_document(_: SendDocumentInput): T.Message;
|
|
86
|
-
send_game(_: SendGameInput): T.Message;
|
|
87
|
-
send_gift(_: SendGiftInput): boolean;
|
|
88
|
-
send_invoice(_: SendInvoiceInput): T.Message;
|
|
89
|
-
send_location(_: SendLocationInput): T.Message;
|
|
90
|
-
send_media_group(_: SendMediaGroupInput): T.Message[];
|
|
91
|
-
send_message(_: SendMessageInput): T.Message;
|
|
92
|
-
send_paid_media(_: SendPaidMediaInput): T.Message;
|
|
93
|
-
send_photo(_: SendPhotoInput): T.Message;
|
|
94
|
-
send_poll(_: SendPollInput): T.Message;
|
|
95
|
-
send_sticker(_: SendStickerInput): T.Message;
|
|
96
|
-
send_venue(_: SendVenueInput): T.Message;
|
|
97
|
-
send_video(_: SendVideoInput): T.Message;
|
|
98
|
-
send_video_note(_: SendVideoNoteInput): T.Message;
|
|
99
|
-
send_voice(_: SendVoiceInput): T.Message;
|
|
100
|
-
set_chat_administrator_custom_title(_: SetChatAdministratorCustomTitleInput): boolean;
|
|
101
|
-
set_chat_description(_: SetChatDescriptionInput): boolean;
|
|
102
|
-
set_chat_menu_button(_: SetChatMenuButtonInput): boolean;
|
|
103
|
-
set_chat_permissions(_: SetChatPermissionsInput): boolean;
|
|
104
|
-
set_chat_photo(_: SetChatPhotoInput): boolean;
|
|
105
|
-
set_chat_sticker_set(_: SetChatStickerSetInput): boolean;
|
|
106
|
-
set_chat_title(_: SetChatTitleInput): boolean;
|
|
107
|
-
set_custom_emoji_sticker_set_thumbnail(_: SetCustomEmojiStickerSetThumbnailInput): boolean;
|
|
108
|
-
set_game_score(_: SetGameScoreInput): T.Message | boolean;
|
|
109
|
-
set_message_reaction(_: SetMessageReactionInput): boolean;
|
|
110
|
-
set_my_commands(_: SetMyCommandsInput): boolean;
|
|
111
|
-
set_my_default_administrator_rights(_: SetMyDefaultAdministratorRightsInput): boolean;
|
|
112
|
-
set_my_description(_: SetMyDescriptionInput): boolean;
|
|
113
|
-
set_my_name(_: SetMyNameInput): boolean;
|
|
114
|
-
set_my_short_description(_: SetMyShortDescriptionInput): boolean;
|
|
115
|
-
set_passport_data_errors(_: SetPassportDataErrorsInput): boolean;
|
|
116
|
-
set_sticker_emoji_list(_: SetStickerEmojiListInput): boolean;
|
|
117
|
-
set_sticker_keywords(_: SetStickerKeywordsInput): boolean;
|
|
118
|
-
set_sticker_mask_position(_: SetStickerMaskPositionInput): boolean;
|
|
119
|
-
set_sticker_position_in_set(_: SetStickerPositionInSetInput): boolean;
|
|
120
|
-
set_sticker_set_thumbnail(_: SetStickerSetThumbnailInput): boolean;
|
|
121
|
-
set_sticker_set_title(_: SetStickerSetTitleInput): boolean;
|
|
122
|
-
set_user_emoji_status(_: SetUserEmojiStatusInput): boolean;
|
|
123
|
-
set_webhook(_: SetWebhookInput): boolean;
|
|
124
|
-
stop_message_live_location(_: StopMessageLiveLocationInput): T.Message | boolean;
|
|
125
|
-
stop_poll(_: StopPollInput): T.Poll;
|
|
126
|
-
unban_chat_member(_: UnbanChatMemberInput): boolean;
|
|
127
|
-
unban_chat_sender_chat(_: UnbanChatSenderChatInput): boolean;
|
|
128
|
-
unhide_general_forum_topic(_: UnhideGeneralForumTopicInput): boolean;
|
|
129
|
-
unpin_all_chat_messages(_: UnpinAllChatMessagesInput): boolean;
|
|
130
|
-
unpin_all_forum_topic_messages(_: UnpinAllForumTopicMessagesInput): boolean;
|
|
131
|
-
unpin_all_general_forum_topic_messages(_: UnpinAllGeneralForumTopicMessagesInput): boolean;
|
|
132
|
-
unpin_chat_message(_: UnpinChatMessageInput): boolean;
|
|
133
|
-
upload_sticker_file(_: UploadStickerFileInput): T.File;
|
|
134
|
-
}
|
|
135
|
-
export interface AddStickerToSetInput {
|
|
136
|
-
user_id: number;
|
|
137
|
-
name: string;
|
|
138
|
-
sticker: T.InputSticker;
|
|
139
|
-
}
|
|
140
|
-
export interface AnswerCallbackQueryInput {
|
|
141
|
-
callback_query_id: string;
|
|
142
|
-
text?: string;
|
|
143
|
-
show_alert?: boolean;
|
|
144
|
-
url?: string;
|
|
145
|
-
cache_time?: number;
|
|
146
|
-
}
|
|
147
|
-
export interface AnswerInlineQueryInput {
|
|
148
|
-
inline_query_id: string;
|
|
149
|
-
results: T.InlineQueryResult[];
|
|
150
|
-
cache_time?: number;
|
|
151
|
-
is_personal?: boolean;
|
|
152
|
-
next_offset?: string;
|
|
153
|
-
button?: T.InlineQueryResultsButton;
|
|
154
|
-
}
|
|
155
|
-
export interface AnswerPreCheckoutQueryInput {
|
|
156
|
-
pre_checkout_query_id: string;
|
|
157
|
-
ok: boolean;
|
|
158
|
-
error_message?: string;
|
|
159
|
-
}
|
|
160
|
-
export interface AnswerShippingQueryInput {
|
|
161
|
-
shipping_query_id: string;
|
|
162
|
-
ok: boolean;
|
|
163
|
-
shipping_options?: T.ShippingOption[];
|
|
164
|
-
error_message?: string;
|
|
165
|
-
}
|
|
166
|
-
export interface AnswerWebAppQueryInput {
|
|
167
|
-
web_app_query_id: string;
|
|
168
|
-
result: T.InlineQueryResult;
|
|
169
|
-
}
|
|
170
|
-
export interface ApproveChatJoinRequestInput {
|
|
171
|
-
chat_id: number | string;
|
|
172
|
-
user_id: number;
|
|
173
|
-
}
|
|
174
|
-
export interface BanChatMemberInput {
|
|
175
|
-
chat_id: number | string;
|
|
176
|
-
user_id: number;
|
|
177
|
-
until_date?: number;
|
|
178
|
-
revoke_messages?: boolean;
|
|
179
|
-
}
|
|
180
|
-
export interface BanChatSenderChatInput {
|
|
181
|
-
chat_id: number | string;
|
|
182
|
-
sender_chat_id: number;
|
|
183
|
-
}
|
|
184
|
-
export interface CloseInput {
|
|
185
|
-
}
|
|
186
|
-
export interface CloseForumTopicInput {
|
|
187
|
-
chat_id: number | string;
|
|
188
|
-
message_thread_id: number;
|
|
189
|
-
}
|
|
190
|
-
export interface CloseGeneralForumTopicInput {
|
|
191
|
-
chat_id: number | string;
|
|
192
|
-
}
|
|
193
|
-
export interface CopyMessageInput {
|
|
194
|
-
chat_id: number | string;
|
|
195
|
-
from_chat_id: number | string;
|
|
196
|
-
message_id: number;
|
|
197
|
-
message_thread_id?: number;
|
|
198
|
-
caption?: string;
|
|
199
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
200
|
-
caption_entities?: T.MessageEntity[];
|
|
201
|
-
show_caption_above_media?: boolean;
|
|
202
|
-
disable_notification?: boolean;
|
|
203
|
-
protect_content?: boolean;
|
|
204
|
-
allow_paid_broadcast?: boolean;
|
|
205
|
-
reply_parameters?: T.ReplyParameters;
|
|
206
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
207
|
-
}
|
|
208
|
-
export interface CopyMessagesInput {
|
|
209
|
-
chat_id: number | string;
|
|
210
|
-
from_chat_id: number | string;
|
|
211
|
-
message_ids: number[];
|
|
212
|
-
message_thread_id?: number;
|
|
213
|
-
disable_notification?: boolean;
|
|
214
|
-
protect_content?: boolean;
|
|
215
|
-
remove_caption?: boolean;
|
|
216
|
-
}
|
|
217
|
-
export interface CreateChatInviteLinkInput {
|
|
218
|
-
chat_id: number | string;
|
|
219
|
-
name?: string;
|
|
220
|
-
expire_date?: number;
|
|
221
|
-
member_limit?: number;
|
|
222
|
-
creates_join_request?: boolean;
|
|
223
|
-
}
|
|
224
|
-
export interface CreateChatSubscriptionInviteLinkInput {
|
|
225
|
-
chat_id: number | string;
|
|
226
|
-
subscription_period: number;
|
|
227
|
-
subscription_price: number;
|
|
228
|
-
name?: string;
|
|
229
|
-
}
|
|
230
|
-
export interface CreateForumTopicInput {
|
|
231
|
-
chat_id: number | string;
|
|
232
|
-
name: string;
|
|
233
|
-
icon_color?: number;
|
|
234
|
-
icon_custom_emoji_id?: string;
|
|
235
|
-
}
|
|
236
|
-
export interface CreateInvoiceLinkInput {
|
|
237
|
-
title: string;
|
|
238
|
-
description: string;
|
|
239
|
-
payload: string;
|
|
240
|
-
currency: string;
|
|
241
|
-
prices: T.LabeledPrice[];
|
|
242
|
-
business_connection_id?: string;
|
|
243
|
-
provider_token?: string;
|
|
244
|
-
subscription_period?: number;
|
|
245
|
-
max_tip_amount?: number;
|
|
246
|
-
suggested_tip_amounts?: number[];
|
|
247
|
-
provider_data?: string;
|
|
248
|
-
photo_url?: string;
|
|
249
|
-
photo_size?: number;
|
|
250
|
-
photo_width?: number;
|
|
251
|
-
photo_height?: number;
|
|
252
|
-
need_name?: boolean;
|
|
253
|
-
need_phone_number?: boolean;
|
|
254
|
-
need_email?: boolean;
|
|
255
|
-
need_shipping_address?: boolean;
|
|
256
|
-
send_phone_number_to_provider?: boolean;
|
|
257
|
-
send_email_to_provider?: boolean;
|
|
258
|
-
is_flexible?: boolean;
|
|
259
|
-
}
|
|
260
|
-
export interface CreateNewStickerSetInput {
|
|
261
|
-
user_id: number;
|
|
262
|
-
name: string;
|
|
263
|
-
title: string;
|
|
264
|
-
stickers: T.InputSticker[];
|
|
265
|
-
sticker_type?: string;
|
|
266
|
-
needs_repainting?: boolean;
|
|
267
|
-
}
|
|
268
|
-
export interface DeclineChatJoinRequestInput {
|
|
269
|
-
chat_id: number | string;
|
|
270
|
-
user_id: number;
|
|
271
|
-
}
|
|
272
|
-
export interface DeleteChatPhotoInput {
|
|
273
|
-
chat_id: number | string;
|
|
274
|
-
}
|
|
275
|
-
export interface DeleteChatStickerSetInput {
|
|
276
|
-
chat_id: number | string;
|
|
277
|
-
}
|
|
278
|
-
export interface DeleteForumTopicInput {
|
|
279
|
-
chat_id: number | string;
|
|
280
|
-
message_thread_id: number;
|
|
281
|
-
}
|
|
282
|
-
export interface DeleteMessageInput {
|
|
283
|
-
chat_id: number | string;
|
|
284
|
-
message_id: number;
|
|
285
|
-
}
|
|
286
|
-
export interface DeleteMessagesInput {
|
|
287
|
-
chat_id: number | string;
|
|
288
|
-
message_ids: number[];
|
|
289
|
-
}
|
|
290
|
-
export interface DeleteMyCommandsInput {
|
|
291
|
-
scope?: T.BotCommandScope;
|
|
292
|
-
language_code?: string;
|
|
293
|
-
}
|
|
294
|
-
export interface DeleteStickerFromSetInput {
|
|
295
|
-
sticker: string;
|
|
296
|
-
}
|
|
297
|
-
export interface DeleteStickerSetInput {
|
|
298
|
-
name: string;
|
|
299
|
-
}
|
|
300
|
-
export interface DeleteWebhookInput {
|
|
301
|
-
drop_pending_updates?: boolean;
|
|
302
|
-
}
|
|
303
|
-
export interface EditChatInviteLinkInput {
|
|
304
|
-
chat_id: number | string;
|
|
305
|
-
invite_link: string;
|
|
306
|
-
name?: string;
|
|
307
|
-
expire_date?: number;
|
|
308
|
-
member_limit?: number;
|
|
309
|
-
creates_join_request?: boolean;
|
|
310
|
-
}
|
|
311
|
-
export interface EditChatSubscriptionInviteLinkInput {
|
|
312
|
-
chat_id: number | string;
|
|
313
|
-
invite_link: string;
|
|
314
|
-
name?: string;
|
|
315
|
-
}
|
|
316
|
-
export interface EditForumTopicInput {
|
|
317
|
-
chat_id: number | string;
|
|
318
|
-
message_thread_id: number;
|
|
319
|
-
name?: string;
|
|
320
|
-
icon_custom_emoji_id?: string;
|
|
321
|
-
}
|
|
322
|
-
export interface EditGeneralForumTopicInput {
|
|
323
|
-
chat_id: number | string;
|
|
324
|
-
name: string;
|
|
325
|
-
}
|
|
326
|
-
export interface EditMessageCaptionInput {
|
|
327
|
-
business_connection_id?: string;
|
|
328
|
-
chat_id?: number | string;
|
|
329
|
-
message_id?: number;
|
|
330
|
-
inline_message_id?: string;
|
|
331
|
-
caption?: string;
|
|
332
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
333
|
-
caption_entities?: T.MessageEntity[];
|
|
334
|
-
show_caption_above_media?: boolean;
|
|
335
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
336
|
-
}
|
|
337
|
-
export interface EditMessageLiveLocationInput {
|
|
338
|
-
latitude: number;
|
|
339
|
-
longitude: number;
|
|
340
|
-
business_connection_id?: string;
|
|
341
|
-
chat_id?: number | string;
|
|
342
|
-
message_id?: number;
|
|
343
|
-
inline_message_id?: string;
|
|
344
|
-
live_period?: number;
|
|
345
|
-
horizontal_accuracy?: number;
|
|
346
|
-
heading?: number;
|
|
347
|
-
proximity_alert_radius?: number;
|
|
348
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
349
|
-
}
|
|
350
|
-
export interface EditMessageMediaInput {
|
|
351
|
-
media: T.InputMedia;
|
|
352
|
-
business_connection_id?: string;
|
|
353
|
-
chat_id?: number | string;
|
|
354
|
-
message_id?: number;
|
|
355
|
-
inline_message_id?: string;
|
|
356
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
357
|
-
}
|
|
358
|
-
export interface EditMessageReplyMarkupInput {
|
|
359
|
-
business_connection_id?: string;
|
|
360
|
-
chat_id?: number | string;
|
|
361
|
-
message_id?: number;
|
|
362
|
-
inline_message_id?: string;
|
|
363
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
364
|
-
}
|
|
365
|
-
export interface EditMessageTextInput {
|
|
366
|
-
text: string;
|
|
367
|
-
business_connection_id?: string;
|
|
368
|
-
chat_id?: number | string;
|
|
369
|
-
message_id?: number;
|
|
370
|
-
inline_message_id?: string;
|
|
371
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
372
|
-
entities?: T.MessageEntity[];
|
|
373
|
-
link_preview_options?: T.LinkPreviewOptions;
|
|
374
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
375
|
-
}
|
|
376
|
-
export interface EditUserStarSubscriptionInput {
|
|
377
|
-
user_id: number;
|
|
378
|
-
telegram_payment_charge_id: string;
|
|
379
|
-
is_canceled: boolean;
|
|
380
|
-
}
|
|
381
|
-
export interface ExportChatInviteLinkInput {
|
|
382
|
-
chat_id: number | string;
|
|
383
|
-
}
|
|
384
|
-
export interface ForwardMessageInput {
|
|
385
|
-
chat_id: number | string;
|
|
386
|
-
from_chat_id: number | string;
|
|
387
|
-
message_id: number;
|
|
388
|
-
message_thread_id?: number;
|
|
389
|
-
disable_notification?: boolean;
|
|
390
|
-
protect_content?: boolean;
|
|
391
|
-
}
|
|
392
|
-
export interface ForwardMessagesInput {
|
|
393
|
-
chat_id: number | string;
|
|
394
|
-
from_chat_id: number | string;
|
|
395
|
-
message_ids: number[];
|
|
396
|
-
message_thread_id?: number;
|
|
397
|
-
disable_notification?: boolean;
|
|
398
|
-
protect_content?: boolean;
|
|
399
|
-
}
|
|
400
|
-
export interface GetAvailableGiftsInput {
|
|
401
|
-
}
|
|
402
|
-
export interface GetBusinessConnectionInput {
|
|
403
|
-
business_connection_id: string;
|
|
404
|
-
}
|
|
405
|
-
export interface GetChatInput {
|
|
406
|
-
chat_id: number | string;
|
|
407
|
-
}
|
|
408
|
-
export interface GetChatAdministratorsInput {
|
|
409
|
-
chat_id: number | string;
|
|
410
|
-
}
|
|
411
|
-
export interface GetChatMemberInput {
|
|
412
|
-
chat_id: number | string;
|
|
413
|
-
user_id: number;
|
|
414
|
-
}
|
|
415
|
-
export interface GetChatMemberCountInput {
|
|
416
|
-
chat_id: number | string;
|
|
417
|
-
}
|
|
418
|
-
export interface GetChatMenuButtonInput {
|
|
419
|
-
chat_id?: number;
|
|
420
|
-
}
|
|
421
|
-
export interface GetCustomEmojiStickersInput {
|
|
422
|
-
custom_emoji_ids: string[];
|
|
423
|
-
}
|
|
424
|
-
export interface GetFileInput {
|
|
425
|
-
file_id: string;
|
|
426
|
-
}
|
|
427
|
-
export interface GetForumTopicIconStickersInput {
|
|
428
|
-
}
|
|
429
|
-
export interface GetGameHighScoresInput {
|
|
430
|
-
user_id: number;
|
|
431
|
-
chat_id?: number;
|
|
432
|
-
message_id?: number;
|
|
433
|
-
inline_message_id?: string;
|
|
434
|
-
}
|
|
435
|
-
export interface GetMeInput {
|
|
436
|
-
}
|
|
437
|
-
export interface GetMyCommandsInput {
|
|
438
|
-
scope?: T.BotCommandScope;
|
|
439
|
-
language_code?: string;
|
|
440
|
-
}
|
|
441
|
-
export interface GetMyDefaultAdministratorRightsInput {
|
|
442
|
-
for_channels?: boolean;
|
|
443
|
-
}
|
|
444
|
-
export interface GetMyDescriptionInput {
|
|
445
|
-
language_code?: string;
|
|
446
|
-
}
|
|
447
|
-
export interface GetMyNameInput {
|
|
448
|
-
language_code?: string;
|
|
449
|
-
}
|
|
450
|
-
export interface GetMyShortDescriptionInput {
|
|
451
|
-
language_code?: string;
|
|
452
|
-
}
|
|
453
|
-
export interface GetStarTransactionsInput {
|
|
454
|
-
offset?: number;
|
|
455
|
-
limit?: number;
|
|
456
|
-
}
|
|
457
|
-
export interface GetStickerSetInput {
|
|
458
|
-
name: string;
|
|
459
|
-
}
|
|
460
|
-
export interface GetUpdatesInput {
|
|
461
|
-
offset?: number;
|
|
462
|
-
limit?: number;
|
|
463
|
-
timeout?: number;
|
|
464
|
-
allowed_updates?: string[];
|
|
465
|
-
}
|
|
466
|
-
export interface GetUserChatBoostsInput {
|
|
467
|
-
chat_id: number | string;
|
|
468
|
-
user_id: number;
|
|
469
|
-
}
|
|
470
|
-
export interface GetUserProfilePhotosInput {
|
|
471
|
-
user_id: number;
|
|
472
|
-
offset?: number;
|
|
473
|
-
limit?: number;
|
|
474
|
-
}
|
|
475
|
-
export interface GetWebhookInfoInput {
|
|
476
|
-
}
|
|
477
|
-
export interface HideGeneralForumTopicInput {
|
|
478
|
-
chat_id: number | string;
|
|
479
|
-
}
|
|
480
|
-
export interface LeaveChatInput {
|
|
481
|
-
chat_id: number | string;
|
|
482
|
-
}
|
|
483
|
-
export interface LogOutInput {
|
|
484
|
-
}
|
|
485
|
-
export interface PinChatMessageInput {
|
|
486
|
-
chat_id: number | string;
|
|
487
|
-
message_id: number;
|
|
488
|
-
business_connection_id?: string;
|
|
489
|
-
disable_notification?: boolean;
|
|
490
|
-
}
|
|
491
|
-
export interface PromoteChatMemberInput {
|
|
492
|
-
chat_id: number | string;
|
|
493
|
-
user_id: number;
|
|
494
|
-
is_anonymous?: boolean;
|
|
495
|
-
can_manage_chat?: boolean;
|
|
496
|
-
can_delete_messages?: boolean;
|
|
497
|
-
can_manage_video_chats?: boolean;
|
|
498
|
-
can_restrict_members?: boolean;
|
|
499
|
-
can_promote_members?: boolean;
|
|
500
|
-
can_change_info?: boolean;
|
|
501
|
-
can_invite_users?: boolean;
|
|
502
|
-
can_post_stories?: boolean;
|
|
503
|
-
can_edit_stories?: boolean;
|
|
504
|
-
can_delete_stories?: boolean;
|
|
505
|
-
can_post_messages?: boolean;
|
|
506
|
-
can_edit_messages?: boolean;
|
|
507
|
-
can_pin_messages?: boolean;
|
|
508
|
-
can_manage_topics?: boolean;
|
|
509
|
-
}
|
|
510
|
-
export interface RefundStarPaymentInput {
|
|
511
|
-
user_id: number;
|
|
512
|
-
telegram_payment_charge_id: string;
|
|
513
|
-
}
|
|
514
|
-
export interface ReopenForumTopicInput {
|
|
515
|
-
chat_id: number | string;
|
|
516
|
-
message_thread_id: number;
|
|
517
|
-
}
|
|
518
|
-
export interface ReopenGeneralForumTopicInput {
|
|
519
|
-
chat_id: number | string;
|
|
520
|
-
}
|
|
521
|
-
export interface ReplaceStickerInSetInput {
|
|
522
|
-
user_id: number;
|
|
523
|
-
name: string;
|
|
524
|
-
old_sticker: string;
|
|
525
|
-
sticker: T.InputSticker;
|
|
526
|
-
}
|
|
527
|
-
export interface RestrictChatMemberInput {
|
|
528
|
-
chat_id: number | string;
|
|
529
|
-
user_id: number;
|
|
530
|
-
permissions: T.ChatPermissions;
|
|
531
|
-
use_independent_chat_permissions?: boolean;
|
|
532
|
-
until_date?: number;
|
|
533
|
-
}
|
|
534
|
-
export interface RevokeChatInviteLinkInput {
|
|
535
|
-
chat_id: number | string;
|
|
536
|
-
invite_link: string;
|
|
537
|
-
}
|
|
538
|
-
export interface SavePreparedInlineMessageInput {
|
|
539
|
-
user_id: number;
|
|
540
|
-
result: T.InlineQueryResult;
|
|
541
|
-
allow_user_chats?: boolean;
|
|
542
|
-
allow_bot_chats?: boolean;
|
|
543
|
-
allow_group_chats?: boolean;
|
|
544
|
-
allow_channel_chats?: boolean;
|
|
545
|
-
}
|
|
546
|
-
export interface SendAnimationInput {
|
|
547
|
-
chat_id: number | string;
|
|
548
|
-
animation: T.InputFile | string;
|
|
549
|
-
business_connection_id?: string;
|
|
550
|
-
message_thread_id?: number;
|
|
551
|
-
duration?: number;
|
|
552
|
-
width?: number;
|
|
553
|
-
height?: number;
|
|
554
|
-
thumbnail?: T.InputFile | string;
|
|
555
|
-
caption?: string;
|
|
556
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
557
|
-
caption_entities?: T.MessageEntity[];
|
|
558
|
-
show_caption_above_media?: boolean;
|
|
559
|
-
has_spoiler?: boolean;
|
|
560
|
-
disable_notification?: boolean;
|
|
561
|
-
protect_content?: boolean;
|
|
562
|
-
allow_paid_broadcast?: boolean;
|
|
563
|
-
message_effect_id?: string;
|
|
564
|
-
reply_parameters?: T.ReplyParameters;
|
|
565
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
566
|
-
}
|
|
567
|
-
export interface SendAudioInput {
|
|
568
|
-
chat_id: number | string;
|
|
569
|
-
audio: T.InputFile | string;
|
|
570
|
-
business_connection_id?: string;
|
|
571
|
-
message_thread_id?: number;
|
|
572
|
-
caption?: string;
|
|
573
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
574
|
-
caption_entities?: T.MessageEntity[];
|
|
575
|
-
duration?: number;
|
|
576
|
-
performer?: string;
|
|
577
|
-
title?: string;
|
|
578
|
-
thumbnail?: T.InputFile | string;
|
|
579
|
-
disable_notification?: boolean;
|
|
580
|
-
protect_content?: boolean;
|
|
581
|
-
allow_paid_broadcast?: boolean;
|
|
582
|
-
message_effect_id?: string;
|
|
583
|
-
reply_parameters?: T.ReplyParameters;
|
|
584
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
585
|
-
}
|
|
586
|
-
export interface SendChatActionInput {
|
|
587
|
-
chat_id: number | string;
|
|
588
|
-
action: string;
|
|
589
|
-
business_connection_id?: string;
|
|
590
|
-
message_thread_id?: number;
|
|
591
|
-
}
|
|
592
|
-
export interface SendContactInput {
|
|
593
|
-
chat_id: number | string;
|
|
594
|
-
phone_number: string;
|
|
595
|
-
first_name: string;
|
|
596
|
-
business_connection_id?: string;
|
|
597
|
-
message_thread_id?: number;
|
|
598
|
-
last_name?: string;
|
|
599
|
-
vcard?: string;
|
|
600
|
-
disable_notification?: boolean;
|
|
601
|
-
protect_content?: boolean;
|
|
602
|
-
allow_paid_broadcast?: boolean;
|
|
603
|
-
message_effect_id?: string;
|
|
604
|
-
reply_parameters?: T.ReplyParameters;
|
|
605
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
606
|
-
}
|
|
607
|
-
export interface SendDiceInput {
|
|
608
|
-
chat_id: number | string;
|
|
609
|
-
business_connection_id?: string;
|
|
610
|
-
message_thread_id?: number;
|
|
611
|
-
emoji?: "🎲" | "🎯" | "🏀" | "⚽" | "🎳" | "🎰";
|
|
612
|
-
disable_notification?: boolean;
|
|
613
|
-
protect_content?: boolean;
|
|
614
|
-
allow_paid_broadcast?: boolean;
|
|
615
|
-
message_effect_id?: string;
|
|
616
|
-
reply_parameters?: T.ReplyParameters;
|
|
617
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
618
|
-
}
|
|
619
|
-
export interface SendDocumentInput {
|
|
620
|
-
chat_id: number | string;
|
|
621
|
-
document: T.InputFile | string;
|
|
622
|
-
business_connection_id?: string;
|
|
623
|
-
message_thread_id?: number;
|
|
624
|
-
thumbnail?: T.InputFile | string;
|
|
625
|
-
caption?: string;
|
|
626
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
627
|
-
caption_entities?: T.MessageEntity[];
|
|
628
|
-
disable_content_type_detection?: boolean;
|
|
629
|
-
disable_notification?: boolean;
|
|
630
|
-
protect_content?: boolean;
|
|
631
|
-
allow_paid_broadcast?: boolean;
|
|
632
|
-
message_effect_id?: string;
|
|
633
|
-
reply_parameters?: T.ReplyParameters;
|
|
634
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
635
|
-
}
|
|
636
|
-
export interface SendGameInput {
|
|
637
|
-
chat_id: number;
|
|
638
|
-
game_short_name: string;
|
|
639
|
-
business_connection_id?: string;
|
|
640
|
-
message_thread_id?: number;
|
|
641
|
-
disable_notification?: boolean;
|
|
642
|
-
protect_content?: boolean;
|
|
643
|
-
allow_paid_broadcast?: boolean;
|
|
644
|
-
message_effect_id?: string;
|
|
645
|
-
reply_parameters?: T.ReplyParameters;
|
|
646
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
647
|
-
}
|
|
648
|
-
export interface SendGiftInput {
|
|
649
|
-
user_id: number;
|
|
650
|
-
gift_id: string;
|
|
651
|
-
text?: string;
|
|
652
|
-
text_parse_mode?: "HTML" | "MarkdownV2";
|
|
653
|
-
text_entities?: T.MessageEntity[];
|
|
654
|
-
}
|
|
655
|
-
export interface SendInvoiceInput {
|
|
656
|
-
chat_id: number | string;
|
|
657
|
-
title: string;
|
|
658
|
-
description: string;
|
|
659
|
-
payload: string;
|
|
660
|
-
currency: string;
|
|
661
|
-
prices: T.LabeledPrice[];
|
|
662
|
-
message_thread_id?: number;
|
|
663
|
-
provider_token?: string;
|
|
664
|
-
max_tip_amount?: number;
|
|
665
|
-
suggested_tip_amounts?: number[];
|
|
666
|
-
start_parameter?: string;
|
|
667
|
-
provider_data?: string;
|
|
668
|
-
photo_url?: string;
|
|
669
|
-
photo_size?: number;
|
|
670
|
-
photo_width?: number;
|
|
671
|
-
photo_height?: number;
|
|
672
|
-
need_name?: boolean;
|
|
673
|
-
need_phone_number?: boolean;
|
|
674
|
-
need_email?: boolean;
|
|
675
|
-
need_shipping_address?: boolean;
|
|
676
|
-
send_phone_number_to_provider?: boolean;
|
|
677
|
-
send_email_to_provider?: boolean;
|
|
678
|
-
is_flexible?: boolean;
|
|
679
|
-
disable_notification?: boolean;
|
|
680
|
-
protect_content?: boolean;
|
|
681
|
-
allow_paid_broadcast?: boolean;
|
|
682
|
-
message_effect_id?: string;
|
|
683
|
-
reply_parameters?: T.ReplyParameters;
|
|
684
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
685
|
-
}
|
|
686
|
-
export interface SendLocationInput {
|
|
687
|
-
chat_id: number | string;
|
|
688
|
-
latitude: number;
|
|
689
|
-
longitude: number;
|
|
690
|
-
business_connection_id?: string;
|
|
691
|
-
message_thread_id?: number;
|
|
692
|
-
horizontal_accuracy?: number;
|
|
693
|
-
live_period?: number;
|
|
694
|
-
heading?: number;
|
|
695
|
-
proximity_alert_radius?: number;
|
|
696
|
-
disable_notification?: boolean;
|
|
697
|
-
protect_content?: boolean;
|
|
698
|
-
allow_paid_broadcast?: boolean;
|
|
699
|
-
message_effect_id?: string;
|
|
700
|
-
reply_parameters?: T.ReplyParameters;
|
|
701
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
702
|
-
}
|
|
703
|
-
export interface SendMediaGroupInput {
|
|
704
|
-
chat_id: number | string;
|
|
705
|
-
media: (T.InputMediaAudio | T.InputMediaDocument | T.InputMediaPhoto | T.InputMediaVideo)[];
|
|
706
|
-
business_connection_id?: string;
|
|
707
|
-
message_thread_id?: number;
|
|
708
|
-
disable_notification?: boolean;
|
|
709
|
-
protect_content?: boolean;
|
|
710
|
-
allow_paid_broadcast?: boolean;
|
|
711
|
-
message_effect_id?: string;
|
|
712
|
-
reply_parameters?: T.ReplyParameters;
|
|
713
|
-
}
|
|
714
|
-
export interface SendMessageInput {
|
|
715
|
-
chat_id: number | string;
|
|
716
|
-
text: string;
|
|
717
|
-
business_connection_id?: string;
|
|
718
|
-
message_thread_id?: number;
|
|
719
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
720
|
-
entities?: T.MessageEntity[];
|
|
721
|
-
link_preview_options?: T.LinkPreviewOptions;
|
|
722
|
-
disable_notification?: boolean;
|
|
723
|
-
protect_content?: boolean;
|
|
724
|
-
allow_paid_broadcast?: boolean;
|
|
725
|
-
message_effect_id?: string;
|
|
726
|
-
reply_parameters?: T.ReplyParameters;
|
|
727
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
728
|
-
}
|
|
729
|
-
export interface SendPaidMediaInput {
|
|
730
|
-
chat_id: number | string;
|
|
731
|
-
star_count: number;
|
|
732
|
-
media: T.InputPaidMedia[];
|
|
733
|
-
business_connection_id?: string;
|
|
734
|
-
payload?: string;
|
|
735
|
-
caption?: string;
|
|
736
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
737
|
-
caption_entities?: T.MessageEntity[];
|
|
738
|
-
show_caption_above_media?: boolean;
|
|
739
|
-
disable_notification?: boolean;
|
|
740
|
-
protect_content?: boolean;
|
|
741
|
-
allow_paid_broadcast?: boolean;
|
|
742
|
-
reply_parameters?: T.ReplyParameters;
|
|
743
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
744
|
-
}
|
|
745
|
-
export interface SendPhotoInput {
|
|
746
|
-
chat_id: number | string;
|
|
747
|
-
photo: T.InputFile | string;
|
|
748
|
-
business_connection_id?: string;
|
|
749
|
-
message_thread_id?: number;
|
|
750
|
-
caption?: string;
|
|
751
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
752
|
-
caption_entities?: T.MessageEntity[];
|
|
753
|
-
show_caption_above_media?: boolean;
|
|
754
|
-
has_spoiler?: boolean;
|
|
755
|
-
disable_notification?: boolean;
|
|
756
|
-
protect_content?: boolean;
|
|
757
|
-
allow_paid_broadcast?: boolean;
|
|
758
|
-
message_effect_id?: string;
|
|
759
|
-
reply_parameters?: T.ReplyParameters;
|
|
760
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
761
|
-
}
|
|
762
|
-
export interface SendPollInput {
|
|
763
|
-
chat_id: number | string;
|
|
764
|
-
question: string;
|
|
765
|
-
options: T.InputPollOption[];
|
|
766
|
-
business_connection_id?: string;
|
|
767
|
-
message_thread_id?: number;
|
|
768
|
-
question_parse_mode?: "HTML" | "MarkdownV2";
|
|
769
|
-
question_entities?: T.MessageEntity[];
|
|
770
|
-
is_anonymous?: boolean;
|
|
771
|
-
type?: string;
|
|
772
|
-
allows_multiple_answers?: boolean;
|
|
773
|
-
correct_option_id?: number;
|
|
774
|
-
explanation?: string;
|
|
775
|
-
explanation_parse_mode?: "HTML" | "MarkdownV2";
|
|
776
|
-
explanation_entities?: T.MessageEntity[];
|
|
777
|
-
open_period?: number;
|
|
778
|
-
close_date?: number;
|
|
779
|
-
is_closed?: boolean;
|
|
780
|
-
disable_notification?: boolean;
|
|
781
|
-
protect_content?: boolean;
|
|
782
|
-
allow_paid_broadcast?: boolean;
|
|
783
|
-
message_effect_id?: string;
|
|
784
|
-
reply_parameters?: T.ReplyParameters;
|
|
785
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
786
|
-
}
|
|
787
|
-
export interface SendStickerInput {
|
|
788
|
-
chat_id: number | string;
|
|
789
|
-
sticker: T.InputFile | string;
|
|
790
|
-
business_connection_id?: string;
|
|
791
|
-
message_thread_id?: number;
|
|
792
|
-
emoji?: string;
|
|
793
|
-
disable_notification?: boolean;
|
|
794
|
-
protect_content?: boolean;
|
|
795
|
-
allow_paid_broadcast?: boolean;
|
|
796
|
-
message_effect_id?: string;
|
|
797
|
-
reply_parameters?: T.ReplyParameters;
|
|
798
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
799
|
-
}
|
|
800
|
-
export interface SendVenueInput {
|
|
801
|
-
chat_id: number | string;
|
|
802
|
-
latitude: number;
|
|
803
|
-
longitude: number;
|
|
804
|
-
title: string;
|
|
805
|
-
address: string;
|
|
806
|
-
business_connection_id?: string;
|
|
807
|
-
message_thread_id?: number;
|
|
808
|
-
foursquare_id?: string;
|
|
809
|
-
foursquare_type?: string;
|
|
810
|
-
google_place_id?: string;
|
|
811
|
-
google_place_type?: string;
|
|
812
|
-
disable_notification?: boolean;
|
|
813
|
-
protect_content?: boolean;
|
|
814
|
-
allow_paid_broadcast?: boolean;
|
|
815
|
-
message_effect_id?: string;
|
|
816
|
-
reply_parameters?: T.ReplyParameters;
|
|
817
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
818
|
-
}
|
|
819
|
-
export interface SendVideoInput {
|
|
820
|
-
chat_id: number | string;
|
|
821
|
-
video: T.InputFile | string;
|
|
822
|
-
business_connection_id?: string;
|
|
823
|
-
message_thread_id?: number;
|
|
824
|
-
duration?: number;
|
|
825
|
-
width?: number;
|
|
826
|
-
height?: number;
|
|
827
|
-
thumbnail?: T.InputFile | string;
|
|
828
|
-
caption?: string;
|
|
829
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
830
|
-
caption_entities?: T.MessageEntity[];
|
|
831
|
-
show_caption_above_media?: boolean;
|
|
832
|
-
has_spoiler?: boolean;
|
|
833
|
-
supports_streaming?: boolean;
|
|
834
|
-
disable_notification?: boolean;
|
|
835
|
-
protect_content?: boolean;
|
|
836
|
-
allow_paid_broadcast?: boolean;
|
|
837
|
-
message_effect_id?: string;
|
|
838
|
-
reply_parameters?: T.ReplyParameters;
|
|
839
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
840
|
-
}
|
|
841
|
-
export interface SendVideoNoteInput {
|
|
842
|
-
chat_id: number | string;
|
|
843
|
-
video_note: T.InputFile | string;
|
|
844
|
-
business_connection_id?: string;
|
|
845
|
-
message_thread_id?: number;
|
|
846
|
-
duration?: number;
|
|
847
|
-
length?: number;
|
|
848
|
-
thumbnail?: T.InputFile | string;
|
|
849
|
-
disable_notification?: boolean;
|
|
850
|
-
protect_content?: boolean;
|
|
851
|
-
allow_paid_broadcast?: boolean;
|
|
852
|
-
message_effect_id?: string;
|
|
853
|
-
reply_parameters?: T.ReplyParameters;
|
|
854
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
855
|
-
}
|
|
856
|
-
export interface SendVoiceInput {
|
|
857
|
-
chat_id: number | string;
|
|
858
|
-
voice: T.InputFile | string;
|
|
859
|
-
business_connection_id?: string;
|
|
860
|
-
message_thread_id?: number;
|
|
861
|
-
caption?: string;
|
|
862
|
-
parse_mode?: "HTML" | "MarkdownV2";
|
|
863
|
-
caption_entities?: T.MessageEntity[];
|
|
864
|
-
duration?: number;
|
|
865
|
-
disable_notification?: boolean;
|
|
866
|
-
protect_content?: boolean;
|
|
867
|
-
allow_paid_broadcast?: boolean;
|
|
868
|
-
message_effect_id?: string;
|
|
869
|
-
reply_parameters?: T.ReplyParameters;
|
|
870
|
-
reply_markup?: T.InlineKeyboardMarkup | T.ReplyKeyboardMarkup | T.ReplyKeyboardRemove | T.ForceReply;
|
|
871
|
-
}
|
|
872
|
-
export interface SetChatAdministratorCustomTitleInput {
|
|
873
|
-
chat_id: number | string;
|
|
874
|
-
user_id: number;
|
|
875
|
-
custom_title: string;
|
|
876
|
-
}
|
|
877
|
-
export interface SetChatDescriptionInput {
|
|
878
|
-
chat_id: number | string;
|
|
879
|
-
description?: string;
|
|
880
|
-
}
|
|
881
|
-
export interface SetChatMenuButtonInput {
|
|
882
|
-
chat_id?: number;
|
|
883
|
-
menu_button?: T.MenuButton;
|
|
884
|
-
}
|
|
885
|
-
export interface SetChatPermissionsInput {
|
|
886
|
-
chat_id: number | string;
|
|
887
|
-
permissions: T.ChatPermissions;
|
|
888
|
-
use_independent_chat_permissions?: boolean;
|
|
889
|
-
}
|
|
890
|
-
export interface SetChatPhotoInput {
|
|
891
|
-
chat_id: number | string;
|
|
892
|
-
photo: T.InputFile;
|
|
893
|
-
}
|
|
894
|
-
export interface SetChatStickerSetInput {
|
|
895
|
-
chat_id: number | string;
|
|
896
|
-
sticker_set_name: string;
|
|
897
|
-
}
|
|
898
|
-
export interface SetChatTitleInput {
|
|
899
|
-
chat_id: number | string;
|
|
900
|
-
title: string;
|
|
901
|
-
}
|
|
902
|
-
export interface SetCustomEmojiStickerSetThumbnailInput {
|
|
903
|
-
name: string;
|
|
904
|
-
custom_emoji_id?: string;
|
|
905
|
-
}
|
|
906
|
-
export interface SetGameScoreInput {
|
|
907
|
-
user_id: number;
|
|
908
|
-
score: number;
|
|
909
|
-
force?: boolean;
|
|
910
|
-
disable_edit_message?: boolean;
|
|
911
|
-
chat_id?: number;
|
|
912
|
-
message_id?: number;
|
|
913
|
-
inline_message_id?: string;
|
|
914
|
-
}
|
|
915
|
-
export interface SetMessageReactionInput {
|
|
916
|
-
chat_id: number | string;
|
|
917
|
-
message_id: number;
|
|
918
|
-
reaction?: T.ReactionType[];
|
|
919
|
-
is_big?: boolean;
|
|
920
|
-
}
|
|
921
|
-
export interface SetMyCommandsInput {
|
|
922
|
-
commands: T.BotCommand[];
|
|
923
|
-
scope?: T.BotCommandScope;
|
|
924
|
-
language_code?: string;
|
|
925
|
-
}
|
|
926
|
-
export interface SetMyDefaultAdministratorRightsInput {
|
|
927
|
-
rights?: T.ChatAdministratorRights;
|
|
928
|
-
for_channels?: boolean;
|
|
929
|
-
}
|
|
930
|
-
export interface SetMyDescriptionInput {
|
|
931
|
-
description?: string;
|
|
932
|
-
language_code?: string;
|
|
933
|
-
}
|
|
934
|
-
export interface SetMyNameInput {
|
|
935
|
-
name?: string;
|
|
936
|
-
language_code?: string;
|
|
937
|
-
}
|
|
938
|
-
export interface SetMyShortDescriptionInput {
|
|
939
|
-
short_description?: string;
|
|
940
|
-
language_code?: string;
|
|
941
|
-
}
|
|
942
|
-
export interface SetPassportDataErrorsInput {
|
|
943
|
-
user_id: number;
|
|
944
|
-
errors: T.PassportElementError[];
|
|
945
|
-
}
|
|
946
|
-
export interface SetStickerEmojiListInput {
|
|
947
|
-
sticker: string;
|
|
948
|
-
emoji_list: string[];
|
|
949
|
-
}
|
|
950
|
-
export interface SetStickerKeywordsInput {
|
|
951
|
-
sticker: string;
|
|
952
|
-
keywords?: string[];
|
|
953
|
-
}
|
|
954
|
-
export interface SetStickerMaskPositionInput {
|
|
955
|
-
sticker: string;
|
|
956
|
-
mask_position?: T.MaskPosition;
|
|
957
|
-
}
|
|
958
|
-
export interface SetStickerPositionInSetInput {
|
|
959
|
-
sticker: string;
|
|
960
|
-
position: number;
|
|
961
|
-
}
|
|
962
|
-
export interface SetStickerSetThumbnailInput {
|
|
963
|
-
name: string;
|
|
964
|
-
user_id: number;
|
|
965
|
-
format: "static" | "animated" | "video";
|
|
966
|
-
thumbnail?: T.InputFile | string;
|
|
967
|
-
}
|
|
968
|
-
export interface SetStickerSetTitleInput {
|
|
969
|
-
name: string;
|
|
970
|
-
title: string;
|
|
971
|
-
}
|
|
972
|
-
export interface SetUserEmojiStatusInput {
|
|
973
|
-
user_id: number;
|
|
974
|
-
emoji_status_custom_emoji_id?: string;
|
|
975
|
-
emoji_status_expiration_date?: number;
|
|
976
|
-
}
|
|
977
|
-
export interface SetWebhookInput {
|
|
978
|
-
url: string;
|
|
979
|
-
certificate?: T.InputFile;
|
|
980
|
-
ip_address?: string;
|
|
981
|
-
max_connections?: number;
|
|
982
|
-
allowed_updates?: string[];
|
|
983
|
-
drop_pending_updates?: boolean;
|
|
984
|
-
secret_token?: string;
|
|
985
|
-
}
|
|
986
|
-
export interface StopMessageLiveLocationInput {
|
|
987
|
-
business_connection_id?: string;
|
|
988
|
-
chat_id?: number | string;
|
|
989
|
-
message_id?: number;
|
|
990
|
-
inline_message_id?: string;
|
|
991
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
992
|
-
}
|
|
993
|
-
export interface StopPollInput {
|
|
994
|
-
chat_id: number | string;
|
|
995
|
-
message_id: number;
|
|
996
|
-
business_connection_id?: string;
|
|
997
|
-
reply_markup?: T.InlineKeyboardMarkup;
|
|
998
|
-
}
|
|
999
|
-
export interface UnbanChatMemberInput {
|
|
1000
|
-
chat_id: number | string;
|
|
1001
|
-
user_id: number;
|
|
1002
|
-
only_if_banned?: boolean;
|
|
1003
|
-
}
|
|
1004
|
-
export interface UnbanChatSenderChatInput {
|
|
1005
|
-
chat_id: number | string;
|
|
1006
|
-
sender_chat_id: number;
|
|
1007
|
-
}
|
|
1008
|
-
export interface UnhideGeneralForumTopicInput {
|
|
1009
|
-
chat_id: number | string;
|
|
1010
|
-
}
|
|
1011
|
-
export interface UnpinAllChatMessagesInput {
|
|
1012
|
-
chat_id: number | string;
|
|
1013
|
-
}
|
|
1014
|
-
export interface UnpinAllForumTopicMessagesInput {
|
|
1015
|
-
chat_id: number | string;
|
|
1016
|
-
message_thread_id: number;
|
|
1017
|
-
}
|
|
1018
|
-
export interface UnpinAllGeneralForumTopicMessagesInput {
|
|
1019
|
-
chat_id: number | string;
|
|
1020
|
-
}
|
|
1021
|
-
export interface UnpinChatMessageInput {
|
|
1022
|
-
chat_id: number | string;
|
|
1023
|
-
business_connection_id?: string;
|
|
1024
|
-
message_id?: number;
|
|
1025
|
-
}
|
|
1026
|
-
export interface UploadStickerFileInput {
|
|
1027
|
-
user_id: number;
|
|
1028
|
-
sticker: T.InputFile;
|
|
1029
|
-
sticker_format: "static" | "animated" | "video";
|
|
1030
|
-
}
|