botapi-py 1.4.4__tar.gz → 1.4.5__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.4.4 → botapi_py-1.4.5}/PKG-INFO +1 -1
- {botapi_py-1.4.4 → botapi_py-1.4.5}/pyproject.toml +1 -1
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/dispatchers/get_updates_handler.py +2 -2
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/methods.py +17 -17
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/types.py +42 -42
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/__init__.py +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/__init__.pyi +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/core.py +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/dispatchers/__init__.py +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/dispatchers/__init__.pyi +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/dispatchers/common.py +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/dispatchers/redis_pubsub_handler.py +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/enums.py +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/errors.py +0 -0
- {botapi_py-1.4.4 → botapi_py-1.4.5}/src/botapi/utils.py +0 -0
|
@@ -22,14 +22,14 @@ class GetUpdatesAsyncDispatcher(BaseAsyncDispatcher):
|
|
|
22
22
|
tasks: set[asyncio.Task] # prevent gc from collecting tasks before they finish
|
|
23
23
|
bot: botapi.methods.Bot
|
|
24
24
|
reconnect_delay: float
|
|
25
|
-
allowed_updates: list[
|
|
25
|
+
allowed_updates: list[botapi.enums.UpdateType]
|
|
26
26
|
offset: int
|
|
27
27
|
|
|
28
28
|
def __init__(
|
|
29
29
|
self,
|
|
30
30
|
update_handler: UpdateHandler,
|
|
31
31
|
bot: botapi.methods.Bot,
|
|
32
|
-
allowed_updates: list[
|
|
32
|
+
allowed_updates: list[botapi.enums.UpdateType],
|
|
33
33
|
reconnect_delay: float = 5,
|
|
34
34
|
shutdown_wait_timeout: float = 3
|
|
35
35
|
) -> None:
|
|
@@ -1062,7 +1062,7 @@ class Bot(core.BaseBot):
|
|
|
1062
1062
|
self,
|
|
1063
1063
|
chat_id: Union[int, str],
|
|
1064
1064
|
star_count: int,
|
|
1065
|
-
media: List[
|
|
1065
|
+
media: List[_InputPaidMedia],
|
|
1066
1066
|
business_connection_id: Optional[str] = None,
|
|
1067
1067
|
message_thread_id: Optional[int] = None,
|
|
1068
1068
|
direct_messages_topic_id: Optional[int] = None,
|
|
@@ -1448,7 +1448,7 @@ class Bot(core.BaseBot):
|
|
|
1448
1448
|
self,
|
|
1449
1449
|
chat_id: Union[int, str],
|
|
1450
1450
|
message_id: int,
|
|
1451
|
-
reaction: Optional[List[
|
|
1451
|
+
reaction: Optional[List[_ReactionType]] = None,
|
|
1452
1452
|
is_big: Optional[bool] = None,
|
|
1453
1453
|
) -> bool:
|
|
1454
1454
|
'''
|
|
@@ -2158,7 +2158,7 @@ class Bot(core.BaseBot):
|
|
|
2158
2158
|
async def get_chat_administrators(
|
|
2159
2159
|
self,
|
|
2160
2160
|
chat_id: Union[int, str],
|
|
2161
|
-
) -> List[
|
|
2161
|
+
) -> List[_ChatMember]:
|
|
2162
2162
|
'''
|
|
2163
2163
|
Use this method to get a list of
|
|
2164
2164
|
administrators in a chat, which aren't bots. Returns
|
|
@@ -2192,7 +2192,7 @@ class Bot(core.BaseBot):
|
|
|
2192
2192
|
self,
|
|
2193
2193
|
chat_id: Union[int, str],
|
|
2194
2194
|
user_id: int,
|
|
2195
|
-
) ->
|
|
2195
|
+
) -> _ChatMember:
|
|
2196
2196
|
'''
|
|
2197
2197
|
Use this method to get information about a
|
|
2198
2198
|
member of a chat. The method is only
|
|
@@ -2594,7 +2594,7 @@ class Bot(core.BaseBot):
|
|
|
2594
2594
|
async def set_my_commands(
|
|
2595
2595
|
self,
|
|
2596
2596
|
commands: List[BotCommand],
|
|
2597
|
-
scope: Optional[
|
|
2597
|
+
scope: Optional[_BotCommandScope] = None,
|
|
2598
2598
|
language_code: Optional[str] = None,
|
|
2599
2599
|
) -> bool:
|
|
2600
2600
|
'''
|
|
@@ -2614,7 +2614,7 @@ class Bot(core.BaseBot):
|
|
|
2614
2614
|
|
|
2615
2615
|
async def delete_my_commands(
|
|
2616
2616
|
self,
|
|
2617
|
-
scope: Optional[
|
|
2617
|
+
scope: Optional[_BotCommandScope] = None,
|
|
2618
2618
|
language_code: Optional[str] = None,
|
|
2619
2619
|
) -> bool:
|
|
2620
2620
|
'''
|
|
@@ -2635,7 +2635,7 @@ class Bot(core.BaseBot):
|
|
|
2635
2635
|
|
|
2636
2636
|
async def get_my_commands(
|
|
2637
2637
|
self,
|
|
2638
|
-
scope: Optional[
|
|
2638
|
+
scope: Optional[_BotCommandScope] = None,
|
|
2639
2639
|
language_code: Optional[str] = None,
|
|
2640
2640
|
) -> List[BotCommand]:
|
|
2641
2641
|
'''
|
|
@@ -2767,7 +2767,7 @@ class Bot(core.BaseBot):
|
|
|
2767
2767
|
async def set_chat_menu_button(
|
|
2768
2768
|
self,
|
|
2769
2769
|
chat_id: Optional[int] = None,
|
|
2770
|
-
menu_button: Optional[
|
|
2770
|
+
menu_button: Optional[_MenuButton] = None,
|
|
2771
2771
|
) -> bool:
|
|
2772
2772
|
'''
|
|
2773
2773
|
Use this method to change the bot's menu
|
|
@@ -2786,7 +2786,7 @@ class Bot(core.BaseBot):
|
|
|
2786
2786
|
async def get_chat_menu_button(
|
|
2787
2787
|
self,
|
|
2788
2788
|
chat_id: Optional[int] = None,
|
|
2789
|
-
) ->
|
|
2789
|
+
) -> _MenuButton:
|
|
2790
2790
|
'''
|
|
2791
2791
|
Use this method to get the current value
|
|
2792
2792
|
of the bot's menu button in a private
|
|
@@ -3086,7 +3086,7 @@ class Bot(core.BaseBot):
|
|
|
3086
3086
|
async def set_business_account_profile_photo(
|
|
3087
3087
|
self,
|
|
3088
3088
|
business_connection_id: str,
|
|
3089
|
-
photo:
|
|
3089
|
+
photo: _InputProfilePhoto,
|
|
3090
3090
|
is_public: Optional[bool] = None,
|
|
3091
3091
|
) -> bool:
|
|
3092
3092
|
'''
|
|
@@ -3283,7 +3283,7 @@ class Bot(core.BaseBot):
|
|
|
3283
3283
|
async def post_story(
|
|
3284
3284
|
self,
|
|
3285
3285
|
business_connection_id: str,
|
|
3286
|
-
content:
|
|
3286
|
+
content: _InputStoryContent,
|
|
3287
3287
|
active_period: int,
|
|
3288
3288
|
caption: Optional[str] = None,
|
|
3289
3289
|
parse_mode: Optional[enums.ParseMode] = enums.ParseMode.HTML,
|
|
@@ -3317,7 +3317,7 @@ class Bot(core.BaseBot):
|
|
|
3317
3317
|
self,
|
|
3318
3318
|
business_connection_id: str,
|
|
3319
3319
|
story_id: int,
|
|
3320
|
-
content:
|
|
3320
|
+
content: _InputStoryContent,
|
|
3321
3321
|
caption: Optional[str] = None,
|
|
3322
3322
|
parse_mode: Optional[enums.ParseMode] = enums.ParseMode.HTML,
|
|
3323
3323
|
caption_entities: Optional[List[MessageEntity]] = None,
|
|
@@ -3447,7 +3447,7 @@ class Bot(core.BaseBot):
|
|
|
3447
3447
|
|
|
3448
3448
|
async def edit_message_media(
|
|
3449
3449
|
self,
|
|
3450
|
-
media:
|
|
3450
|
+
media: _InputMedia,
|
|
3451
3451
|
business_connection_id: Optional[str] = None,
|
|
3452
3452
|
chat_id: Optional[Union[int, str]] = None,
|
|
3453
3453
|
message_id: Optional[int] = None,
|
|
@@ -4091,7 +4091,7 @@ class Bot(core.BaseBot):
|
|
|
4091
4091
|
async def answer_inline_query(
|
|
4092
4092
|
self,
|
|
4093
4093
|
inline_query_id: str,
|
|
4094
|
-
results: List[
|
|
4094
|
+
results: List[_InlineQueryResult],
|
|
4095
4095
|
cache_time: Optional[int] = None,
|
|
4096
4096
|
is_personal: Optional[bool] = None,
|
|
4097
4097
|
next_offset: Optional[str] = None,
|
|
@@ -4118,7 +4118,7 @@ class Bot(core.BaseBot):
|
|
|
4118
4118
|
async def answer_web_app_query(
|
|
4119
4119
|
self,
|
|
4120
4120
|
web_app_query_id: str,
|
|
4121
|
-
result:
|
|
4121
|
+
result: _InlineQueryResult,
|
|
4122
4122
|
) -> SentWebAppMessage:
|
|
4123
4123
|
'''
|
|
4124
4124
|
Use this method to set the result of
|
|
@@ -4139,7 +4139,7 @@ class Bot(core.BaseBot):
|
|
|
4139
4139
|
async def save_prepared_inline_message(
|
|
4140
4140
|
self,
|
|
4141
4141
|
user_id: int,
|
|
4142
|
-
result:
|
|
4142
|
+
result: _InlineQueryResult,
|
|
4143
4143
|
allow_user_chats: Optional[bool] = None,
|
|
4144
4144
|
allow_bot_chats: Optional[bool] = None,
|
|
4145
4145
|
allow_group_chats: Optional[bool] = None,
|
|
@@ -4424,7 +4424,7 @@ class Bot(core.BaseBot):
|
|
|
4424
4424
|
async def set_passport_data_errors(
|
|
4425
4425
|
self,
|
|
4426
4426
|
user_id: int,
|
|
4427
|
-
errors: List[
|
|
4427
|
+
errors: List[_PassportElementError],
|
|
4428
4428
|
) -> bool:
|
|
4429
4429
|
'''
|
|
4430
4430
|
Informs a user that some of the Telegram
|
|
@@ -34,7 +34,7 @@ class Message(MaybeInaccessibleMessage, frozen=True):
|
|
|
34
34
|
sender_boost_count: Optional[int] = Field(default=None)
|
|
35
35
|
sender_business_bot: Optional[User] = Field(default=None)
|
|
36
36
|
business_connection_id: Optional[str] = Field(default=None)
|
|
37
|
-
forward_origin: Optional[
|
|
37
|
+
forward_origin: Optional[_MessageOrigin] = Field(default=None)
|
|
38
38
|
is_topic_message: Optional[bool] = Field(default=None)
|
|
39
39
|
is_automatic_forward: Optional[bool] = Field(default=None)
|
|
40
40
|
reply_to_message: Optional[Message] = Field(default=None)
|
|
@@ -87,7 +87,7 @@ class Message(MaybeInaccessibleMessage, frozen=True):
|
|
|
87
87
|
message_auto_delete_timer_changed: Optional[MessageAutoDeleteTimerChanged] = Field(default=None)
|
|
88
88
|
migrate_to_chat_id: Optional[int] = Field(default=None)
|
|
89
89
|
migrate_from_chat_id: Optional[int] = Field(default=None)
|
|
90
|
-
pinned_message: Optional[
|
|
90
|
+
pinned_message: Optional[_MaybeInaccessibleMessage] = Field(default=None)
|
|
91
91
|
invoice: Optional[Invoice] = Field(default=None)
|
|
92
92
|
successful_payment: Optional[SuccessfulPayment] = Field(default=None)
|
|
93
93
|
refunded_payment: Optional[RefundedPayment] = Field(default=None)
|
|
@@ -554,7 +554,7 @@ class BackgroundTypeFill(BackgroundType, frozen=True):
|
|
|
554
554
|
'''
|
|
555
555
|
|
|
556
556
|
type: Literal['fill'] = 'fill'
|
|
557
|
-
fill:
|
|
557
|
+
fill: _BackgroundFill
|
|
558
558
|
dark_theme_dimming: int
|
|
559
559
|
|
|
560
560
|
class BackgroundTypeWallpaper(BackgroundType, frozen=True):
|
|
@@ -583,7 +583,7 @@ class BackgroundTypePattern(BackgroundType, frozen=True):
|
|
|
583
583
|
|
|
584
584
|
type: Literal['pattern'] = 'pattern'
|
|
585
585
|
document: Document
|
|
586
|
-
fill:
|
|
586
|
+
fill: _BackgroundFill
|
|
587
587
|
intensity: int
|
|
588
588
|
is_inverted: Optional[bool] = Field(default=None)
|
|
589
589
|
is_moving: Optional[bool] = Field(default=None)
|
|
@@ -754,7 +754,7 @@ class StoryAreaTypeSuggestedReaction(StoryAreaType, frozen=True):
|
|
|
754
754
|
'''
|
|
755
755
|
|
|
756
756
|
type: Literal['suggested_reaction'] = 'suggested_reaction'
|
|
757
|
-
reaction_type:
|
|
757
|
+
reaction_type: _ReactionType
|
|
758
758
|
is_dark: Optional[bool] = Field(default=None)
|
|
759
759
|
is_flipped: Optional[bool] = Field(default=None)
|
|
760
760
|
|
|
@@ -1311,7 +1311,7 @@ class InlineQueryResultCachedAudio(InlineQueryResult, frozen=True):
|
|
|
1311
1311
|
parse_mode: Optional[str] = Field(default=enums.ParseMode.HTML.value)
|
|
1312
1312
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1313
1313
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1314
|
-
input_message_content: Optional[
|
|
1314
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1315
1315
|
|
|
1316
1316
|
class InlineQueryResultCachedDocument(InlineQueryResult, frozen=True):
|
|
1317
1317
|
'''
|
|
@@ -1334,7 +1334,7 @@ class InlineQueryResultCachedDocument(InlineQueryResult, frozen=True):
|
|
|
1334
1334
|
parse_mode: Optional[str] = Field(default=enums.ParseMode.HTML.value)
|
|
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 InlineQueryResultCachedGif(InlineQueryResult, frozen=True):
|
|
1340
1340
|
'''
|
|
@@ -1357,7 +1357,7 @@ class InlineQueryResultCachedGif(InlineQueryResult, frozen=True):
|
|
|
1357
1357
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1358
1358
|
show_caption_above_media: Optional[bool] = 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 InlineQueryResultCachedMpeg4Gif(InlineQueryResult, frozen=True):
|
|
1363
1363
|
'''
|
|
@@ -1381,7 +1381,7 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult, frozen=True):
|
|
|
1381
1381
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1382
1382
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1383
1383
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1384
|
-
input_message_content: Optional[
|
|
1384
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1385
1385
|
|
|
1386
1386
|
class InlineQueryResultCachedPhoto(InlineQueryResult, frozen=True):
|
|
1387
1387
|
'''
|
|
@@ -1405,7 +1405,7 @@ class InlineQueryResultCachedPhoto(InlineQueryResult, frozen=True):
|
|
|
1405
1405
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1406
1406
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1407
1407
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1408
|
-
input_message_content: Optional[
|
|
1408
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1409
1409
|
|
|
1410
1410
|
class InlineQueryResultCachedSticker(InlineQueryResult, frozen=True):
|
|
1411
1411
|
'''
|
|
@@ -1422,7 +1422,7 @@ class InlineQueryResultCachedSticker(InlineQueryResult, frozen=True):
|
|
|
1422
1422
|
id: str
|
|
1423
1423
|
sticker_file_id: str
|
|
1424
1424
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1425
|
-
input_message_content: Optional[
|
|
1425
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1426
1426
|
|
|
1427
1427
|
class InlineQueryResultCachedVideo(InlineQueryResult, frozen=True):
|
|
1428
1428
|
'''
|
|
@@ -1446,7 +1446,7 @@ class InlineQueryResultCachedVideo(InlineQueryResult, frozen=True):
|
|
|
1446
1446
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1447
1447
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1448
1448
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1449
|
-
input_message_content: Optional[
|
|
1449
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1450
1450
|
|
|
1451
1451
|
class InlineQueryResultCachedVoice(InlineQueryResult, frozen=True):
|
|
1452
1452
|
'''
|
|
@@ -1468,7 +1468,7 @@ class InlineQueryResultCachedVoice(InlineQueryResult, frozen=True):
|
|
|
1468
1468
|
parse_mode: Optional[str] = Field(default=enums.ParseMode.HTML.value)
|
|
1469
1469
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1470
1470
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1471
|
-
input_message_content: Optional[
|
|
1471
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1472
1472
|
|
|
1473
1473
|
class InlineQueryResultArticle(InlineQueryResult, frozen=True):
|
|
1474
1474
|
'''
|
|
@@ -1481,7 +1481,7 @@ class InlineQueryResultArticle(InlineQueryResult, frozen=True):
|
|
|
1481
1481
|
type: Literal['article'] = 'article'
|
|
1482
1482
|
id: str
|
|
1483
1483
|
title: str
|
|
1484
|
-
input_message_content:
|
|
1484
|
+
input_message_content: _InputMessageContent
|
|
1485
1485
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1486
1486
|
url: Optional[str] = Field(default=None)
|
|
1487
1487
|
description: Optional[str] = Field(default=None)
|
|
@@ -1510,7 +1510,7 @@ class InlineQueryResultAudio(InlineQueryResult, frozen=True):
|
|
|
1510
1510
|
performer: Optional[str] = Field(default=None)
|
|
1511
1511
|
audio_duration: Optional[int] = Field(default=None)
|
|
1512
1512
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1513
|
-
input_message_content: Optional[
|
|
1513
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1514
1514
|
|
|
1515
1515
|
class InlineQueryResultContact(InlineQueryResult, frozen=True):
|
|
1516
1516
|
'''
|
|
@@ -1530,7 +1530,7 @@ class InlineQueryResultContact(InlineQueryResult, frozen=True):
|
|
|
1530
1530
|
last_name: Optional[str] = Field(default=None)
|
|
1531
1531
|
vcard: Optional[str] = Field(default=None)
|
|
1532
1532
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1533
|
-
input_message_content: Optional[
|
|
1533
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1534
1534
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1535
1535
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1536
1536
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1570,7 +1570,7 @@ class InlineQueryResultDocument(InlineQueryResult, frozen=True):
|
|
|
1570
1570
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1571
1571
|
description: Optional[str] = Field(default=None)
|
|
1572
1572
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1573
|
-
input_message_content: Optional[
|
|
1573
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1574
1574
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1575
1575
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1576
1576
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1600,7 +1600,7 @@ class InlineQueryResultGif(InlineQueryResult, frozen=True):
|
|
|
1600
1600
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1601
1601
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1602
1602
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1603
|
-
input_message_content: Optional[
|
|
1603
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1604
1604
|
|
|
1605
1605
|
class InlineQueryResultLocation(InlineQueryResult, frozen=True):
|
|
1606
1606
|
'''
|
|
@@ -1623,7 +1623,7 @@ class InlineQueryResultLocation(InlineQueryResult, frozen=True):
|
|
|
1623
1623
|
heading: Optional[int] = Field(default=None)
|
|
1624
1624
|
proximity_alert_radius: Optional[int] = 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
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1628
1628
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1629
1629
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1654,7 +1654,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult, frozen=True):
|
|
|
1654
1654
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1655
1655
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1656
1656
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1657
|
-
input_message_content: Optional[
|
|
1657
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1658
1658
|
|
|
1659
1659
|
class InlineQueryResultPhoto(InlineQueryResult, frozen=True):
|
|
1660
1660
|
'''
|
|
@@ -1680,7 +1680,7 @@ class InlineQueryResultPhoto(InlineQueryResult, frozen=True):
|
|
|
1680
1680
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1681
1681
|
show_caption_above_media: Optional[bool] = Field(default=None)
|
|
1682
1682
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1683
|
-
input_message_content: Optional[
|
|
1683
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1684
1684
|
|
|
1685
1685
|
class InlineQueryResultVenue(InlineQueryResult, frozen=True):
|
|
1686
1686
|
'''
|
|
@@ -1703,7 +1703,7 @@ class InlineQueryResultVenue(InlineQueryResult, frozen=True):
|
|
|
1703
1703
|
google_place_id: Optional[str] = Field(default=None)
|
|
1704
1704
|
google_place_type: Optional[str] = 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
|
thumbnail_url: Optional[str] = Field(default=None)
|
|
1708
1708
|
thumbnail_width: Optional[int] = Field(default=None)
|
|
1709
1709
|
thumbnail_height: Optional[int] = Field(default=None)
|
|
@@ -1735,7 +1735,7 @@ class InlineQueryResultVideo(InlineQueryResult, frozen=True):
|
|
|
1735
1735
|
video_duration: Optional[int] = Field(default=None)
|
|
1736
1736
|
description: Optional[str] = Field(default=None)
|
|
1737
1737
|
reply_markup: Optional[InlineKeyboardMarkup] = Field(default=None)
|
|
1738
|
-
input_message_content: Optional[
|
|
1738
|
+
input_message_content: Optional[_InputMessageContent] = Field(default=None)
|
|
1739
1739
|
|
|
1740
1740
|
class InlineQueryResultVoice(InlineQueryResult, frozen=True):
|
|
1741
1741
|
'''
|
|
@@ -1758,7 +1758,7 @@ class InlineQueryResultVoice(InlineQueryResult, frozen=True):
|
|
|
1758
1758
|
caption_entities: Optional[List[MessageEntity]] = Field(default=None)
|
|
1759
1759
|
voice_duration: Optional[int] = 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
|
_InlineQueryResult = Union[
|
|
1764
1764
|
InlineQueryResultCachedAudio,
|
|
@@ -1943,7 +1943,7 @@ class TransactionPartnerUser(TransactionPartner, frozen=True):
|
|
|
1943
1943
|
affiliate: Optional[AffiliateInfo] = Field(default=None)
|
|
1944
1944
|
invoice_payload: Optional[str] = Field(default=None)
|
|
1945
1945
|
subscription_period: Optional[int] = Field(default=None)
|
|
1946
|
-
paid_media: Optional[List[
|
|
1946
|
+
paid_media: Optional[List[_PaidMedia]] = Field(default=None)
|
|
1947
1947
|
paid_media_payload: Optional[str] = Field(default=None)
|
|
1948
1948
|
gift: Optional[Gift] = Field(default=None)
|
|
1949
1949
|
premium_subscription_duration: Optional[int] = Field(default=None)
|
|
@@ -1979,7 +1979,7 @@ class TransactionPartnerFragment(TransactionPartner, frozen=True):
|
|
|
1979
1979
|
'''
|
|
1980
1980
|
|
|
1981
1981
|
type: Literal['fragment'] = 'fragment'
|
|
1982
|
-
withdrawal_state: Optional[
|
|
1982
|
+
withdrawal_state: Optional[_RevenueWithdrawalState] = Field(default=None)
|
|
1983
1983
|
|
|
1984
1984
|
class TransactionPartnerTelegramAds(TransactionPartner, frozen=True):
|
|
1985
1985
|
'''
|
|
@@ -2294,7 +2294,7 @@ class ChatFullInfo(BaseModel, frozen=True):
|
|
|
2294
2294
|
business_opening_hours: Optional[BusinessOpeningHours] = Field(default=None)
|
|
2295
2295
|
personal_chat: Optional[Chat] = Field(default=None)
|
|
2296
2296
|
parent_chat: Optional[Chat] = Field(default=None)
|
|
2297
|
-
available_reactions: Optional[List[
|
|
2297
|
+
available_reactions: Optional[List[_ReactionType]] = Field(default=None)
|
|
2298
2298
|
background_custom_emoji_id: Optional[str] = Field(default=None)
|
|
2299
2299
|
profile_accent_color_id: Optional[int] = Field(default=None)
|
|
2300
2300
|
profile_background_custom_emoji_id: Optional[str] = Field(default=None)
|
|
@@ -2390,7 +2390,7 @@ class ExternalReplyInfo(BaseModel, frozen=True):
|
|
|
2390
2390
|
Reference: https://core.telegram.org/bots/api#externalreplyinfo
|
|
2391
2391
|
'''
|
|
2392
2392
|
|
|
2393
|
-
origin:
|
|
2393
|
+
origin: _MessageOrigin
|
|
2394
2394
|
chat: Optional[Chat] = Field(default=None)
|
|
2395
2395
|
message_id: Optional[int] = Field(default=None)
|
|
2396
2396
|
link_preview_options: Optional[LinkPreviewOptions] = Field(default=None)
|
|
@@ -2563,7 +2563,7 @@ class PaidMediaInfo(BaseModel, frozen=True):
|
|
|
2563
2563
|
'''
|
|
2564
2564
|
|
|
2565
2565
|
star_count: int
|
|
2566
|
-
paid_media: List[
|
|
2566
|
+
paid_media: List[_PaidMedia]
|
|
2567
2567
|
|
|
2568
2568
|
class Contact(BaseModel, frozen=True):
|
|
2569
2569
|
'''
|
|
@@ -2803,7 +2803,7 @@ class ChatBackground(BaseModel, frozen=True):
|
|
|
2803
2803
|
Reference: https://core.telegram.org/bots/api#chatbackground
|
|
2804
2804
|
'''
|
|
2805
2805
|
|
|
2806
|
-
type:
|
|
2806
|
+
type: _BackgroundType
|
|
2807
2807
|
|
|
2808
2808
|
class ForumTopicCreated(BaseModel, frozen=True):
|
|
2809
2809
|
'''
|
|
@@ -3425,7 +3425,7 @@ class CallbackQuery(BaseModel, frozen=True):
|
|
|
3425
3425
|
id: str
|
|
3426
3426
|
from_user: User = Field(alias='from') # FIX `from` is a python reserved keyword
|
|
3427
3427
|
chat_instance: str
|
|
3428
|
-
message: Optional[
|
|
3428
|
+
message: Optional[_MaybeInaccessibleMessage] = Field(default=None)
|
|
3429
3429
|
inline_message_id: Optional[str] = Field(default=None)
|
|
3430
3430
|
data: Optional[str] = Field(default=None)
|
|
3431
3431
|
game_short_name: Optional[str] = Field(default=None)
|
|
@@ -3515,8 +3515,8 @@ class ChatMemberUpdated(BaseModel, frozen=True):
|
|
|
3515
3515
|
chat: Chat
|
|
3516
3516
|
from_user: User = Field(alias='from') # FIX `from` is a python reserved keyword
|
|
3517
3517
|
date: int
|
|
3518
|
-
old_chat_member:
|
|
3519
|
-
new_chat_member:
|
|
3518
|
+
old_chat_member: _ChatMember
|
|
3519
|
+
new_chat_member: _ChatMember
|
|
3520
3520
|
invite_link: Optional[ChatInviteLink] = Field(default=None)
|
|
3521
3521
|
via_join_request: Optional[bool] = Field(default=None)
|
|
3522
3522
|
via_chat_folder_invite_link: Optional[bool] = Field(default=None)
|
|
@@ -3673,7 +3673,7 @@ class StoryArea(BaseModel, frozen=True):
|
|
|
3673
3673
|
'''
|
|
3674
3674
|
|
|
3675
3675
|
position: StoryAreaPosition
|
|
3676
|
-
type:
|
|
3676
|
+
type: _StoryAreaType
|
|
3677
3677
|
|
|
3678
3678
|
class ChatLocation(BaseModel, frozen=True):
|
|
3679
3679
|
'''
|
|
@@ -3694,7 +3694,7 @@ class ReactionCount(BaseModel, frozen=True):
|
|
|
3694
3694
|
Reference: https://core.telegram.org/bots/api#reactioncount
|
|
3695
3695
|
'''
|
|
3696
3696
|
|
|
3697
|
-
type:
|
|
3697
|
+
type: _ReactionType
|
|
3698
3698
|
total_count: int
|
|
3699
3699
|
|
|
3700
3700
|
class MessageReactionUpdated(BaseModel, frozen=True):
|
|
@@ -3708,8 +3708,8 @@ class MessageReactionUpdated(BaseModel, frozen=True):
|
|
|
3708
3708
|
chat: Chat
|
|
3709
3709
|
message_id: int
|
|
3710
3710
|
date: int
|
|
3711
|
-
old_reaction: List[
|
|
3712
|
-
new_reaction: List[
|
|
3711
|
+
old_reaction: List[_ReactionType]
|
|
3712
|
+
new_reaction: List[_ReactionType]
|
|
3713
3713
|
user: Optional[User] = Field(default=None)
|
|
3714
3714
|
actor_chat: Optional[Chat] = Field(default=None)
|
|
3715
3715
|
|
|
@@ -3869,7 +3869,7 @@ class OwnedGifts(BaseModel, frozen=True):
|
|
|
3869
3869
|
'''
|
|
3870
3870
|
|
|
3871
3871
|
total_count: int
|
|
3872
|
-
gifts: List[
|
|
3872
|
+
gifts: List[_OwnedGift]
|
|
3873
3873
|
next_offset: Optional[str] = Field(default=None)
|
|
3874
3874
|
|
|
3875
3875
|
class AcceptedGiftTypes(BaseModel, frozen=True):
|
|
@@ -3943,7 +3943,7 @@ class ChatBoost(BaseModel, frozen=True):
|
|
|
3943
3943
|
boost_id: str
|
|
3944
3944
|
add_date: int
|
|
3945
3945
|
expiration_date: int
|
|
3946
|
-
source:
|
|
3946
|
+
source: _ChatBoostSource
|
|
3947
3947
|
|
|
3948
3948
|
class ChatBoostUpdated(BaseModel, frozen=True):
|
|
3949
3949
|
'''
|
|
@@ -3967,7 +3967,7 @@ class ChatBoostRemoved(BaseModel, frozen=True):
|
|
|
3967
3967
|
chat: Chat
|
|
3968
3968
|
boost_id: str
|
|
3969
3969
|
remove_date: int
|
|
3970
|
-
source:
|
|
3970
|
+
source: _ChatBoostSource
|
|
3971
3971
|
|
|
3972
3972
|
class UserChatBoosts(BaseModel, frozen=True):
|
|
3973
3973
|
'''
|
|
@@ -4348,8 +4348,8 @@ class StarTransaction(BaseModel, frozen=True):
|
|
|
4348
4348
|
amount: int
|
|
4349
4349
|
date: int
|
|
4350
4350
|
nanostar_amount: Optional[int] = Field(default=None)
|
|
4351
|
-
source: Optional[
|
|
4352
|
-
receiver: Optional[
|
|
4351
|
+
source: Optional[_TransactionPartner] = Field(default=None)
|
|
4352
|
+
receiver: Optional[_TransactionPartner] = Field(default=None)
|
|
4353
4353
|
|
|
4354
4354
|
class StarTransactions(BaseModel, frozen=True):
|
|
4355
4355
|
'''
|
|
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
|