telegrinder 0.1.dev20__py3-none-any.whl → 0.1.dev159__py3-none-any.whl
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.
Potentially problematic release.
This version of telegrinder might be problematic. Click here for more details.
- telegrinder/__init__.py +129 -22
- telegrinder/api/__init__.py +11 -2
- telegrinder/api/abc.py +25 -9
- telegrinder/api/api.py +47 -28
- telegrinder/api/error.py +14 -4
- telegrinder/api/response.py +11 -7
- telegrinder/bot/__init__.py +68 -7
- telegrinder/bot/bot.py +30 -24
- telegrinder/bot/cute_types/__init__.py +11 -1
- telegrinder/bot/cute_types/base.py +138 -0
- telegrinder/bot/cute_types/callback_query.py +458 -15
- telegrinder/bot/cute_types/inline_query.py +30 -24
- telegrinder/bot/cute_types/message.py +2982 -78
- telegrinder/bot/cute_types/update.py +30 -0
- telegrinder/bot/cute_types/utils.py +794 -0
- telegrinder/bot/dispatch/__init__.py +56 -3
- telegrinder/bot/dispatch/abc.py +9 -7
- telegrinder/bot/dispatch/composition.py +74 -0
- telegrinder/bot/dispatch/context.py +71 -0
- telegrinder/bot/dispatch/dispatch.py +86 -49
- telegrinder/bot/dispatch/handler/__init__.py +3 -0
- telegrinder/bot/dispatch/handler/abc.py +11 -5
- telegrinder/bot/dispatch/handler/func.py +41 -32
- telegrinder/bot/dispatch/handler/message_reply.py +46 -0
- telegrinder/bot/dispatch/middleware/__init__.py +2 -0
- telegrinder/bot/dispatch/middleware/abc.py +10 -4
- telegrinder/bot/dispatch/process.py +53 -49
- telegrinder/bot/dispatch/return_manager/__init__.py +19 -0
- telegrinder/bot/dispatch/return_manager/abc.py +95 -0
- telegrinder/bot/dispatch/return_manager/callback_query.py +19 -0
- telegrinder/bot/dispatch/return_manager/inline_query.py +14 -0
- telegrinder/bot/dispatch/return_manager/message.py +25 -0
- telegrinder/bot/dispatch/view/__init__.py +14 -2
- telegrinder/bot/dispatch/view/abc.py +128 -2
- telegrinder/bot/dispatch/view/box.py +38 -0
- telegrinder/bot/dispatch/view/callback_query.py +13 -39
- telegrinder/bot/dispatch/view/inline_query.py +11 -39
- telegrinder/bot/dispatch/view/message.py +11 -47
- telegrinder/bot/dispatch/waiter_machine/__init__.py +9 -0
- telegrinder/bot/dispatch/waiter_machine/machine.py +116 -0
- telegrinder/bot/dispatch/waiter_machine/middleware.py +76 -0
- telegrinder/bot/dispatch/waiter_machine/short_state.py +37 -0
- telegrinder/bot/polling/__init__.py +2 -0
- telegrinder/bot/polling/abc.py +11 -4
- telegrinder/bot/polling/polling.py +89 -40
- telegrinder/bot/rules/__init__.py +91 -5
- telegrinder/bot/rules/abc.py +81 -63
- telegrinder/bot/rules/adapter/__init__.py +11 -0
- telegrinder/bot/rules/adapter/abc.py +21 -0
- telegrinder/bot/rules/adapter/errors.py +5 -0
- telegrinder/bot/rules/adapter/event.py +49 -0
- telegrinder/bot/rules/adapter/raw_update.py +24 -0
- telegrinder/bot/rules/callback_data.py +159 -38
- telegrinder/bot/rules/command.py +116 -0
- telegrinder/bot/rules/enum_text.py +28 -0
- telegrinder/bot/rules/func.py +17 -17
- telegrinder/bot/rules/fuzzy.py +13 -10
- telegrinder/bot/rules/inline.py +61 -0
- telegrinder/bot/rules/integer.py +12 -7
- telegrinder/bot/rules/is_from.py +148 -7
- telegrinder/bot/rules/markup.py +21 -18
- telegrinder/bot/rules/mention.py +17 -0
- telegrinder/bot/rules/message_entities.py +33 -0
- telegrinder/bot/rules/regex.py +27 -19
- telegrinder/bot/rules/rule_enum.py +74 -0
- telegrinder/bot/rules/start.py +25 -13
- telegrinder/bot/rules/text.py +23 -14
- telegrinder/bot/scenario/__init__.py +2 -0
- telegrinder/bot/scenario/abc.py +12 -5
- telegrinder/bot/scenario/checkbox.py +48 -30
- telegrinder/bot/scenario/choice.py +16 -10
- telegrinder/client/__init__.py +3 -1
- telegrinder/client/abc.py +26 -16
- telegrinder/client/aiohttp.py +54 -32
- telegrinder/model.py +119 -40
- telegrinder/modules.py +189 -21
- telegrinder/msgspec_json.py +14 -0
- telegrinder/msgspec_utils.py +227 -0
- telegrinder/node/__init__.py +31 -0
- telegrinder/node/attachment.py +71 -0
- telegrinder/node/base.py +93 -0
- telegrinder/node/composer.py +71 -0
- telegrinder/node/container.py +22 -0
- telegrinder/node/message.py +18 -0
- telegrinder/node/rule.py +56 -0
- telegrinder/node/source.py +31 -0
- telegrinder/node/text.py +13 -0
- telegrinder/node/tools/__init__.py +3 -0
- telegrinder/node/tools/generator.py +40 -0
- telegrinder/node/update.py +12 -0
- telegrinder/rules.py +1 -1
- telegrinder/tools/__init__.py +138 -4
- telegrinder/tools/buttons.py +89 -51
- telegrinder/tools/error_handler/__init__.py +8 -0
- telegrinder/tools/error_handler/abc.py +30 -0
- telegrinder/tools/error_handler/error_handler.py +156 -0
- telegrinder/tools/formatting/__init__.py +81 -3
- telegrinder/tools/formatting/html.py +283 -37
- telegrinder/tools/formatting/links.py +32 -0
- telegrinder/tools/formatting/spec_html_formats.py +121 -0
- telegrinder/tools/global_context/__init__.py +12 -0
- telegrinder/tools/global_context/abc.py +66 -0
- telegrinder/tools/global_context/global_context.py +451 -0
- telegrinder/tools/global_context/telegrinder_ctx.py +25 -0
- telegrinder/tools/i18n/__init__.py +12 -0
- telegrinder/tools/i18n/base.py +31 -0
- telegrinder/tools/i18n/middleware/__init__.py +3 -0
- telegrinder/tools/i18n/middleware/base.py +26 -0
- telegrinder/tools/i18n/simple.py +48 -0
- telegrinder/tools/kb_set/__init__.py +2 -0
- telegrinder/tools/kb_set/base.py +3 -0
- telegrinder/tools/kb_set/yaml.py +28 -17
- telegrinder/tools/keyboard.py +84 -62
- telegrinder/tools/loop_wrapper/__init__.py +4 -0
- telegrinder/tools/loop_wrapper/abc.py +18 -0
- telegrinder/tools/loop_wrapper/loop_wrapper.py +132 -0
- telegrinder/tools/magic.py +48 -23
- telegrinder/tools/parse_mode.py +1 -2
- telegrinder/types/__init__.py +1 -0
- telegrinder/types/enums.py +653 -0
- telegrinder/types/methods.py +4107 -1279
- telegrinder/types/objects.py +4771 -1745
- {telegrinder-0.1.dev20.dist-info → telegrinder-0.1.dev159.dist-info}/LICENSE +2 -1
- telegrinder-0.1.dev159.dist-info/METADATA +109 -0
- telegrinder-0.1.dev159.dist-info/RECORD +126 -0
- {telegrinder-0.1.dev20.dist-info → telegrinder-0.1.dev159.dist-info}/WHEEL +1 -1
- telegrinder/bot/dispatch/waiter.py +0 -38
- telegrinder/result.py +0 -38
- telegrinder/tools/formatting/abc.py +0 -52
- telegrinder/tools/formatting/markdown.py +0 -57
- telegrinder-0.1.dev20.dist-info/METADATA +0 -22
- telegrinder-0.1.dev20.dist-info/RECORD +0 -71
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
|
|
3
|
+
from telegrinder.model import get_params
|
|
4
|
+
from telegrinder.msgspec_utils import Nothing, Option
|
|
5
|
+
from telegrinder.types import (
|
|
6
|
+
InlineKeyboardMarkup,
|
|
7
|
+
InlineQueryResultArticle,
|
|
8
|
+
InlineQueryResultAudio,
|
|
9
|
+
InlineQueryResultCachedAudio,
|
|
10
|
+
InlineQueryResultCachedDocument,
|
|
11
|
+
InlineQueryResultCachedGif,
|
|
12
|
+
InlineQueryResultCachedMpeg4Gif,
|
|
13
|
+
InlineQueryResultCachedPhoto,
|
|
14
|
+
InlineQueryResultCachedSticker,
|
|
15
|
+
InlineQueryResultCachedVideo,
|
|
16
|
+
InlineQueryResultCachedVoice,
|
|
17
|
+
InlineQueryResultContact,
|
|
18
|
+
InlineQueryResultDocument,
|
|
19
|
+
InlineQueryResultGame,
|
|
20
|
+
InlineQueryResultGif,
|
|
21
|
+
InlineQueryResultLocation,
|
|
22
|
+
InlineQueryResultMpeg4Gif,
|
|
23
|
+
InlineQueryResultPhoto,
|
|
24
|
+
InlineQueryResultVenue,
|
|
25
|
+
InlineQueryResultVideo,
|
|
26
|
+
InlineQueryResultVoice,
|
|
27
|
+
InputContactMessageContent,
|
|
28
|
+
InputFile,
|
|
29
|
+
InputInvoiceMessageContent,
|
|
30
|
+
InputLocationMessageContent,
|
|
31
|
+
InputMediaAnimation,
|
|
32
|
+
InputMediaAudio,
|
|
33
|
+
InputMediaDocument,
|
|
34
|
+
InputMediaPhoto,
|
|
35
|
+
InputMediaVideo,
|
|
36
|
+
InputTextMessageContent,
|
|
37
|
+
InputVenueMessageContent,
|
|
38
|
+
LabeledPrice,
|
|
39
|
+
LinkPreviewOptions,
|
|
40
|
+
MessageEntity,
|
|
41
|
+
ReactionEmoji,
|
|
42
|
+
ReactionType,
|
|
43
|
+
ReactionTypeEmoji,
|
|
44
|
+
ReplyParameters,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
InputMedia: typing.TypeAlias = typing.Union[
|
|
48
|
+
InputMediaAnimation,
|
|
49
|
+
InputMediaAudio,
|
|
50
|
+
InputMediaDocument,
|
|
51
|
+
InputMediaPhoto,
|
|
52
|
+
InputMediaVideo,
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
INPUT_MEDIA_TYPES: typing.Final[dict[str, type[InputMedia]]] = {
|
|
56
|
+
"animation": InputMediaAnimation,
|
|
57
|
+
"audio": InputMediaAudio,
|
|
58
|
+
"document": InputMediaDocument,
|
|
59
|
+
"photo": InputMediaPhoto,
|
|
60
|
+
"video": InputMediaVideo,
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def compose_reactions(
|
|
65
|
+
reactions: str
|
|
66
|
+
| ReactionEmoji
|
|
67
|
+
| ReactionType
|
|
68
|
+
| list[str | ReactionEmoji | ReactionType],
|
|
69
|
+
/,
|
|
70
|
+
) -> list[ReactionType]:
|
|
71
|
+
if not isinstance(reactions, list):
|
|
72
|
+
reactions = [reactions]
|
|
73
|
+
return [
|
|
74
|
+
ReactionTypeEmoji("emoji", emoji)
|
|
75
|
+
if isinstance(emoji, ReactionEmoji)
|
|
76
|
+
else ReactionTypeEmoji("emoji", ReactionEmoji(emoji))
|
|
77
|
+
if isinstance(emoji, str)
|
|
78
|
+
else emoji
|
|
79
|
+
for emoji in ([reactions] if isinstance(reactions, str) else reactions)
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def compose_reply_params(
|
|
84
|
+
message_id: int | Option[int],
|
|
85
|
+
chat_id: int | str | Option[int | str],
|
|
86
|
+
*,
|
|
87
|
+
allow_sending_without_reply: bool | Option[bool] = Nothing,
|
|
88
|
+
quote: str | Option[str] = Nothing,
|
|
89
|
+
quote_parse_mode: str | Option[str] = Nothing,
|
|
90
|
+
quote_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
91
|
+
quote_position: int | Option[int] = Nothing,
|
|
92
|
+
**other: typing.Any,
|
|
93
|
+
) -> ReplyParameters:
|
|
94
|
+
return ReplyParameters(**get_params(locals()))
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def compose_link_preview_options(
|
|
98
|
+
*,
|
|
99
|
+
is_disabled: bool | Option[bool] = Nothing,
|
|
100
|
+
url: str | Option[str] = Nothing,
|
|
101
|
+
prefer_small_media: bool | Option[bool] = Nothing,
|
|
102
|
+
prefer_large_media: bool | Option[bool] = Nothing,
|
|
103
|
+
show_above_text: bool | Option[bool] = Nothing,
|
|
104
|
+
**other: typing.Any,
|
|
105
|
+
) -> LinkPreviewOptions:
|
|
106
|
+
return LinkPreviewOptions(**get_params(locals()))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def input_media(
|
|
110
|
+
type: typing.Literal["animation", "audio", "document", "photo", "video"],
|
|
111
|
+
media: str | InputFile,
|
|
112
|
+
*,
|
|
113
|
+
caption: str | Option[str] = Nothing,
|
|
114
|
+
parse_mode: str | Option[str] = Nothing,
|
|
115
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
116
|
+
**other: typing.Any,
|
|
117
|
+
) -> InputMedia:
|
|
118
|
+
return INPUT_MEDIA_TYPES[type](**get_params(locals()))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def input_contact_message_content(
|
|
122
|
+
phone_number: str,
|
|
123
|
+
first_name: str,
|
|
124
|
+
*,
|
|
125
|
+
last_name: str | Option[str] = Nothing,
|
|
126
|
+
vcard: str | Option[str] = Nothing,
|
|
127
|
+
) -> InputContactMessageContent:
|
|
128
|
+
return InputContactMessageContent(**get_params(locals()))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def input_invoice_message_content(
|
|
132
|
+
title: str,
|
|
133
|
+
description: str,
|
|
134
|
+
payload: str,
|
|
135
|
+
provider_token: str,
|
|
136
|
+
currency: str,
|
|
137
|
+
*,
|
|
138
|
+
prices: list[LabeledPrice],
|
|
139
|
+
max_tip_amount: int | Option[int] = Nothing,
|
|
140
|
+
suggested_tip_amounts: list[int] | Option[list[int]] = Nothing,
|
|
141
|
+
provider_data: str | Option[str] = Nothing,
|
|
142
|
+
photo_url: str | Option[str] = Nothing,
|
|
143
|
+
photo_size: int | Option[int] = Nothing,
|
|
144
|
+
photo_width: int | Option[int] = Nothing,
|
|
145
|
+
photo_height: int | Option[int] = Nothing,
|
|
146
|
+
need_name: bool | Option[bool] = Nothing,
|
|
147
|
+
need_phone_number: bool | Option[bool] = Nothing,
|
|
148
|
+
need_email: bool | Option[bool] = Nothing,
|
|
149
|
+
need_shipping_address: bool | Option[bool] = Nothing,
|
|
150
|
+
send_phone_number_to_provider: bool | Option[bool] = Nothing,
|
|
151
|
+
) -> InputInvoiceMessageContent:
|
|
152
|
+
return InputInvoiceMessageContent(**get_params(locals()))
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def input_location_message_content(
|
|
156
|
+
latitude: float,
|
|
157
|
+
longitude: float,
|
|
158
|
+
*,
|
|
159
|
+
horizontal_accuracy: float | Option[float] = Nothing,
|
|
160
|
+
live_period: int | Option[int] = Nothing,
|
|
161
|
+
heading: int | Option[int] = Nothing,
|
|
162
|
+
proximity_alert_radius: int | Option[int] = Nothing,
|
|
163
|
+
) -> InputLocationMessageContent:
|
|
164
|
+
return InputLocationMessageContent(**get_params(locals()))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def input_text_message_content(
|
|
168
|
+
message_text: str,
|
|
169
|
+
*,
|
|
170
|
+
parse_mode: str | Option[str] = Nothing,
|
|
171
|
+
entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
172
|
+
disable_web_page_preview: bool | Option[bool] = Nothing,
|
|
173
|
+
) -> InputTextMessageContent:
|
|
174
|
+
return InputTextMessageContent(**get_params(locals()))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def input_venue_message_content(
|
|
178
|
+
latitude: float,
|
|
179
|
+
longitude: float,
|
|
180
|
+
title: str,
|
|
181
|
+
address: str,
|
|
182
|
+
*,
|
|
183
|
+
foursquare_id: str | Option[str] = Nothing,
|
|
184
|
+
foursquare_type: str | Option[str] = Nothing,
|
|
185
|
+
google_place_id: str | Option[str] = Nothing,
|
|
186
|
+
google_place_type: str | Option[str] = Nothing,
|
|
187
|
+
) -> InputVenueMessageContent:
|
|
188
|
+
return InputVenueMessageContent(**get_params(locals()))
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def inline_query_article(
|
|
192
|
+
id: str,
|
|
193
|
+
title: str,
|
|
194
|
+
input_message_content: typing.Union[
|
|
195
|
+
InputTextMessageContent,
|
|
196
|
+
InputLocationMessageContent,
|
|
197
|
+
InputVenueMessageContent,
|
|
198
|
+
InputContactMessageContent,
|
|
199
|
+
InputInvoiceMessageContent,
|
|
200
|
+
],
|
|
201
|
+
*,
|
|
202
|
+
reply_markup: Option[InlineKeyboardMarkup] = Nothing,
|
|
203
|
+
url: str | Option[str] = Nothing,
|
|
204
|
+
hide_url: bool | Option[bool] = Nothing,
|
|
205
|
+
description: str | Option[str] = Nothing,
|
|
206
|
+
thumbnail_url: str | Option[str] = Nothing,
|
|
207
|
+
thumbnail_width: int | Option[int] = Nothing,
|
|
208
|
+
thumbnail_height: int | Option[int] = Nothing,
|
|
209
|
+
) -> InlineQueryResultArticle:
|
|
210
|
+
return InlineQueryResultArticle(type="article", **get_params(locals()))
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def inline_query_audio(
|
|
214
|
+
id: str,
|
|
215
|
+
audio_url: str,
|
|
216
|
+
*,
|
|
217
|
+
title: str | Option[str] = Nothing,
|
|
218
|
+
caption: str | Option[str] = Nothing,
|
|
219
|
+
parse_mode: str | Option[str] = Nothing,
|
|
220
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
221
|
+
performer: str | Option[str] = Nothing,
|
|
222
|
+
audio_duration: int | Option[int] = Nothing,
|
|
223
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
224
|
+
input_message_content: typing.Union[
|
|
225
|
+
InputTextMessageContent,
|
|
226
|
+
InputLocationMessageContent,
|
|
227
|
+
InputVenueMessageContent,
|
|
228
|
+
InputContactMessageContent,
|
|
229
|
+
InputInvoiceMessageContent,
|
|
230
|
+
]
|
|
231
|
+
| Option[
|
|
232
|
+
typing.Union[
|
|
233
|
+
InputTextMessageContent,
|
|
234
|
+
InputLocationMessageContent,
|
|
235
|
+
InputVenueMessageContent,
|
|
236
|
+
InputContactMessageContent,
|
|
237
|
+
InputInvoiceMessageContent,
|
|
238
|
+
]
|
|
239
|
+
] = Nothing,
|
|
240
|
+
) -> InlineQueryResultAudio:
|
|
241
|
+
return InlineQueryResultAudio(type="audio", **get_params(locals()))
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def inline_query_contact(
|
|
245
|
+
id: str,
|
|
246
|
+
phone_number: str,
|
|
247
|
+
first_name: str,
|
|
248
|
+
*,
|
|
249
|
+
last_name: str | Option[str] = Nothing,
|
|
250
|
+
vcard: str | Option[str] = Nothing,
|
|
251
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
252
|
+
input_message_content: typing.Union[
|
|
253
|
+
InputTextMessageContent,
|
|
254
|
+
InputLocationMessageContent,
|
|
255
|
+
InputVenueMessageContent,
|
|
256
|
+
InputContactMessageContent,
|
|
257
|
+
InputInvoiceMessageContent,
|
|
258
|
+
]
|
|
259
|
+
| Option[
|
|
260
|
+
typing.Union[
|
|
261
|
+
InputTextMessageContent,
|
|
262
|
+
InputLocationMessageContent,
|
|
263
|
+
InputVenueMessageContent,
|
|
264
|
+
InputContactMessageContent,
|
|
265
|
+
InputInvoiceMessageContent,
|
|
266
|
+
]
|
|
267
|
+
] = Nothing,
|
|
268
|
+
thumbnail_url: str | Option[str] = Nothing,
|
|
269
|
+
thumbnail_width: int | Option[int] = Nothing,
|
|
270
|
+
thumbnail_height: int | Option[int] = Nothing,
|
|
271
|
+
) -> InlineQueryResultContact:
|
|
272
|
+
return InlineQueryResultContact(type="contact", **get_params(locals()))
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def inline_query_document(
|
|
276
|
+
id: str,
|
|
277
|
+
title: str,
|
|
278
|
+
document_url: str,
|
|
279
|
+
mime_type: str,
|
|
280
|
+
*,
|
|
281
|
+
description: Option[str] = Nothing,
|
|
282
|
+
caption: Option[str] = Nothing,
|
|
283
|
+
parse_mode: Option[str] = Nothing,
|
|
284
|
+
caption_entities: Option[list[MessageEntity]] = Nothing,
|
|
285
|
+
reply_markup: Option[InlineKeyboardMarkup] = Nothing,
|
|
286
|
+
input_message_content: typing.Union[
|
|
287
|
+
InputTextMessageContent,
|
|
288
|
+
InputLocationMessageContent,
|
|
289
|
+
InputVenueMessageContent,
|
|
290
|
+
InputContactMessageContent,
|
|
291
|
+
InputInvoiceMessageContent,
|
|
292
|
+
]
|
|
293
|
+
| Option[
|
|
294
|
+
typing.Union[
|
|
295
|
+
InputTextMessageContent,
|
|
296
|
+
InputLocationMessageContent,
|
|
297
|
+
InputVenueMessageContent,
|
|
298
|
+
InputContactMessageContent,
|
|
299
|
+
InputInvoiceMessageContent,
|
|
300
|
+
]
|
|
301
|
+
] = Nothing,
|
|
302
|
+
thumbnail_url: Option[str] = Nothing,
|
|
303
|
+
thumbnail_width: Option[int] = Nothing,
|
|
304
|
+
thumbnail_height: Option[int] = Nothing,
|
|
305
|
+
) -> InlineQueryResultDocument:
|
|
306
|
+
return InlineQueryResultDocument(type="document", **get_params(locals()))
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
def inline_query_gif(
|
|
310
|
+
id: str,
|
|
311
|
+
gif_url: str,
|
|
312
|
+
*,
|
|
313
|
+
gif_width: int | Option[int] = Nothing,
|
|
314
|
+
gif_height: int | Option[int] = Nothing,
|
|
315
|
+
gif_duration: int | Option[int] = Nothing,
|
|
316
|
+
title: str | Option[str] = Nothing,
|
|
317
|
+
caption: str | Option[str] = Nothing,
|
|
318
|
+
parse_mode: str | Option[str] = Nothing,
|
|
319
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
320
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
321
|
+
input_message_content: typing.Union[
|
|
322
|
+
InputTextMessageContent,
|
|
323
|
+
InputLocationMessageContent,
|
|
324
|
+
InputVenueMessageContent,
|
|
325
|
+
InputContactMessageContent,
|
|
326
|
+
InputInvoiceMessageContent,
|
|
327
|
+
]
|
|
328
|
+
| Option[
|
|
329
|
+
typing.Union[
|
|
330
|
+
InputTextMessageContent,
|
|
331
|
+
InputLocationMessageContent,
|
|
332
|
+
InputVenueMessageContent,
|
|
333
|
+
InputContactMessageContent,
|
|
334
|
+
InputInvoiceMessageContent,
|
|
335
|
+
]
|
|
336
|
+
] = Nothing,
|
|
337
|
+
thumbnail_url: str | Option[str] = Nothing,
|
|
338
|
+
thumbnail_mime_type: str | Option[str] = Nothing,
|
|
339
|
+
) -> InlineQueryResultGif:
|
|
340
|
+
return InlineQueryResultGif(type="gif", **get_params(locals()))
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
def inline_query_location(
|
|
344
|
+
id: str,
|
|
345
|
+
latitude: float,
|
|
346
|
+
longitude: float,
|
|
347
|
+
*,
|
|
348
|
+
title: str | Option[str] = Nothing,
|
|
349
|
+
horizontal_accuracy: float | Option[float] = Nothing,
|
|
350
|
+
live_period: int | Option[int] = Nothing,
|
|
351
|
+
heading: int | Option[int] = Nothing,
|
|
352
|
+
proximity_alert_radius: int | Option[int] = Nothing,
|
|
353
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
354
|
+
input_message_content: typing.Union[
|
|
355
|
+
InputTextMessageContent,
|
|
356
|
+
InputLocationMessageContent,
|
|
357
|
+
InputVenueMessageContent,
|
|
358
|
+
InputContactMessageContent,
|
|
359
|
+
InputInvoiceMessageContent,
|
|
360
|
+
]
|
|
361
|
+
| Option[
|
|
362
|
+
typing.Union[
|
|
363
|
+
InputTextMessageContent,
|
|
364
|
+
InputLocationMessageContent,
|
|
365
|
+
InputVenueMessageContent,
|
|
366
|
+
InputContactMessageContent,
|
|
367
|
+
InputInvoiceMessageContent,
|
|
368
|
+
]
|
|
369
|
+
] = Nothing,
|
|
370
|
+
thumbnail_url: str | Option[str] = Nothing,
|
|
371
|
+
thumbnail_width: int | Option[int] = Nothing,
|
|
372
|
+
thumbnail_height: int | Option[int] = Nothing,
|
|
373
|
+
) -> InlineQueryResultLocation:
|
|
374
|
+
return InlineQueryResultLocation(type="location", **get_params(locals()))
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
def inline_query_venue(
|
|
378
|
+
id: str,
|
|
379
|
+
latitude: float,
|
|
380
|
+
longitude: float,
|
|
381
|
+
title: str,
|
|
382
|
+
address: str,
|
|
383
|
+
*,
|
|
384
|
+
foursquare_id: str | Option[str] = Nothing,
|
|
385
|
+
foursquare_type: str | Option[str] = Nothing,
|
|
386
|
+
google_place_id: str | Option[str] = Nothing,
|
|
387
|
+
google_place_type: str | Option[str] = Nothing,
|
|
388
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
389
|
+
input_message_content: typing.Union[
|
|
390
|
+
InputTextMessageContent,
|
|
391
|
+
InputLocationMessageContent,
|
|
392
|
+
InputVenueMessageContent,
|
|
393
|
+
InputContactMessageContent,
|
|
394
|
+
InputInvoiceMessageContent,
|
|
395
|
+
]
|
|
396
|
+
| Option[
|
|
397
|
+
typing.Union[
|
|
398
|
+
InputTextMessageContent,
|
|
399
|
+
InputLocationMessageContent,
|
|
400
|
+
InputVenueMessageContent,
|
|
401
|
+
InputContactMessageContent,
|
|
402
|
+
InputInvoiceMessageContent,
|
|
403
|
+
]
|
|
404
|
+
] = Nothing,
|
|
405
|
+
thumbnail_url: str | Option[str] = Nothing,
|
|
406
|
+
thumbnail_width: int | Option[int] = Nothing,
|
|
407
|
+
thumbnail_height: int | Option[int] = Nothing,
|
|
408
|
+
) -> InlineQueryResultVenue:
|
|
409
|
+
return InlineQueryResultVenue(type="venue", **get_params(locals()))
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
def inline_query_video(
|
|
413
|
+
id: str,
|
|
414
|
+
video_url: str,
|
|
415
|
+
mime_type: str,
|
|
416
|
+
thumb_url: str,
|
|
417
|
+
*,
|
|
418
|
+
title: str | Option[str] = Nothing,
|
|
419
|
+
caption: str | Option[str] = Nothing,
|
|
420
|
+
parse_mode: str | Option[str] = Nothing,
|
|
421
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
422
|
+
video_width: int | Option[int] = Nothing,
|
|
423
|
+
video_height: int | Option[int] = Nothing,
|
|
424
|
+
video_duration: int | Option[int] = Nothing,
|
|
425
|
+
description: str | Option[str] = Nothing,
|
|
426
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
427
|
+
input_message_content: typing.Union[
|
|
428
|
+
InputTextMessageContent,
|
|
429
|
+
InputLocationMessageContent,
|
|
430
|
+
InputVenueMessageContent,
|
|
431
|
+
InputContactMessageContent,
|
|
432
|
+
InputInvoiceMessageContent,
|
|
433
|
+
]
|
|
434
|
+
| Option[
|
|
435
|
+
typing.Union[
|
|
436
|
+
InputTextMessageContent,
|
|
437
|
+
InputLocationMessageContent,
|
|
438
|
+
InputVenueMessageContent,
|
|
439
|
+
InputContactMessageContent,
|
|
440
|
+
InputInvoiceMessageContent,
|
|
441
|
+
]
|
|
442
|
+
] = Nothing,
|
|
443
|
+
thumbnail_url: str | Option[str] = Nothing,
|
|
444
|
+
thumbnail_width: int | Option[int] = Nothing,
|
|
445
|
+
thumbnail_height: int | Option[int] = Nothing,
|
|
446
|
+
) -> InlineQueryResultVideo:
|
|
447
|
+
return InlineQueryResultVideo(type="video", **get_params(locals()))
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
def inline_query_game(
|
|
451
|
+
id: str,
|
|
452
|
+
game_short_name: str,
|
|
453
|
+
*,
|
|
454
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
455
|
+
) -> InlineQueryResultGame:
|
|
456
|
+
return InlineQueryResultGame(type="game", **get_params(locals()))
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
def inline_query_voice(
|
|
460
|
+
id: str,
|
|
461
|
+
voice_url: str,
|
|
462
|
+
title: str,
|
|
463
|
+
*,
|
|
464
|
+
caption: str | Option[str] = Nothing,
|
|
465
|
+
parse_mode: str | Option[str] = Nothing,
|
|
466
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
467
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
468
|
+
input_message_content: typing.Union[
|
|
469
|
+
InputTextMessageContent,
|
|
470
|
+
InputLocationMessageContent,
|
|
471
|
+
InputVenueMessageContent,
|
|
472
|
+
InputContactMessageContent,
|
|
473
|
+
InputInvoiceMessageContent,
|
|
474
|
+
]
|
|
475
|
+
| Option[
|
|
476
|
+
typing.Union[
|
|
477
|
+
InputTextMessageContent,
|
|
478
|
+
InputLocationMessageContent,
|
|
479
|
+
InputVenueMessageContent,
|
|
480
|
+
InputContactMessageContent,
|
|
481
|
+
InputInvoiceMessageContent,
|
|
482
|
+
]
|
|
483
|
+
] = Nothing,
|
|
484
|
+
duration: int | Option[int] = Nothing,
|
|
485
|
+
) -> InlineQueryResultVoice:
|
|
486
|
+
return InlineQueryResultVoice(type="voice", **get_params(locals()))
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def inline_query_photo(
|
|
490
|
+
id: str,
|
|
491
|
+
photo_url: str,
|
|
492
|
+
thumb_url: str,
|
|
493
|
+
*,
|
|
494
|
+
photo_width: int | Option[int] = Nothing,
|
|
495
|
+
photo_height: int | Option[int] = Nothing,
|
|
496
|
+
title: str | Option[str] = Nothing,
|
|
497
|
+
description: str | Option[str] = Nothing,
|
|
498
|
+
caption: str | Option[str] = Nothing,
|
|
499
|
+
parse_mode: str | Option[str] = Nothing,
|
|
500
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
501
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
502
|
+
input_message_content: typing.Union[
|
|
503
|
+
InputTextMessageContent,
|
|
504
|
+
InputLocationMessageContent,
|
|
505
|
+
InputVenueMessageContent,
|
|
506
|
+
InputContactMessageContent,
|
|
507
|
+
InputInvoiceMessageContent,
|
|
508
|
+
]
|
|
509
|
+
| Option[
|
|
510
|
+
typing.Union[
|
|
511
|
+
InputTextMessageContent,
|
|
512
|
+
InputLocationMessageContent,
|
|
513
|
+
InputVenueMessageContent,
|
|
514
|
+
InputContactMessageContent,
|
|
515
|
+
InputInvoiceMessageContent,
|
|
516
|
+
]
|
|
517
|
+
] = Nothing,
|
|
518
|
+
) -> InlineQueryResultPhoto:
|
|
519
|
+
return InlineQueryResultPhoto(type="photo", **get_params(locals()))
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
def inline_query_mpeg4_gif(
|
|
523
|
+
id: str,
|
|
524
|
+
mpeg4_url: str,
|
|
525
|
+
*,
|
|
526
|
+
mpeg4_width: int | Option[int] = Nothing,
|
|
527
|
+
mpeg4_height: int | Option[int] = Nothing,
|
|
528
|
+
mpeg4_duration: int | Option[int] = Nothing,
|
|
529
|
+
thumb_url: str | Option[str] = Nothing,
|
|
530
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
531
|
+
input_message_content: typing.Union[
|
|
532
|
+
InputTextMessageContent,
|
|
533
|
+
InputLocationMessageContent,
|
|
534
|
+
InputVenueMessageContent,
|
|
535
|
+
InputContactMessageContent,
|
|
536
|
+
InputInvoiceMessageContent,
|
|
537
|
+
]
|
|
538
|
+
| Option[
|
|
539
|
+
typing.Union[
|
|
540
|
+
InputTextMessageContent,
|
|
541
|
+
InputLocationMessageContent,
|
|
542
|
+
InputVenueMessageContent,
|
|
543
|
+
InputContactMessageContent,
|
|
544
|
+
InputInvoiceMessageContent,
|
|
545
|
+
]
|
|
546
|
+
] = Nothing,
|
|
547
|
+
) -> InlineQueryResultMpeg4Gif:
|
|
548
|
+
return InlineQueryResultMpeg4Gif(type="mpeg4_gif", **get_params(locals()))
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
def inline_query_cached_sticker(
|
|
552
|
+
id: str,
|
|
553
|
+
sticker_file_id: str,
|
|
554
|
+
*,
|
|
555
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
556
|
+
) -> InlineQueryResultCachedSticker:
|
|
557
|
+
return InlineQueryResultCachedSticker(type="sticker", **get_params(locals()))
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
def inline_query_cached_document(
|
|
561
|
+
id: str,
|
|
562
|
+
document_file_id: str,
|
|
563
|
+
*,
|
|
564
|
+
title: str | Option[str] = Nothing,
|
|
565
|
+
description: str | Option[str] = Nothing,
|
|
566
|
+
caption: str | Option[str] = Nothing,
|
|
567
|
+
parse_mode: str | Option[str] = Nothing,
|
|
568
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
569
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
570
|
+
input_message_content: typing.Union[
|
|
571
|
+
InputTextMessageContent,
|
|
572
|
+
InputLocationMessageContent,
|
|
573
|
+
InputVenueMessageContent,
|
|
574
|
+
InputContactMessageContent,
|
|
575
|
+
InputInvoiceMessageContent,
|
|
576
|
+
]
|
|
577
|
+
| Option[
|
|
578
|
+
typing.Union[
|
|
579
|
+
InputTextMessageContent,
|
|
580
|
+
InputLocationMessageContent,
|
|
581
|
+
InputVenueMessageContent,
|
|
582
|
+
InputContactMessageContent,
|
|
583
|
+
InputInvoiceMessageContent,
|
|
584
|
+
]
|
|
585
|
+
] = Nothing,
|
|
586
|
+
) -> InlineQueryResultCachedDocument:
|
|
587
|
+
return InlineQueryResultCachedDocument(type="document", **get_params(locals()))
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
def inline_query_cached_audio(
|
|
591
|
+
id: str,
|
|
592
|
+
audio_file_id: str,
|
|
593
|
+
*,
|
|
594
|
+
caption: str | Option[str] = Nothing,
|
|
595
|
+
parse_mode: str | Option[str] = Nothing,
|
|
596
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
597
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
598
|
+
input_message_content: typing.Union[
|
|
599
|
+
InputTextMessageContent,
|
|
600
|
+
InputLocationMessageContent,
|
|
601
|
+
InputVenueMessageContent,
|
|
602
|
+
InputContactMessageContent,
|
|
603
|
+
InputInvoiceMessageContent,
|
|
604
|
+
]
|
|
605
|
+
| Option[
|
|
606
|
+
typing.Union[
|
|
607
|
+
InputTextMessageContent,
|
|
608
|
+
InputLocationMessageContent,
|
|
609
|
+
InputVenueMessageContent,
|
|
610
|
+
InputContactMessageContent,
|
|
611
|
+
InputInvoiceMessageContent,
|
|
612
|
+
]
|
|
613
|
+
] = Nothing,
|
|
614
|
+
) -> InlineQueryResultCachedAudio:
|
|
615
|
+
return InlineQueryResultCachedAudio(type="audio", **get_params(locals()))
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
def inline_query_cached_video(
|
|
619
|
+
id: str,
|
|
620
|
+
video_file_id: str,
|
|
621
|
+
*,
|
|
622
|
+
title: str | Option[str] = Nothing,
|
|
623
|
+
description: str | Option[str] = Nothing,
|
|
624
|
+
caption: str | Option[str] = Nothing,
|
|
625
|
+
parse_mode: str | Option[str] = Nothing,
|
|
626
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
627
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
628
|
+
input_message_content: typing.Union[
|
|
629
|
+
InputTextMessageContent,
|
|
630
|
+
InputLocationMessageContent,
|
|
631
|
+
InputVenueMessageContent,
|
|
632
|
+
InputContactMessageContent,
|
|
633
|
+
InputInvoiceMessageContent,
|
|
634
|
+
]
|
|
635
|
+
| Option[
|
|
636
|
+
typing.Union[
|
|
637
|
+
InputTextMessageContent,
|
|
638
|
+
InputLocationMessageContent,
|
|
639
|
+
InputVenueMessageContent,
|
|
640
|
+
InputContactMessageContent,
|
|
641
|
+
InputInvoiceMessageContent,
|
|
642
|
+
]
|
|
643
|
+
] = Nothing,
|
|
644
|
+
) -> InlineQueryResultCachedVideo:
|
|
645
|
+
return InlineQueryResultCachedVideo(type="video", **get_params(locals()))
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
def inline_query_cached_gif(
|
|
649
|
+
id: str,
|
|
650
|
+
gif_file_id: str,
|
|
651
|
+
*,
|
|
652
|
+
title: str | Option[str] = Nothing,
|
|
653
|
+
caption: str | Option[str] = Nothing,
|
|
654
|
+
parse_mode: str | Option[str] = Nothing,
|
|
655
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
656
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
657
|
+
input_message_content: typing.Union[
|
|
658
|
+
InputTextMessageContent,
|
|
659
|
+
InputLocationMessageContent,
|
|
660
|
+
InputVenueMessageContent,
|
|
661
|
+
InputContactMessageContent,
|
|
662
|
+
InputInvoiceMessageContent,
|
|
663
|
+
]
|
|
664
|
+
| Option[
|
|
665
|
+
typing.Union[
|
|
666
|
+
InputTextMessageContent,
|
|
667
|
+
InputLocationMessageContent,
|
|
668
|
+
InputVenueMessageContent,
|
|
669
|
+
InputContactMessageContent,
|
|
670
|
+
InputInvoiceMessageContent,
|
|
671
|
+
]
|
|
672
|
+
] = Nothing,
|
|
673
|
+
) -> InlineQueryResultCachedGif:
|
|
674
|
+
return InlineQueryResultCachedGif(type="gif", **get_params(locals()))
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
def inline_query_cached_mpeg4_gif(
|
|
678
|
+
id: str,
|
|
679
|
+
mpeg4_file_id: str,
|
|
680
|
+
*,
|
|
681
|
+
title: str | Option[str] = Nothing,
|
|
682
|
+
caption: str | Option[str] = Nothing,
|
|
683
|
+
parse_mode: str | Option[str] = Nothing,
|
|
684
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
685
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
686
|
+
input_message_content: typing.Union[
|
|
687
|
+
InputTextMessageContent,
|
|
688
|
+
InputLocationMessageContent,
|
|
689
|
+
InputVenueMessageContent,
|
|
690
|
+
InputContactMessageContent,
|
|
691
|
+
InputInvoiceMessageContent,
|
|
692
|
+
]
|
|
693
|
+
| Option[
|
|
694
|
+
typing.Union[
|
|
695
|
+
InputTextMessageContent,
|
|
696
|
+
InputLocationMessageContent,
|
|
697
|
+
InputVenueMessageContent,
|
|
698
|
+
InputContactMessageContent,
|
|
699
|
+
InputInvoiceMessageContent,
|
|
700
|
+
]
|
|
701
|
+
] = Nothing,
|
|
702
|
+
) -> InlineQueryResultCachedMpeg4Gif:
|
|
703
|
+
return InlineQueryResultCachedMpeg4Gif(type="mpeg4_gif", **get_params(locals()))
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
def inline_query_cached_voice(
|
|
707
|
+
id: str,
|
|
708
|
+
voice_file_id: str,
|
|
709
|
+
*,
|
|
710
|
+
caption: str | Option[str] = Nothing,
|
|
711
|
+
parse_mode: str | Option[str] = Nothing,
|
|
712
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
713
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
714
|
+
input_message_content: typing.Union[
|
|
715
|
+
InputTextMessageContent,
|
|
716
|
+
InputLocationMessageContent,
|
|
717
|
+
InputVenueMessageContent,
|
|
718
|
+
InputContactMessageContent,
|
|
719
|
+
InputInvoiceMessageContent,
|
|
720
|
+
]
|
|
721
|
+
| Option[
|
|
722
|
+
typing.Union[
|
|
723
|
+
InputTextMessageContent,
|
|
724
|
+
InputLocationMessageContent,
|
|
725
|
+
InputVenueMessageContent,
|
|
726
|
+
InputContactMessageContent,
|
|
727
|
+
InputInvoiceMessageContent,
|
|
728
|
+
]
|
|
729
|
+
] = Nothing,
|
|
730
|
+
) -> InlineQueryResultCachedVoice:
|
|
731
|
+
return InlineQueryResultCachedVoice(type="voice", **get_params(locals()))
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
def inline_query_cached_photo(
|
|
735
|
+
id: str,
|
|
736
|
+
photo_file_id: str,
|
|
737
|
+
*,
|
|
738
|
+
title: str | Option[str] = Nothing,
|
|
739
|
+
description: str | Option[str] = Nothing,
|
|
740
|
+
caption: str | Option[str] = Nothing,
|
|
741
|
+
parse_mode: str | Option[str] = Nothing,
|
|
742
|
+
caption_entities: list[MessageEntity] | Option[list[MessageEntity]] = Nothing,
|
|
743
|
+
reply_markup: InlineKeyboardMarkup | Option[InlineKeyboardMarkup] = Nothing,
|
|
744
|
+
input_message_content: typing.Union[
|
|
745
|
+
InputTextMessageContent,
|
|
746
|
+
InputLocationMessageContent,
|
|
747
|
+
InputVenueMessageContent,
|
|
748
|
+
InputContactMessageContent,
|
|
749
|
+
InputInvoiceMessageContent,
|
|
750
|
+
]
|
|
751
|
+
| Option[
|
|
752
|
+
typing.Union[
|
|
753
|
+
InputTextMessageContent,
|
|
754
|
+
InputLocationMessageContent,
|
|
755
|
+
InputVenueMessageContent,
|
|
756
|
+
InputContactMessageContent,
|
|
757
|
+
InputInvoiceMessageContent,
|
|
758
|
+
]
|
|
759
|
+
] = Nothing,
|
|
760
|
+
) -> InlineQueryResultCachedPhoto:
|
|
761
|
+
return InlineQueryResultCachedPhoto(type="photo", **get_params(locals()))
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
__all__ = (
|
|
765
|
+
"compose_link_preview_options",
|
|
766
|
+
"compose_reactions",
|
|
767
|
+
"compose_reply_params",
|
|
768
|
+
"inline_query_article",
|
|
769
|
+
"inline_query_photo",
|
|
770
|
+
"inline_query_mpeg4_gif",
|
|
771
|
+
"inline_query_gif",
|
|
772
|
+
"inline_query_video",
|
|
773
|
+
"inline_query_audio",
|
|
774
|
+
"inline_query_voice",
|
|
775
|
+
"inline_query_document",
|
|
776
|
+
"inline_query_location",
|
|
777
|
+
"inline_query_venue",
|
|
778
|
+
"inline_query_contact",
|
|
779
|
+
"inline_query_game",
|
|
780
|
+
"inline_query_cached_sticker",
|
|
781
|
+
"inline_query_cached_document",
|
|
782
|
+
"inline_query_cached_audio",
|
|
783
|
+
"inline_query_cached_video",
|
|
784
|
+
"inline_query_cached_gif",
|
|
785
|
+
"inline_query_cached_mpeg4_gif",
|
|
786
|
+
"inline_query_cached_voice",
|
|
787
|
+
"inline_query_cached_photo",
|
|
788
|
+
"input_media",
|
|
789
|
+
"input_text_message_content",
|
|
790
|
+
"input_location_message_content",
|
|
791
|
+
"input_venue_message_content",
|
|
792
|
+
"input_contact_message_content",
|
|
793
|
+
"input_invoice_message_content",
|
|
794
|
+
)
|