botapi-py 1.5.1__tar.gz → 1.5.2__tar.gz
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.
- {botapi_py-1.5.1 → botapi_py-1.5.2}/PKG-INFO +1 -1
- {botapi_py-1.5.1 → botapi_py-1.5.2}/pyproject.toml +1 -1
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/methods.py +38 -17
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/types.py +42 -42
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/__init__.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/__init__.pyi +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/bot.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/core.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/dispatchers/__init__.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/dispatchers/__init__.pyi +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/dispatchers/common.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/dispatchers/get_updates_handler.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/dispatchers/redis_pubsub_handler.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/enums.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/errors.py +0 -0
- {botapi_py-1.5.1 → botapi_py-1.5.2}/src/botapi/internals.py +0 -0
|
@@ -20,12 +20,14 @@ from .types import (
|
|
|
20
20
|
MessageId,
|
|
21
21
|
InaccessibleMessage,
|
|
22
22
|
MaybeInaccessibleMessage,
|
|
23
|
+
_MaybeInaccessibleMessage,
|
|
23
24
|
MaybeInaccessibleMessageAdapter,
|
|
24
25
|
MessageEntity,
|
|
25
26
|
TextQuote,
|
|
26
27
|
ExternalReplyInfo,
|
|
27
28
|
ReplyParameters,
|
|
28
29
|
MessageOrigin,
|
|
30
|
+
_MessageOrigin,
|
|
29
31
|
MessageOriginAdapter,
|
|
30
32
|
MessageOriginUser,
|
|
31
33
|
MessageOriginHiddenUser,
|
|
@@ -41,6 +43,7 @@ from .types import (
|
|
|
41
43
|
Voice,
|
|
42
44
|
PaidMediaInfo,
|
|
43
45
|
PaidMedia,
|
|
46
|
+
_PaidMedia,
|
|
44
47
|
PaidMediaAdapter,
|
|
45
48
|
PaidMediaPreview,
|
|
46
49
|
PaidMediaPhoto,
|
|
@@ -64,11 +67,13 @@ from .types import (
|
|
|
64
67
|
MessageAutoDeleteTimerChanged,
|
|
65
68
|
ChatBoostAdded,
|
|
66
69
|
BackgroundFill,
|
|
70
|
+
_BackgroundFill,
|
|
67
71
|
BackgroundFillAdapter,
|
|
68
72
|
BackgroundFillSolid,
|
|
69
73
|
BackgroundFillGradient,
|
|
70
74
|
BackgroundFillFreeformGradient,
|
|
71
75
|
BackgroundType,
|
|
76
|
+
_BackgroundType,
|
|
72
77
|
BackgroundTypeAdapter,
|
|
73
78
|
BackgroundTypeFill,
|
|
74
79
|
BackgroundTypeWallpaper,
|
|
@@ -126,6 +131,7 @@ from .types import (
|
|
|
126
131
|
ChatAdministratorRights,
|
|
127
132
|
ChatMemberUpdated,
|
|
128
133
|
ChatMember,
|
|
134
|
+
_ChatMember,
|
|
129
135
|
ChatMemberAdapter,
|
|
130
136
|
ChatMemberOwner,
|
|
131
137
|
ChatMemberAdministrator,
|
|
@@ -144,6 +150,7 @@ from .types import (
|
|
|
144
150
|
StoryAreaPosition,
|
|
145
151
|
LocationAddress,
|
|
146
152
|
StoryAreaType,
|
|
153
|
+
_StoryAreaType,
|
|
147
154
|
StoryAreaTypeAdapter,
|
|
148
155
|
StoryAreaTypeLocation,
|
|
149
156
|
StoryAreaTypeSuggestedReaction,
|
|
@@ -153,6 +160,7 @@ from .types import (
|
|
|
153
160
|
StoryArea,
|
|
154
161
|
ChatLocation,
|
|
155
162
|
ReactionType,
|
|
163
|
+
_ReactionType,
|
|
156
164
|
ReactionTypeAdapter,
|
|
157
165
|
ReactionTypeEmoji,
|
|
158
166
|
ReactionTypeCustomEmoji,
|
|
@@ -173,6 +181,7 @@ from .types import (
|
|
|
173
181
|
GiftInfo,
|
|
174
182
|
UniqueGiftInfo,
|
|
175
183
|
OwnedGift,
|
|
184
|
+
_OwnedGift,
|
|
176
185
|
OwnedGiftAdapter,
|
|
177
186
|
OwnedGiftRegular,
|
|
178
187
|
OwnedGiftUnique,
|
|
@@ -181,6 +190,7 @@ from .types import (
|
|
|
181
190
|
StarAmount,
|
|
182
191
|
BotCommand,
|
|
183
192
|
BotCommandScope,
|
|
193
|
+
_BotCommandScope,
|
|
184
194
|
BotCommandScopeAdapter,
|
|
185
195
|
BotCommandScopeDefault,
|
|
186
196
|
BotCommandScopeAllPrivateChats,
|
|
@@ -193,11 +203,13 @@ from .types import (
|
|
|
193
203
|
BotDescription,
|
|
194
204
|
BotShortDescription,
|
|
195
205
|
MenuButton,
|
|
206
|
+
_MenuButton,
|
|
196
207
|
MenuButtonAdapter,
|
|
197
208
|
MenuButtonCommands,
|
|
198
209
|
MenuButtonWebApp,
|
|
199
210
|
MenuButtonDefault,
|
|
200
211
|
ChatBoostSource,
|
|
212
|
+
_ChatBoostSource,
|
|
201
213
|
ChatBoostSourceAdapter,
|
|
202
214
|
ChatBoostSourcePremium,
|
|
203
215
|
ChatBoostSourceGiftCode,
|
|
@@ -211,6 +223,7 @@ from .types import (
|
|
|
211
223
|
BusinessMessagesDeleted,
|
|
212
224
|
ResponseParameters,
|
|
213
225
|
InputMedia,
|
|
226
|
+
_InputMedia,
|
|
214
227
|
InputMediaAdapter,
|
|
215
228
|
InputMediaPhoto,
|
|
216
229
|
InputMediaVideo,
|
|
@@ -219,14 +232,17 @@ from .types import (
|
|
|
219
232
|
InputMediaDocument,
|
|
220
233
|
InputFile,
|
|
221
234
|
InputPaidMedia,
|
|
235
|
+
_InputPaidMedia,
|
|
222
236
|
InputPaidMediaAdapter,
|
|
223
237
|
InputPaidMediaPhoto,
|
|
224
238
|
InputPaidMediaVideo,
|
|
225
239
|
InputProfilePhoto,
|
|
240
|
+
_InputProfilePhoto,
|
|
226
241
|
InputProfilePhotoAdapter,
|
|
227
242
|
InputProfilePhotoStatic,
|
|
228
243
|
InputProfilePhotoAnimated,
|
|
229
244
|
InputStoryContent,
|
|
245
|
+
_InputStoryContent,
|
|
230
246
|
InputStoryContentAdapter,
|
|
231
247
|
InputStoryContentPhoto,
|
|
232
248
|
InputStoryContentVideo,
|
|
@@ -237,6 +253,7 @@ from .types import (
|
|
|
237
253
|
InlineQuery,
|
|
238
254
|
InlineQueryResultsButton,
|
|
239
255
|
InlineQueryResult,
|
|
256
|
+
_InlineQueryResult,
|
|
240
257
|
InlineQueryResultAdapter,
|
|
241
258
|
InlineQueryResultArticle,
|
|
242
259
|
InlineQueryResultPhoto,
|
|
@@ -259,6 +276,7 @@ from .types import (
|
|
|
259
276
|
InlineQueryResultCachedVoice,
|
|
260
277
|
InlineQueryResultCachedAudio,
|
|
261
278
|
InputMessageContent,
|
|
279
|
+
_InputMessageContent,
|
|
262
280
|
InputMessageContentAdapter,
|
|
263
281
|
InputTextMessageContent,
|
|
264
282
|
InputLocationMessageContent,
|
|
@@ -279,12 +297,14 @@ from .types import (
|
|
|
279
297
|
PreCheckoutQuery,
|
|
280
298
|
PaidMediaPurchased,
|
|
281
299
|
RevenueWithdrawalState,
|
|
300
|
+
_RevenueWithdrawalState,
|
|
282
301
|
RevenueWithdrawalStateAdapter,
|
|
283
302
|
RevenueWithdrawalStatePending,
|
|
284
303
|
RevenueWithdrawalStateSucceeded,
|
|
285
304
|
RevenueWithdrawalStateFailed,
|
|
286
305
|
AffiliateInfo,
|
|
287
306
|
TransactionPartner,
|
|
307
|
+
_TransactionPartner,
|
|
288
308
|
TransactionPartnerAdapter,
|
|
289
309
|
TransactionPartnerUser,
|
|
290
310
|
TransactionPartnerChat,
|
|
@@ -300,6 +320,7 @@ from .types import (
|
|
|
300
320
|
EncryptedPassportElement,
|
|
301
321
|
EncryptedCredentials,
|
|
302
322
|
PassportElementError,
|
|
323
|
+
_PassportElementError,
|
|
303
324
|
PassportElementErrorAdapter,
|
|
304
325
|
PassportElementErrorDataField,
|
|
305
326
|
PassportElementErrorFrontSide,
|
|
@@ -1062,7 +1083,7 @@ class Methods(core.BaseBot):
|
|
|
1062
1083
|
self,
|
|
1063
1084
|
chat_id: Union[int, str],
|
|
1064
1085
|
star_count: int,
|
|
1065
|
-
media: List[
|
|
1086
|
+
media: List[_InputPaidMedia],
|
|
1066
1087
|
business_connection_id: Optional[str] = None,
|
|
1067
1088
|
message_thread_id: Optional[int] = None,
|
|
1068
1089
|
direct_messages_topic_id: Optional[int] = None,
|
|
@@ -1476,7 +1497,7 @@ class Methods(core.BaseBot):
|
|
|
1476
1497
|
self,
|
|
1477
1498
|
chat_id: Union[int, str],
|
|
1478
1499
|
message_id: int,
|
|
1479
|
-
reaction: Optional[List[
|
|
1500
|
+
reaction: Optional[List[_ReactionType]] = None,
|
|
1480
1501
|
is_big: Optional[bool] = None,
|
|
1481
1502
|
) -> bool:
|
|
1482
1503
|
'''
|
|
@@ -2186,7 +2207,7 @@ class Methods(core.BaseBot):
|
|
|
2186
2207
|
async def get_chat_administrators(
|
|
2187
2208
|
self,
|
|
2188
2209
|
chat_id: Union[int, str],
|
|
2189
|
-
) -> List[
|
|
2210
|
+
) -> List[_ChatMember]:
|
|
2190
2211
|
'''
|
|
2191
2212
|
Use this method to get a list of
|
|
2192
2213
|
administrators in a chat, which aren't bots. Returns
|
|
@@ -2220,7 +2241,7 @@ class Methods(core.BaseBot):
|
|
|
2220
2241
|
self,
|
|
2221
2242
|
chat_id: Union[int, str],
|
|
2222
2243
|
user_id: int,
|
|
2223
|
-
) ->
|
|
2244
|
+
) -> _ChatMember:
|
|
2224
2245
|
'''
|
|
2225
2246
|
Use this method to get information about a
|
|
2226
2247
|
member of a chat. The method is only
|
|
@@ -2627,7 +2648,7 @@ class Methods(core.BaseBot):
|
|
|
2627
2648
|
async def set_my_commands(
|
|
2628
2649
|
self,
|
|
2629
2650
|
commands: List[BotCommand],
|
|
2630
|
-
scope: Optional[
|
|
2651
|
+
scope: Optional[_BotCommandScope] = None,
|
|
2631
2652
|
language_code: Optional[str] = None,
|
|
2632
2653
|
) -> bool:
|
|
2633
2654
|
'''
|
|
@@ -2647,7 +2668,7 @@ class Methods(core.BaseBot):
|
|
|
2647
2668
|
|
|
2648
2669
|
async def delete_my_commands(
|
|
2649
2670
|
self,
|
|
2650
|
-
scope: Optional[
|
|
2671
|
+
scope: Optional[_BotCommandScope] = None,
|
|
2651
2672
|
language_code: Optional[str] = None,
|
|
2652
2673
|
) -> bool:
|
|
2653
2674
|
'''
|
|
@@ -2668,7 +2689,7 @@ class Methods(core.BaseBot):
|
|
|
2668
2689
|
|
|
2669
2690
|
async def get_my_commands(
|
|
2670
2691
|
self,
|
|
2671
|
-
scope: Optional[
|
|
2692
|
+
scope: Optional[_BotCommandScope] = None,
|
|
2672
2693
|
language_code: Optional[str] = None,
|
|
2673
2694
|
) -> List[BotCommand]:
|
|
2674
2695
|
'''
|
|
@@ -2800,7 +2821,7 @@ class Methods(core.BaseBot):
|
|
|
2800
2821
|
async def set_chat_menu_button(
|
|
2801
2822
|
self,
|
|
2802
2823
|
chat_id: Optional[int] = None,
|
|
2803
|
-
menu_button: Optional[
|
|
2824
|
+
menu_button: Optional[_MenuButton] = None,
|
|
2804
2825
|
) -> bool:
|
|
2805
2826
|
'''
|
|
2806
2827
|
Use this method to change the bot's menu
|
|
@@ -2819,7 +2840,7 @@ class Methods(core.BaseBot):
|
|
|
2819
2840
|
async def get_chat_menu_button(
|
|
2820
2841
|
self,
|
|
2821
2842
|
chat_id: Optional[int] = None,
|
|
2822
|
-
) ->
|
|
2843
|
+
) -> _MenuButton:
|
|
2823
2844
|
'''
|
|
2824
2845
|
Use this method to get the current value
|
|
2825
2846
|
of the bot's menu button in a private
|
|
@@ -3119,7 +3140,7 @@ class Methods(core.BaseBot):
|
|
|
3119
3140
|
async def set_business_account_profile_photo(
|
|
3120
3141
|
self,
|
|
3121
3142
|
business_connection_id: str,
|
|
3122
|
-
photo:
|
|
3143
|
+
photo: _InputProfilePhoto,
|
|
3123
3144
|
is_public: Optional[bool] = None,
|
|
3124
3145
|
) -> bool:
|
|
3125
3146
|
'''
|
|
@@ -3388,7 +3409,7 @@ class Methods(core.BaseBot):
|
|
|
3388
3409
|
async def post_story(
|
|
3389
3410
|
self,
|
|
3390
3411
|
business_connection_id: str,
|
|
3391
|
-
content:
|
|
3412
|
+
content: _InputStoryContent,
|
|
3392
3413
|
active_period: int,
|
|
3393
3414
|
caption: Optional[str] = None,
|
|
3394
3415
|
parse_mode: Optional[Union[str, enums.ParseMode]] = None,
|
|
@@ -3453,7 +3474,7 @@ class Methods(core.BaseBot):
|
|
|
3453
3474
|
self,
|
|
3454
3475
|
business_connection_id: str,
|
|
3455
3476
|
story_id: int,
|
|
3456
|
-
content:
|
|
3477
|
+
content: _InputStoryContent,
|
|
3457
3478
|
caption: Optional[str] = None,
|
|
3458
3479
|
parse_mode: Optional[Union[str, enums.ParseMode]] = None,
|
|
3459
3480
|
caption_entities: Optional[List[MessageEntity]] = None,
|
|
@@ -3583,7 +3604,7 @@ class Methods(core.BaseBot):
|
|
|
3583
3604
|
|
|
3584
3605
|
async def edit_message_media(
|
|
3585
3606
|
self,
|
|
3586
|
-
media:
|
|
3607
|
+
media: _InputMedia,
|
|
3587
3608
|
business_connection_id: Optional[str] = None,
|
|
3588
3609
|
chat_id: Optional[Union[int, str]] = None,
|
|
3589
3610
|
message_id: Optional[int] = None,
|
|
@@ -4227,7 +4248,7 @@ class Methods(core.BaseBot):
|
|
|
4227
4248
|
async def answer_inline_query(
|
|
4228
4249
|
self,
|
|
4229
4250
|
inline_query_id: str,
|
|
4230
|
-
results: List[
|
|
4251
|
+
results: List[_InlineQueryResult],
|
|
4231
4252
|
cache_time: Optional[int] = None,
|
|
4232
4253
|
is_personal: Optional[bool] = None,
|
|
4233
4254
|
next_offset: Optional[str] = None,
|
|
@@ -4254,7 +4275,7 @@ class Methods(core.BaseBot):
|
|
|
4254
4275
|
async def answer_web_app_query(
|
|
4255
4276
|
self,
|
|
4256
4277
|
web_app_query_id: str,
|
|
4257
|
-
result:
|
|
4278
|
+
result: _InlineQueryResult,
|
|
4258
4279
|
) -> SentWebAppMessage:
|
|
4259
4280
|
'''
|
|
4260
4281
|
Use this method to set the result of
|
|
@@ -4275,7 +4296,7 @@ class Methods(core.BaseBot):
|
|
|
4275
4296
|
async def save_prepared_inline_message(
|
|
4276
4297
|
self,
|
|
4277
4298
|
user_id: int,
|
|
4278
|
-
result:
|
|
4299
|
+
result: _InlineQueryResult,
|
|
4279
4300
|
allow_user_chats: Optional[bool] = None,
|
|
4280
4301
|
allow_bot_chats: Optional[bool] = None,
|
|
4281
4302
|
allow_group_chats: Optional[bool] = None,
|
|
@@ -4560,7 +4581,7 @@ class Methods(core.BaseBot):
|
|
|
4560
4581
|
async def set_passport_data_errors(
|
|
4561
4582
|
self,
|
|
4562
4583
|
user_id: int,
|
|
4563
|
-
errors: List[
|
|
4584
|
+
errors: List[_PassportElementError],
|
|
4564
4585
|
) -> bool:
|
|
4565
4586
|
'''
|
|
4566
4587
|
Informs a user that some of the Telegram
|
|
@@ -36,7 +36,7 @@ class Message(MaybeInaccessibleMessage):
|
|
|
36
36
|
sender_boost_count: Optional[int] = Field(default=None)
|
|
37
37
|
sender_business_bot: Optional[User] = Field(default=None)
|
|
38
38
|
business_connection_id: Optional[str] = Field(default=None)
|
|
39
|
-
forward_origin: Optional[
|
|
39
|
+
forward_origin: Optional[_MessageOrigin] = Field(default=None)
|
|
40
40
|
is_topic_message: Optional[bool] = Field(default=None)
|
|
41
41
|
is_automatic_forward: Optional[bool] = Field(default=None)
|
|
42
42
|
reply_to_message: Optional[Message] = Field(default=None)
|
|
@@ -89,7 +89,7 @@ class Message(MaybeInaccessibleMessage):
|
|
|
89
89
|
message_auto_delete_timer_changed: Optional[MessageAutoDeleteTimerChanged] = Field(default=None)
|
|
90
90
|
migrate_to_chat_id: Optional[int] = Field(default=None)
|
|
91
91
|
migrate_from_chat_id: Optional[int] = Field(default=None)
|
|
92
|
-
pinned_message: Optional[
|
|
92
|
+
pinned_message: Optional[_MaybeInaccessibleMessage] = Field(default=None)
|
|
93
93
|
invoice: Optional[Invoice] = Field(default=None)
|
|
94
94
|
successful_payment: Optional[SuccessfulPayment] = Field(default=None)
|
|
95
95
|
refunded_payment: Optional[RefundedPayment] = Field(default=None)
|
|
@@ -575,7 +575,7 @@ class BackgroundTypeFill(BackgroundType):
|
|
|
575
575
|
'''
|
|
576
576
|
|
|
577
577
|
type: Literal['fill'] = 'fill' # pyright: ignore[reportIncompatibleVariableOverride]
|
|
578
|
-
fill:
|
|
578
|
+
fill: _BackgroundFill
|
|
579
579
|
dark_theme_dimming: int
|
|
580
580
|
|
|
581
581
|
class BackgroundTypeWallpaper(BackgroundType):
|
|
@@ -604,7 +604,7 @@ class BackgroundTypePattern(BackgroundType):
|
|
|
604
604
|
|
|
605
605
|
type: Literal['pattern'] = 'pattern' # pyright: ignore[reportIncompatibleVariableOverride]
|
|
606
606
|
document: Document
|
|
607
|
-
fill:
|
|
607
|
+
fill: _BackgroundFill
|
|
608
608
|
intensity: int
|
|
609
609
|
is_inverted: Optional[bool] = Field(default=None)
|
|
610
610
|
is_moving: Optional[bool] = Field(default=None)
|
|
@@ -775,7 +775,7 @@ class StoryAreaTypeSuggestedReaction(StoryAreaType):
|
|
|
775
775
|
'''
|
|
776
776
|
|
|
777
777
|
type: Literal['suggested_reaction'] = 'suggested_reaction' # pyright: ignore[reportIncompatibleVariableOverride]
|
|
778
|
-
reaction_type:
|
|
778
|
+
reaction_type: _ReactionType
|
|
779
779
|
is_dark: Optional[bool] = Field(default=None)
|
|
780
780
|
is_flipped: Optional[bool] = Field(default=None)
|
|
781
781
|
|
|
@@ -1334,7 +1334,7 @@ class InlineQueryResultCachedAudio(InlineQueryResult):
|
|
|
1334
1334
|
parse_mode: Optional[str] = Field(default=None)
|
|
1335
1335
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1336
1336
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1337
|
-
input_message_content: Optional[
|
|
1337
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1338
1338
|
|
|
1339
1339
|
class InlineQueryResultCachedDocument(InlineQueryResult):
|
|
1340
1340
|
'''
|
|
@@ -1357,7 +1357,7 @@ class InlineQueryResultCachedDocument(InlineQueryResult):
|
|
|
1357
1357
|
parse_mode: Optional[str] = Field(default=None)
|
|
1358
1358
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1359
1359
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1360
|
-
input_message_content: Optional[
|
|
1360
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1361
1361
|
|
|
1362
1362
|
class InlineQueryResultCachedGif(InlineQueryResult):
|
|
1363
1363
|
'''
|
|
@@ -1380,7 +1380,7 @@ class InlineQueryResultCachedGif(InlineQueryResult):
|
|
|
1380
1380
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1381
1381
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1382
1382
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1383
|
-
input_message_content: Optional[
|
|
1383
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1384
1384
|
|
|
1385
1385
|
class InlineQueryResultCachedMpeg4Gif(InlineQueryResult):
|
|
1386
1386
|
'''
|
|
@@ -1404,7 +1404,7 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult):
|
|
|
1404
1404
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1405
1405
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1406
1406
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1407
|
-
input_message_content: Optional[
|
|
1407
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1408
1408
|
|
|
1409
1409
|
class InlineQueryResultCachedPhoto(InlineQueryResult):
|
|
1410
1410
|
'''
|
|
@@ -1428,7 +1428,7 @@ class InlineQueryResultCachedPhoto(InlineQueryResult):
|
|
|
1428
1428
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1429
1429
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1430
1430
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1431
|
-
input_message_content: Optional[
|
|
1431
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1432
1432
|
|
|
1433
1433
|
class InlineQueryResultCachedSticker(InlineQueryResult):
|
|
1434
1434
|
'''
|
|
@@ -1445,7 +1445,7 @@ class InlineQueryResultCachedSticker(InlineQueryResult):
|
|
|
1445
1445
|
id: str
|
|
1446
1446
|
sticker_file_id: str
|
|
1447
1447
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1448
|
-
input_message_content: Optional[
|
|
1448
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1449
1449
|
|
|
1450
1450
|
class InlineQueryResultCachedVideo(InlineQueryResult):
|
|
1451
1451
|
'''
|
|
@@ -1469,7 +1469,7 @@ class InlineQueryResultCachedVideo(InlineQueryResult):
|
|
|
1469
1469
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1470
1470
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1471
1471
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1472
|
-
input_message_content: Optional[
|
|
1472
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1473
1473
|
|
|
1474
1474
|
class InlineQueryResultCachedVoice(InlineQueryResult):
|
|
1475
1475
|
'''
|
|
@@ -1491,7 +1491,7 @@ class InlineQueryResultCachedVoice(InlineQueryResult):
|
|
|
1491
1491
|
parse_mode: Optional[str] = Field(default=None)
|
|
1492
1492
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1493
1493
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1494
|
-
input_message_content: Optional[
|
|
1494
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1495
1495
|
|
|
1496
1496
|
class InlineQueryResultArticle(InlineQueryResult):
|
|
1497
1497
|
'''
|
|
@@ -1504,7 +1504,7 @@ class InlineQueryResultArticle(InlineQueryResult):
|
|
|
1504
1504
|
type: Literal['article'] = 'article' # pyright: ignore[reportIncompatibleVariableOverride]
|
|
1505
1505
|
id: str
|
|
1506
1506
|
title: str
|
|
1507
|
-
input_message_content:
|
|
1507
|
+
input_message_content: _InputMessageContent
|
|
1508
1508
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1509
1509
|
url: Optional[str] = Field(default=None)
|
|
1510
1510
|
description: Optional[str] = Field(default=None)
|
|
@@ -1533,7 +1533,7 @@ class InlineQueryResultAudio(InlineQueryResult):
|
|
|
1533
1533
|
performer: Optional[str] = Field(default=None)
|
|
1534
1534
|
audio_duration: Optional[int] = Field(default=None)
|
|
1535
1535
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1536
|
-
input_message_content: Optional[
|
|
1536
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1537
1537
|
|
|
1538
1538
|
class InlineQueryResultContact(InlineQueryResult):
|
|
1539
1539
|
'''
|
|
@@ -1553,7 +1553,7 @@ class InlineQueryResultContact(InlineQueryResult):
|
|
|
1553
1553
|
last_name: Optional[str] = Field(default=None)
|
|
1554
1554
|
vcard: Optional[str] = Field(default=None)
|
|
1555
1555
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1556
|
-
input_message_content: Optional[
|
|
1556
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1557
1557
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1558
1558
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1559
1559
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1593,7 +1593,7 @@ class InlineQueryResultDocument(InlineQueryResult):
|
|
|
1593
1593
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1594
1594
|
description: Optional[str] = Field(default=None)
|
|
1595
1595
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1596
|
-
input_message_content: Optional[
|
|
1596
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1597
1597
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1598
1598
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1599
1599
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1623,7 +1623,7 @@ class InlineQueryResultGif(InlineQueryResult):
|
|
|
1623
1623
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1624
1624
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1625
1625
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1626
|
-
input_message_content: Optional[
|
|
1626
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1627
1627
|
|
|
1628
1628
|
class InlineQueryResultLocation(InlineQueryResult):
|
|
1629
1629
|
'''
|
|
@@ -1646,7 +1646,7 @@ class InlineQueryResultLocation(InlineQueryResult):
|
|
|
1646
1646
|
heading: Optional[int] = Field(default=None)
|
|
1647
1647
|
proximity_alert_radius: Optional[int] = Field(default=None)
|
|
1648
1648
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1649
|
-
input_message_content: Optional[
|
|
1649
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1650
1650
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1651
1651
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1652
1652
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1677,7 +1677,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult):
|
|
|
1677
1677
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1678
1678
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1679
1679
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1680
|
-
input_message_content: Optional[
|
|
1680
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1681
1681
|
|
|
1682
1682
|
class InlineQueryResultPhoto(InlineQueryResult):
|
|
1683
1683
|
'''
|
|
@@ -1703,7 +1703,7 @@ class InlineQueryResultPhoto(InlineQueryResult):
|
|
|
1703
1703
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1704
1704
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1705
1705
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1706
|
-
input_message_content: Optional[
|
|
1706
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1707
1707
|
|
|
1708
1708
|
class InlineQueryResultVenue(InlineQueryResult):
|
|
1709
1709
|
'''
|
|
@@ -1726,7 +1726,7 @@ class InlineQueryResultVenue(InlineQueryResult):
|
|
|
1726
1726
|
google_place_id: Optional[str] = Field(default=None)
|
|
1727
1727
|
google_place_type: Optional[str] = Field(default=None)
|
|
1728
1728
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1729
|
-
input_message_content: Optional[
|
|
1729
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1730
1730
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1731
1731
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1732
1732
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1758,7 +1758,7 @@ class InlineQueryResultVideo(InlineQueryResult):
|
|
|
1758
1758
|
video_duration: Optional[int] = Field(default=None)
|
|
1759
1759
|
description: Optional[str] = Field(default=None)
|
|
1760
1760
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1761
|
-
input_message_content: Optional[
|
|
1761
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1762
1762
|
|
|
1763
1763
|
class InlineQueryResultVoice(InlineQueryResult):
|
|
1764
1764
|
'''
|
|
@@ -1781,7 +1781,7 @@ class InlineQueryResultVoice(InlineQueryResult):
|
|
|
1781
1781
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1782
1782
|
voice_duration: Optional[int] = Field(default=None)
|
|
1783
1783
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1784
|
-
input_message_content: Optional[
|
|
1784
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1785
1785
|
|
|
1786
1786
|
_InlineQueryResult = Union[
|
|
1787
1787
|
InlineQueryResultCachedAudio,
|
|
@@ -1966,7 +1966,7 @@ class TransactionPartnerUser(TransactionPartner):
|
|
|
1966
1966
|
affiliate: Optional[AffiliateInfo] = Field(default=None)
|
|
1967
1967
|
invoice_payload: Optional[str] = Field(default=None)
|
|
1968
1968
|
subscription_period: Optional[int] = Field(default=None)
|
|
1969
|
-
paid_media: Optional[List[
|
|
1969
|
+
paid_media: Optional[List[_PaidMedia]] = Field(default=None)
|
|
1970
1970
|
paid_media_payload: Optional[str] = Field(default=None)
|
|
1971
1971
|
gift: Optional[Gift] = Field(default=None)
|
|
1972
1972
|
premium_subscription_duration: Optional[int] = Field(default=None)
|
|
@@ -2002,7 +2002,7 @@ class TransactionPartnerFragment(TransactionPartner):
|
|
|
2002
2002
|
'''
|
|
2003
2003
|
|
|
2004
2004
|
type: Literal['fragment'] = 'fragment' # pyright: ignore[reportIncompatibleVariableOverride]
|
|
2005
|
-
withdrawal_state: Optional[
|
|
2005
|
+
withdrawal_state: Optional[_RevenueWithdrawalState] = Field(default=None)
|
|
2006
2006
|
|
|
2007
2007
|
class TransactionPartnerTelegramAds(TransactionPartner):
|
|
2008
2008
|
'''
|
|
@@ -2318,7 +2318,7 @@ class ChatFullInfo(BaseModel):
|
|
|
2318
2318
|
business_opening_hours: Optional[BusinessOpeningHours] = Field(default=None)
|
|
2319
2319
|
personal_chat: Optional[Chat] = Field(default=None)
|
|
2320
2320
|
parent_chat: Optional[Chat] = Field(default=None)
|
|
2321
|
-
available_reactions: Optional[List[
|
|
2321
|
+
available_reactions: Optional[List[_ReactionType]] = Field(default=None)
|
|
2322
2322
|
background_custom_emoji_id: Optional[str] = Field(default=None)
|
|
2323
2323
|
profile_accent_color_id: Optional[int] = Field(default=None)
|
|
2324
2324
|
profile_background_custom_emoji_id: Optional[str] = Field(default=None)
|
|
@@ -2417,7 +2417,7 @@ class ExternalReplyInfo(BaseModel):
|
|
|
2417
2417
|
Reference: https://core.telegram.org/bots/api#externalreplyinfo
|
|
2418
2418
|
'''
|
|
2419
2419
|
|
|
2420
|
-
origin:
|
|
2420
|
+
origin: _MessageOrigin
|
|
2421
2421
|
chat: Optional[Chat] = Field(default=None)
|
|
2422
2422
|
message_id: Optional[int] = Field(default=None)
|
|
2423
2423
|
link_preview_options: Optional[LinkPreviewOptions] = Field(default=None)
|
|
@@ -2590,7 +2590,7 @@ class PaidMediaInfo(BaseModel):
|
|
|
2590
2590
|
'''
|
|
2591
2591
|
|
|
2592
2592
|
star_count: int
|
|
2593
|
-
paid_media: List[
|
|
2593
|
+
paid_media: List[_PaidMedia]
|
|
2594
2594
|
|
|
2595
2595
|
class Contact(BaseModel):
|
|
2596
2596
|
'''
|
|
@@ -2831,7 +2831,7 @@ class ChatBackground(BaseModel):
|
|
|
2831
2831
|
Reference: https://core.telegram.org/bots/api#chatbackground
|
|
2832
2832
|
'''
|
|
2833
2833
|
|
|
2834
|
-
type:
|
|
2834
|
+
type: _BackgroundType
|
|
2835
2835
|
|
|
2836
2836
|
class ForumTopicCreated(BaseModel):
|
|
2837
2837
|
'''
|
|
@@ -3498,7 +3498,7 @@ class CallbackQuery(BaseModel):
|
|
|
3498
3498
|
id: str
|
|
3499
3499
|
from_user: User = Field(alias='from') # FIX `from` is a python reserved keyword
|
|
3500
3500
|
chat_instance: str
|
|
3501
|
-
message: Optional[
|
|
3501
|
+
message: Optional[_MaybeInaccessibleMessage] = Field(default=None)
|
|
3502
3502
|
inline_message_id: Optional[str] = Field(default=None)
|
|
3503
3503
|
data: Optional[str] = Field(default=None)
|
|
3504
3504
|
game_short_name: Optional[str] = Field(default=None)
|
|
@@ -3588,8 +3588,8 @@ class ChatMemberUpdated(BaseModel):
|
|
|
3588
3588
|
chat: Chat
|
|
3589
3589
|
from_user: User = Field(alias='from') # FIX `from` is a python reserved keyword
|
|
3590
3590
|
date: int
|
|
3591
|
-
old_chat_member:
|
|
3592
|
-
new_chat_member:
|
|
3591
|
+
old_chat_member: _ChatMember
|
|
3592
|
+
new_chat_member: _ChatMember
|
|
3593
3593
|
invite_link: Optional[ChatInviteLink] = Field(default=None)
|
|
3594
3594
|
via_join_request: Optional[bool] = Field(default=None)
|
|
3595
3595
|
via_chat_folder_invite_link: Optional[bool] = Field(default=None)
|
|
@@ -3759,7 +3759,7 @@ class StoryArea(BaseModel):
|
|
|
3759
3759
|
'''
|
|
3760
3760
|
|
|
3761
3761
|
position: StoryAreaPosition
|
|
3762
|
-
type:
|
|
3762
|
+
type: _StoryAreaType
|
|
3763
3763
|
|
|
3764
3764
|
class ChatLocation(BaseModel):
|
|
3765
3765
|
'''
|
|
@@ -3780,7 +3780,7 @@ class ReactionCount(BaseModel):
|
|
|
3780
3780
|
Reference: https://core.telegram.org/bots/api#reactioncount
|
|
3781
3781
|
'''
|
|
3782
3782
|
|
|
3783
|
-
type:
|
|
3783
|
+
type: _ReactionType
|
|
3784
3784
|
total_count: int
|
|
3785
3785
|
|
|
3786
3786
|
class MessageReactionUpdated(BaseModel):
|
|
@@ -3794,8 +3794,8 @@ class MessageReactionUpdated(BaseModel):
|
|
|
3794
3794
|
chat: Chat
|
|
3795
3795
|
message_id: int
|
|
3796
3796
|
date: int
|
|
3797
|
-
old_reaction: List[
|
|
3798
|
-
new_reaction: List[
|
|
3797
|
+
old_reaction: List[_ReactionType]
|
|
3798
|
+
new_reaction: List[_ReactionType]
|
|
3799
3799
|
user: Optional[User] = Field(default=None)
|
|
3800
3800
|
actor_chat: Optional[Chat] = Field(default=None)
|
|
3801
3801
|
|
|
@@ -3996,7 +3996,7 @@ class OwnedGifts(BaseModel):
|
|
|
3996
3996
|
'''
|
|
3997
3997
|
|
|
3998
3998
|
total_count: int
|
|
3999
|
-
gifts: List[
|
|
3999
|
+
gifts: List[_OwnedGift]
|
|
4000
4000
|
next_offset: Optional[str] = Field(default=None)
|
|
4001
4001
|
|
|
4002
4002
|
class AcceptedGiftTypes(BaseModel):
|
|
@@ -4071,7 +4071,7 @@ class ChatBoost(BaseModel):
|
|
|
4071
4071
|
boost_id: str
|
|
4072
4072
|
add_date: int
|
|
4073
4073
|
expiration_date: int
|
|
4074
|
-
source:
|
|
4074
|
+
source: _ChatBoostSource
|
|
4075
4075
|
|
|
4076
4076
|
class ChatBoostUpdated(BaseModel):
|
|
4077
4077
|
'''
|
|
@@ -4095,7 +4095,7 @@ class ChatBoostRemoved(BaseModel):
|
|
|
4095
4095
|
chat: Chat
|
|
4096
4096
|
boost_id: str
|
|
4097
4097
|
remove_date: int
|
|
4098
|
-
source:
|
|
4098
|
+
source: _ChatBoostSource
|
|
4099
4099
|
|
|
4100
4100
|
class UserChatBoosts(BaseModel):
|
|
4101
4101
|
'''
|
|
@@ -4499,8 +4499,8 @@ class StarTransaction(BaseModel):
|
|
|
4499
4499
|
amount: int
|
|
4500
4500
|
date: int
|
|
4501
4501
|
nanostar_amount: Optional[int] = Field(default=None)
|
|
4502
|
-
source: Optional[
|
|
4503
|
-
receiver: Optional[
|
|
4502
|
+
source: Optional[_TransactionPartner] = Field(default=None)
|
|
4503
|
+
receiver: Optional[_TransactionPartner] = Field(default=None)
|
|
4504
4504
|
|
|
4505
4505
|
class StarTransactions(BaseModel):
|
|
4506
4506
|
'''
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|