ng-bot-api 0.1.0__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.
- ng_bot_api/__init__.py +56 -0
- ng_bot_api/api_version.py +2 -0
- ng_bot_api/async_bot.py +97 -0
- ng_bot_api/core/__init__.py +31 -0
- ng_bot_api/core/base.py +36 -0
- ng_bot_api/core/caller.py +17 -0
- ng_bot_api/core/decoding.py +85 -0
- ng_bot_api/core/encoding.py +42 -0
- ng_bot_api/core/errors.py +75 -0
- ng_bot_api/core/input_file.py +56 -0
- ng_bot_api/core/polling.py +39 -0
- ng_bot_api/core/registry.py +72 -0
- ng_bot_api/core/request.py +67 -0
- ng_bot_api/core/typespec.py +57 -0
- ng_bot_api/dispatcher/__init__.py +17 -0
- ng_bot_api/dispatcher/dispatcher.py +95 -0
- ng_bot_api/dispatcher/filter_base.py +78 -0
- ng_bot_api/dispatcher/filters.py +124 -0
- ng_bot_api/dispatcher/handler.py +34 -0
- ng_bot_api/dispatcher/router.py +69 -0
- ng_bot_api/methods/__init__.py +115 -0
- ng_bot_api/methods/async_01.py +99 -0
- ng_bot_api/methods/async_02.py +114 -0
- ng_bot_api/methods/async_03.py +85 -0
- ng_bot_api/methods/async_04.py +110 -0
- ng_bot_api/methods/async_05.py +114 -0
- ng_bot_api/methods/async_06.py +74 -0
- ng_bot_api/methods/async_07.py +114 -0
- ng_bot_api/methods/async_08.py +106 -0
- ng_bot_api/methods/async_09.py +97 -0
- ng_bot_api/methods/async_10.py +92 -0
- ng_bot_api/methods/async_11.py +107 -0
- ng_bot_api/methods/async_12.py +119 -0
- ng_bot_api/methods/async_13.py +119 -0
- ng_bot_api/methods/async_14.py +113 -0
- ng_bot_api/methods/async_15.py +117 -0
- ng_bot_api/methods/async_16.py +115 -0
- ng_bot_api/methods/async_17.py +121 -0
- ng_bot_api/methods/async_18.py +118 -0
- ng_bot_api/methods/async_19.py +128 -0
- ng_bot_api/methods/async_20.py +115 -0
- ng_bot_api/methods/async_21.py +127 -0
- ng_bot_api/methods/async_22.py +110 -0
- ng_bot_api/methods/async_23.py +116 -0
- ng_bot_api/methods/async_24.py +118 -0
- ng_bot_api/methods/async_25.py +109 -0
- ng_bot_api/methods/async_26.py +124 -0
- ng_bot_api/methods/async_27.py +119 -0
- ng_bot_api/methods/async_28.py +119 -0
- ng_bot_api/methods/async_29.py +108 -0
- ng_bot_api/methods/async_30.py +115 -0
- ng_bot_api/methods/async_31.py +112 -0
- ng_bot_api/methods/async_32.py +126 -0
- ng_bot_api/methods/async_33.py +105 -0
- ng_bot_api/methods/async_34.py +117 -0
- ng_bot_api/methods/async_35.py +122 -0
- ng_bot_api/methods/async_36.py +121 -0
- ng_bot_api/methods/async_37.py +126 -0
- ng_bot_api/methods/async_38.py +112 -0
- ng_bot_api/methods/async_39.py +84 -0
- ng_bot_api/methods/async_40.py +125 -0
- ng_bot_api/methods/async_41.py +115 -0
- ng_bot_api/methods/async_42.py +30 -0
- ng_bot_api/methods/sync_01.py +99 -0
- ng_bot_api/methods/sync_02.py +114 -0
- ng_bot_api/methods/sync_03.py +85 -0
- ng_bot_api/methods/sync_04.py +110 -0
- ng_bot_api/methods/sync_05.py +114 -0
- ng_bot_api/methods/sync_06.py +74 -0
- ng_bot_api/methods/sync_07.py +114 -0
- ng_bot_api/methods/sync_08.py +106 -0
- ng_bot_api/methods/sync_09.py +97 -0
- ng_bot_api/methods/sync_10.py +92 -0
- ng_bot_api/methods/sync_11.py +107 -0
- ng_bot_api/methods/sync_12.py +119 -0
- ng_bot_api/methods/sync_13.py +119 -0
- ng_bot_api/methods/sync_14.py +113 -0
- ng_bot_api/methods/sync_15.py +117 -0
- ng_bot_api/methods/sync_16.py +115 -0
- ng_bot_api/methods/sync_17.py +121 -0
- ng_bot_api/methods/sync_18.py +118 -0
- ng_bot_api/methods/sync_19.py +128 -0
- ng_bot_api/methods/sync_20.py +115 -0
- ng_bot_api/methods/sync_21.py +127 -0
- ng_bot_api/methods/sync_22.py +110 -0
- ng_bot_api/methods/sync_23.py +116 -0
- ng_bot_api/methods/sync_24.py +118 -0
- ng_bot_api/methods/sync_25.py +109 -0
- ng_bot_api/methods/sync_26.py +124 -0
- ng_bot_api/methods/sync_27.py +119 -0
- ng_bot_api/methods/sync_28.py +119 -0
- ng_bot_api/methods/sync_29.py +108 -0
- ng_bot_api/methods/sync_30.py +115 -0
- ng_bot_api/methods/sync_31.py +112 -0
- ng_bot_api/methods/sync_32.py +126 -0
- ng_bot_api/methods/sync_33.py +105 -0
- ng_bot_api/methods/sync_34.py +117 -0
- ng_bot_api/methods/sync_35.py +122 -0
- ng_bot_api/methods/sync_36.py +121 -0
- ng_bot_api/methods/sync_37.py +126 -0
- ng_bot_api/methods/sync_38.py +112 -0
- ng_bot_api/methods/sync_39.py +84 -0
- ng_bot_api/methods/sync_40.py +125 -0
- ng_bot_api/methods/sync_41.py +115 -0
- ng_bot_api/methods/sync_42.py +30 -0
- ng_bot_api/py.typed +0 -0
- ng_bot_api/sync_bot.py +95 -0
- ng_bot_api/types/__init__.py +82 -0
- ng_bot_api/types/available_types_01.py +102 -0
- ng_bot_api/types/available_types_02.py +141 -0
- ng_bot_api/types/available_types_03.py +311 -0
- ng_bot_api/types/available_types_04.py +84 -0
- ng_bot_api/types/available_types_05.py +134 -0
- ng_bot_api/types/available_types_06.py +126 -0
- ng_bot_api/types/available_types_07.py +119 -0
- ng_bot_api/types/available_types_08.py +120 -0
- ng_bot_api/types/available_types_09.py +115 -0
- ng_bot_api/types/available_types_10.py +109 -0
- ng_bot_api/types/available_types_11.py +121 -0
- ng_bot_api/types/available_types_12.py +120 -0
- ng_bot_api/types/available_types_13.py +128 -0
- ng_bot_api/types/available_types_14.py +124 -0
- ng_bot_api/types/available_types_15.py +129 -0
- ng_bot_api/types/available_types_16.py +121 -0
- ng_bot_api/types/available_types_17.py +124 -0
- ng_bot_api/types/available_types_18.py +128 -0
- ng_bot_api/types/available_types_19.py +115 -0
- ng_bot_api/types/available_types_20.py +123 -0
- ng_bot_api/types/available_types_21.py +101 -0
- ng_bot_api/types/available_types_22.py +121 -0
- ng_bot_api/types/available_types_23.py +128 -0
- ng_bot_api/types/available_types_24.py +107 -0
- ng_bot_api/types/available_types_25.py +100 -0
- ng_bot_api/types/available_types_26.py +81 -0
- ng_bot_api/types/available_types_27.py +114 -0
- ng_bot_api/types/available_types_28.py +125 -0
- ng_bot_api/types/available_types_29.py +118 -0
- ng_bot_api/types/available_types_30.py +113 -0
- ng_bot_api/types/available_types_31.py +120 -0
- ng_bot_api/types/available_types_32.py +124 -0
- ng_bot_api/types/available_types_33.py +125 -0
- ng_bot_api/types/available_types_34.py +113 -0
- ng_bot_api/types/available_types_35.py +125 -0
- ng_bot_api/types/available_types_36.py +119 -0
- ng_bot_api/types/available_types_37.py +126 -0
- ng_bot_api/types/available_types_38.py +118 -0
- ng_bot_api/types/available_types_39.py +121 -0
- ng_bot_api/types/available_types_40.py +121 -0
- ng_bot_api/types/available_types_41.py +116 -0
- ng_bot_api/types/available_types_42.py +112 -0
- ng_bot_api/types/available_types_43.py +110 -0
- ng_bot_api/types/available_types_44.py +30 -0
- ng_bot_api/types/games_01.py +57 -0
- ng_bot_api/types/getting_updates_01.py +123 -0
- ng_bot_api/types/inline_mode_01.py +124 -0
- ng_bot_api/types/inline_mode_02.py +91 -0
- ng_bot_api/types/inline_mode_03.py +116 -0
- ng_bot_api/types/inline_mode_04.py +126 -0
- ng_bot_api/types/inline_mode_05.py +124 -0
- ng_bot_api/types/inline_mode_06.py +124 -0
- ng_bot_api/types/inline_mode_07.py +119 -0
- ng_bot_api/types/inline_mode_08.py +104 -0
- ng_bot_api/types/inline_mode_09.py +84 -0
- ng_bot_api/types/payments_01.py +124 -0
- ng_bot_api/types/payments_02.py +124 -0
- ng_bot_api/types/payments_03.py +119 -0
- ng_bot_api/types/payments_04.py +70 -0
- ng_bot_api/types/rich_messages_01.py +126 -0
- ng_bot_api/types/rich_messages_02.py +125 -0
- ng_bot_api/types/rich_messages_03.py +115 -0
- ng_bot_api/types/rich_messages_04.py +116 -0
- ng_bot_api/types/rich_messages_05.py +128 -0
- ng_bot_api/types/rich_messages_06.py +125 -0
- ng_bot_api/types/rich_messages_07.py +114 -0
- ng_bot_api/types/rich_messages_08.py +118 -0
- ng_bot_api/types/rich_messages_09.py +124 -0
- ng_bot_api/types/rich_messages_10.py +125 -0
- ng_bot_api/types/rich_messages_11.py +122 -0
- ng_bot_api/types/rich_messages_12.py +122 -0
- ng_bot_api/types/stickers_01.py +107 -0
- ng_bot_api/types/telegram_passport_01.py +120 -0
- ng_bot_api/types/telegram_passport_02.py +113 -0
- ng_bot_api/types/telegram_passport_03.py +24 -0
- ng_bot_api/types/unions_01.py +140 -0
- ng_bot_api/types/unions_02.py +132 -0
- ng_bot_api/types/unions_03.py +134 -0
- ng_bot_api/types/unions_04.py +149 -0
- ng_bot_api/types/unions_05.py +96 -0
- ng_bot_api/webhook.py +78 -0
- ng_bot_api-0.1.0.dist-info/METADATA +179 -0
- ng_bot_api-0.1.0.dist-info/RECORD +193 -0
- ng_bot_api-0.1.0.dist-info/WHEEL +4 -0
- ng_bot_api-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
5
|
+
|
|
6
|
+
from ..core.base import BotObject
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .available_types_04 import MessageEntity
|
|
10
|
+
from .available_types_21 import InlineKeyboardMarkup
|
|
11
|
+
from .unions_05 import InputMessageContent
|
|
12
|
+
|
|
13
|
+
__all__ = ['InlineQueryResultAudio', 'InlineQueryResultVideo', 'InlineQueryResultVoice']
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass(kw_only=True, slots=True)
|
|
17
|
+
class InlineQueryResultVideo(BotObject):
|
|
18
|
+
"""Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
|
|
19
|
+
|
|
20
|
+
If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.
|
|
21
|
+
|
|
22
|
+
https://core.telegram.org/bots/api#inlinequeryresultvideo
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
type: str = 'video'
|
|
26
|
+
"""Type of the result, must be video"""
|
|
27
|
+
id: str
|
|
28
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
29
|
+
video_url: str
|
|
30
|
+
"""A valid URL for the embedded video player or video file"""
|
|
31
|
+
mime_type: str
|
|
32
|
+
"""MIME type of the content of the video URL, “text/html” or “video/mp4”"""
|
|
33
|
+
thumbnail_url: str
|
|
34
|
+
"""URL of the thumbnail (JPEG only) for the video"""
|
|
35
|
+
title: str
|
|
36
|
+
"""Title for the result"""
|
|
37
|
+
caption: str | None = None
|
|
38
|
+
"""Optional. Caption of the video to be sent, 0-1024 characters after entities parsing"""
|
|
39
|
+
parse_mode: str | None = None
|
|
40
|
+
"""Optional. Mode for parsing entities in the video caption. See formatting options for more details."""
|
|
41
|
+
caption_entities: list[MessageEntity] | None = None
|
|
42
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
43
|
+
show_caption_above_media: bool | None = None
|
|
44
|
+
"""Optional. Pass True if the caption must be shown above the message media"""
|
|
45
|
+
video_width: int | None = None
|
|
46
|
+
"""Optional. Video width"""
|
|
47
|
+
video_height: int | None = None
|
|
48
|
+
"""Optional. Video height"""
|
|
49
|
+
video_duration: int | None = None
|
|
50
|
+
"""Optional. Video duration in seconds"""
|
|
51
|
+
description: str | None = None
|
|
52
|
+
"""Optional. Short description of the result"""
|
|
53
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
54
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
55
|
+
input_message_content: InputMessageContent | None = None
|
|
56
|
+
"""Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML page as a result (e.g., a YouTube video)."""
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@dataclass(kw_only=True, slots=True)
|
|
60
|
+
class InlineQueryResultAudio(BotObject):
|
|
61
|
+
"""Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
|
|
62
|
+
|
|
63
|
+
https://core.telegram.org/bots/api#inlinequeryresultaudio
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
type: str = 'audio'
|
|
67
|
+
"""Type of the result, must be audio"""
|
|
68
|
+
id: str
|
|
69
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
70
|
+
audio_url: str
|
|
71
|
+
"""A valid URL for the audio file"""
|
|
72
|
+
title: str
|
|
73
|
+
"""Title"""
|
|
74
|
+
caption: str | None = None
|
|
75
|
+
"""Optional. Caption, 0-1024 characters after entities parsing"""
|
|
76
|
+
parse_mode: str | None = None
|
|
77
|
+
"""Optional. Mode for parsing entities in the audio caption. See formatting options for more details."""
|
|
78
|
+
caption_entities: list[MessageEntity] | None = None
|
|
79
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
80
|
+
performer: str | None = None
|
|
81
|
+
"""Optional. Performer"""
|
|
82
|
+
audio_duration: int | None = None
|
|
83
|
+
"""Optional. Audio duration in seconds"""
|
|
84
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
85
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
86
|
+
input_message_content: InputMessageContent | None = None
|
|
87
|
+
"""Optional. Content of the message to be sent instead of the audio"""
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
@dataclass(kw_only=True, slots=True)
|
|
91
|
+
class InlineQueryResultVoice(BotObject):
|
|
92
|
+
"""Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
|
|
93
|
+
|
|
94
|
+
https://core.telegram.org/bots/api#inlinequeryresultvoice
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
type: str = 'voice'
|
|
98
|
+
"""Type of the result, must be voice"""
|
|
99
|
+
id: str
|
|
100
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
101
|
+
voice_url: str
|
|
102
|
+
"""A valid URL for the voice recording"""
|
|
103
|
+
title: str
|
|
104
|
+
"""Recording title"""
|
|
105
|
+
caption: str | None = None
|
|
106
|
+
"""Optional. Caption, 0-1024 characters after entities parsing"""
|
|
107
|
+
parse_mode: str | None = None
|
|
108
|
+
"""Optional. Mode for parsing entities in the voice message caption. See formatting options for more details."""
|
|
109
|
+
caption_entities: list[MessageEntity] | None = None
|
|
110
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
111
|
+
voice_duration: int | None = None
|
|
112
|
+
"""Optional. Recording duration in seconds"""
|
|
113
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
114
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
115
|
+
input_message_content: InputMessageContent | None = None
|
|
116
|
+
"""Optional. Content of the message to be sent instead of the voice recording"""
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
5
|
+
|
|
6
|
+
from ..core.base import BotObject
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .available_types_04 import MessageEntity
|
|
10
|
+
from .available_types_21 import InlineKeyboardMarkup
|
|
11
|
+
from .unions_05 import InputMessageContent
|
|
12
|
+
|
|
13
|
+
__all__ = ['InlineQueryResultDocument', 'InlineQueryResultLocation', 'InlineQueryResultVenue']
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass(kw_only=True, slots=True)
|
|
17
|
+
class InlineQueryResultDocument(BotObject):
|
|
18
|
+
"""Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
|
|
19
|
+
|
|
20
|
+
https://core.telegram.org/bots/api#inlinequeryresultdocument
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
type: str = 'document'
|
|
24
|
+
"""Type of the result, must be document"""
|
|
25
|
+
id: str
|
|
26
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
27
|
+
title: str
|
|
28
|
+
"""Title for the result"""
|
|
29
|
+
caption: str | None = None
|
|
30
|
+
"""Optional. Caption of the document to be sent, 0-1024 characters after entities parsing"""
|
|
31
|
+
parse_mode: str | None = None
|
|
32
|
+
"""Optional. Mode for parsing entities in the document caption. See formatting options for more details."""
|
|
33
|
+
caption_entities: list[MessageEntity] | None = None
|
|
34
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
35
|
+
document_url: str
|
|
36
|
+
"""A valid URL for the file"""
|
|
37
|
+
mime_type: str
|
|
38
|
+
"""MIME type of the content of the file, either “application/pdf” or “application/zip”"""
|
|
39
|
+
description: str | None = None
|
|
40
|
+
"""Optional. Short description of the result"""
|
|
41
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
42
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
43
|
+
input_message_content: InputMessageContent | None = None
|
|
44
|
+
"""Optional. Content of the message to be sent instead of the file"""
|
|
45
|
+
thumbnail_url: str | None = None
|
|
46
|
+
"""Optional. URL of the thumbnail (JPEG only) for the file"""
|
|
47
|
+
thumbnail_width: int | None = None
|
|
48
|
+
"""Optional. Thumbnail width"""
|
|
49
|
+
thumbnail_height: int | None = None
|
|
50
|
+
"""Optional. Thumbnail height"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@dataclass(kw_only=True, slots=True)
|
|
54
|
+
class InlineQueryResultLocation(BotObject):
|
|
55
|
+
"""Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.
|
|
56
|
+
|
|
57
|
+
https://core.telegram.org/bots/api#inlinequeryresultlocation
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
type: str = 'location'
|
|
61
|
+
"""Type of the result, must be location"""
|
|
62
|
+
id: str
|
|
63
|
+
"""Unique identifier for this result, 1-64 Bytes"""
|
|
64
|
+
latitude: float
|
|
65
|
+
"""Location latitude in degrees"""
|
|
66
|
+
longitude: float
|
|
67
|
+
"""Location longitude in degrees"""
|
|
68
|
+
title: str
|
|
69
|
+
"""Location title"""
|
|
70
|
+
horizontal_accuracy: float | None = None
|
|
71
|
+
"""Optional. The radius of uncertainty for the location, measured in meters; 0-1500"""
|
|
72
|
+
live_period: int | None = None
|
|
73
|
+
"""Optional. Period in seconds during which the location can be updated, must be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely"""
|
|
74
|
+
heading: int | None = None
|
|
75
|
+
"""Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified."""
|
|
76
|
+
proximity_alert_radius: int | None = None
|
|
77
|
+
"""Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified."""
|
|
78
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
79
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
80
|
+
input_message_content: InputMessageContent | None = None
|
|
81
|
+
"""Optional. Content of the message to be sent instead of the location"""
|
|
82
|
+
thumbnail_url: str | None = None
|
|
83
|
+
"""Optional. Url of the thumbnail for the result"""
|
|
84
|
+
thumbnail_width: int | None = None
|
|
85
|
+
"""Optional. Thumbnail width"""
|
|
86
|
+
thumbnail_height: int | None = None
|
|
87
|
+
"""Optional. Thumbnail height"""
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
@dataclass(kw_only=True, slots=True)
|
|
91
|
+
class InlineQueryResultVenue(BotObject):
|
|
92
|
+
"""Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.
|
|
93
|
+
|
|
94
|
+
https://core.telegram.org/bots/api#inlinequeryresultvenue
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
type: str = 'venue'
|
|
98
|
+
"""Type of the result, must be venue"""
|
|
99
|
+
id: str
|
|
100
|
+
"""Unique identifier for this result, 1-64 Bytes"""
|
|
101
|
+
latitude: float
|
|
102
|
+
"""Latitude of the venue location in degrees"""
|
|
103
|
+
longitude: float
|
|
104
|
+
"""Longitude of the venue location in degrees"""
|
|
105
|
+
title: str
|
|
106
|
+
"""Title of the venue"""
|
|
107
|
+
address: str
|
|
108
|
+
"""Address of the venue"""
|
|
109
|
+
foursquare_id: str | None = None
|
|
110
|
+
"""Optional. Foursquare identifier of the venue if known"""
|
|
111
|
+
foursquare_type: str | None = None
|
|
112
|
+
"""Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)"""
|
|
113
|
+
google_place_id: str | None = None
|
|
114
|
+
"""Optional. Google Places identifier of the venue"""
|
|
115
|
+
google_place_type: str | None = None
|
|
116
|
+
"""Optional. Google Places type of the venue. (See supported types.)"""
|
|
117
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
118
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
119
|
+
input_message_content: InputMessageContent | None = None
|
|
120
|
+
"""Optional. Content of the message to be sent instead of the venue"""
|
|
121
|
+
thumbnail_url: str | None = None
|
|
122
|
+
"""Optional. Url of the thumbnail for the result"""
|
|
123
|
+
thumbnail_width: int | None = None
|
|
124
|
+
"""Optional. Thumbnail width"""
|
|
125
|
+
thumbnail_height: int | None = None
|
|
126
|
+
"""Optional. Thumbnail height"""
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
5
|
+
|
|
6
|
+
from ..core.base import BotObject
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .available_types_04 import MessageEntity
|
|
10
|
+
from .available_types_21 import InlineKeyboardMarkup
|
|
11
|
+
from .unions_05 import InputMessageContent
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'InlineQueryResultCachedGif', 'InlineQueryResultCachedPhoto', 'InlineQueryResultContact',
|
|
15
|
+
'InlineQueryResultGame',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@dataclass(kw_only=True, slots=True)
|
|
20
|
+
class InlineQueryResultContact(BotObject):
|
|
21
|
+
"""Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.
|
|
22
|
+
|
|
23
|
+
https://core.telegram.org/bots/api#inlinequeryresultcontact
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
type: str = 'contact'
|
|
27
|
+
"""Type of the result, must be contact"""
|
|
28
|
+
id: str
|
|
29
|
+
"""Unique identifier for this result, 1-64 Bytes"""
|
|
30
|
+
phone_number: str
|
|
31
|
+
"""Contact's phone number"""
|
|
32
|
+
first_name: str
|
|
33
|
+
"""Contact's first name"""
|
|
34
|
+
last_name: str | None = None
|
|
35
|
+
"""Optional. Contact's last name"""
|
|
36
|
+
vcard: str | None = None
|
|
37
|
+
"""Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes"""
|
|
38
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
39
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
40
|
+
input_message_content: InputMessageContent | None = None
|
|
41
|
+
"""Optional. Content of the message to be sent instead of the contact"""
|
|
42
|
+
thumbnail_url: str | None = None
|
|
43
|
+
"""Optional. Url of the thumbnail for the result"""
|
|
44
|
+
thumbnail_width: int | None = None
|
|
45
|
+
"""Optional. Thumbnail width"""
|
|
46
|
+
thumbnail_height: int | None = None
|
|
47
|
+
"""Optional. Thumbnail height"""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@dataclass(kw_only=True, slots=True)
|
|
51
|
+
class InlineQueryResultGame(BotObject):
|
|
52
|
+
"""Represents a Game.
|
|
53
|
+
|
|
54
|
+
https://core.telegram.org/bots/api#inlinequeryresultgame
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
type: str = 'game'
|
|
58
|
+
"""Type of the result, must be game"""
|
|
59
|
+
id: str
|
|
60
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
61
|
+
game_short_name: str
|
|
62
|
+
"""Short name of the game"""
|
|
63
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
64
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@dataclass(kw_only=True, slots=True)
|
|
68
|
+
class InlineQueryResultCachedPhoto(BotObject):
|
|
69
|
+
"""Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
|
|
70
|
+
|
|
71
|
+
https://core.telegram.org/bots/api#inlinequeryresultcachedphoto
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
type: str = 'photo'
|
|
75
|
+
"""Type of the result, must be photo"""
|
|
76
|
+
id: str
|
|
77
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
78
|
+
photo_file_id: str
|
|
79
|
+
"""A valid file identifier of the photo"""
|
|
80
|
+
title: str | None = None
|
|
81
|
+
"""Optional. Title for the result"""
|
|
82
|
+
description: str | None = None
|
|
83
|
+
"""Optional. Short description of the result"""
|
|
84
|
+
caption: str | None = None
|
|
85
|
+
"""Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing"""
|
|
86
|
+
parse_mode: str | None = None
|
|
87
|
+
"""Optional. Mode for parsing entities in the photo caption. See formatting options for more details."""
|
|
88
|
+
caption_entities: list[MessageEntity] | None = None
|
|
89
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
90
|
+
show_caption_above_media: bool | None = None
|
|
91
|
+
"""Optional. Pass True if the caption must be shown above the message media"""
|
|
92
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
93
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
94
|
+
input_message_content: InputMessageContent | None = None
|
|
95
|
+
"""Optional. Content of the message to be sent instead of the photo"""
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@dataclass(kw_only=True, slots=True)
|
|
99
|
+
class InlineQueryResultCachedGif(BotObject):
|
|
100
|
+
"""Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
|
|
101
|
+
|
|
102
|
+
https://core.telegram.org/bots/api#inlinequeryresultcachedgif
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
type: str = 'gif'
|
|
106
|
+
"""Type of the result, must be gif"""
|
|
107
|
+
id: str
|
|
108
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
109
|
+
gif_file_id: str
|
|
110
|
+
"""A valid file identifier for the GIF file"""
|
|
111
|
+
title: str | None = None
|
|
112
|
+
"""Optional. Title for the result"""
|
|
113
|
+
caption: str | None = None
|
|
114
|
+
"""Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing"""
|
|
115
|
+
parse_mode: str | None = None
|
|
116
|
+
"""Optional. Mode for parsing entities in the caption. See formatting options for more details."""
|
|
117
|
+
caption_entities: list[MessageEntity] | None = None
|
|
118
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
119
|
+
show_caption_above_media: bool | None = None
|
|
120
|
+
"""Optional. Pass True if the caption must be shown above the message media"""
|
|
121
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
122
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
123
|
+
input_message_content: InputMessageContent | None = None
|
|
124
|
+
"""Optional. Content of the message to be sent instead of the GIF animation"""
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
5
|
+
|
|
6
|
+
from ..core.base import BotObject
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .available_types_04 import MessageEntity
|
|
10
|
+
from .available_types_21 import InlineKeyboardMarkup
|
|
11
|
+
from .unions_05 import InputMessageContent
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'InlineQueryResultCachedDocument', 'InlineQueryResultCachedMpeg4Gif',
|
|
15
|
+
'InlineQueryResultCachedSticker', 'InlineQueryResultCachedVideo',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@dataclass(kw_only=True, slots=True)
|
|
20
|
+
class InlineQueryResultCachedMpeg4Gif(BotObject):
|
|
21
|
+
"""Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
|
|
22
|
+
|
|
23
|
+
https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
type: str = 'mpeg4_gif'
|
|
27
|
+
"""Type of the result, must be mpeg4_gif"""
|
|
28
|
+
id: str
|
|
29
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
30
|
+
mpeg4_file_id: str
|
|
31
|
+
"""A valid file identifier for the MPEG4 file"""
|
|
32
|
+
title: str | None = None
|
|
33
|
+
"""Optional. Title for the result"""
|
|
34
|
+
caption: str | None = None
|
|
35
|
+
"""Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing"""
|
|
36
|
+
parse_mode: str | None = None
|
|
37
|
+
"""Optional. Mode for parsing entities in the caption. See formatting options for more details."""
|
|
38
|
+
caption_entities: list[MessageEntity] | None = None
|
|
39
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
40
|
+
show_caption_above_media: bool | None = None
|
|
41
|
+
"""Optional. Pass True if the caption must be shown above the message media"""
|
|
42
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
43
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
44
|
+
input_message_content: InputMessageContent | None = None
|
|
45
|
+
"""Optional. Content of the message to be sent instead of the video animation"""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@dataclass(kw_only=True, slots=True)
|
|
49
|
+
class InlineQueryResultCachedSticker(BotObject):
|
|
50
|
+
"""Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.
|
|
51
|
+
|
|
52
|
+
https://core.telegram.org/bots/api#inlinequeryresultcachedsticker
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
type: str = 'sticker'
|
|
56
|
+
"""Type of the result, must be sticker"""
|
|
57
|
+
id: str
|
|
58
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
59
|
+
sticker_file_id: str
|
|
60
|
+
"""A valid file identifier of the sticker"""
|
|
61
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
62
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
63
|
+
input_message_content: InputMessageContent | None = None
|
|
64
|
+
"""Optional. Content of the message to be sent instead of the sticker"""
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@dataclass(kw_only=True, slots=True)
|
|
68
|
+
class InlineQueryResultCachedDocument(BotObject):
|
|
69
|
+
"""Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.
|
|
70
|
+
|
|
71
|
+
https://core.telegram.org/bots/api#inlinequeryresultcacheddocument
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
type: str = 'document'
|
|
75
|
+
"""Type of the result, must be document"""
|
|
76
|
+
id: str
|
|
77
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
78
|
+
title: str
|
|
79
|
+
"""Title for the result"""
|
|
80
|
+
document_file_id: str
|
|
81
|
+
"""A valid file identifier for the file"""
|
|
82
|
+
description: str | None = None
|
|
83
|
+
"""Optional. Short description of the result"""
|
|
84
|
+
caption: str | None = None
|
|
85
|
+
"""Optional. Caption of the document to be sent, 0-1024 characters after entities parsing"""
|
|
86
|
+
parse_mode: str | None = None
|
|
87
|
+
"""Optional. Mode for parsing entities in the document caption. See formatting options for more details."""
|
|
88
|
+
caption_entities: list[MessageEntity] | None = None
|
|
89
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
90
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
91
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
92
|
+
input_message_content: InputMessageContent | None = None
|
|
93
|
+
"""Optional. Content of the message to be sent instead of the file"""
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
@dataclass(kw_only=True, slots=True)
|
|
97
|
+
class InlineQueryResultCachedVideo(BotObject):
|
|
98
|
+
"""Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
|
|
99
|
+
|
|
100
|
+
https://core.telegram.org/bots/api#inlinequeryresultcachedvideo
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
type: str = 'video'
|
|
104
|
+
"""Type of the result, must be video"""
|
|
105
|
+
id: str
|
|
106
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
107
|
+
video_file_id: str
|
|
108
|
+
"""A valid file identifier for the video file"""
|
|
109
|
+
title: str
|
|
110
|
+
"""Title for the result"""
|
|
111
|
+
description: str | None = None
|
|
112
|
+
"""Optional. Short description of the result"""
|
|
113
|
+
caption: str | None = None
|
|
114
|
+
"""Optional. Caption of the video to be sent, 0-1024 characters after entities parsing"""
|
|
115
|
+
parse_mode: str | None = None
|
|
116
|
+
"""Optional. Mode for parsing entities in the video caption. See formatting options for more details."""
|
|
117
|
+
caption_entities: list[MessageEntity] | None = None
|
|
118
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
119
|
+
show_caption_above_media: bool | None = None
|
|
120
|
+
"""Optional. Pass True if the caption must be shown above the message media"""
|
|
121
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
122
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
123
|
+
input_message_content: InputMessageContent | None = None
|
|
124
|
+
"""Optional. Content of the message to be sent instead of the video"""
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
5
|
+
|
|
6
|
+
from ..core.base import BotObject
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .available_types_04 import MessageEntity
|
|
10
|
+
from .available_types_19 import LinkPreviewOptions
|
|
11
|
+
from .available_types_21 import InlineKeyboardMarkup
|
|
12
|
+
from .rich_messages_01 import InputRichMessage
|
|
13
|
+
from .unions_05 import InputMessageContent
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
'InlineQueryResultCachedAudio', 'InlineQueryResultCachedVoice',
|
|
17
|
+
'InputLocationMessageContent', 'InputRichMessageContent', 'InputTextMessageContent',
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@dataclass(kw_only=True, slots=True)
|
|
22
|
+
class InlineQueryResultCachedVoice(BotObject):
|
|
23
|
+
"""Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
|
|
24
|
+
|
|
25
|
+
https://core.telegram.org/bots/api#inlinequeryresultcachedvoice
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
type: str = 'voice'
|
|
29
|
+
"""Type of the result, must be voice"""
|
|
30
|
+
id: str
|
|
31
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
32
|
+
voice_file_id: str
|
|
33
|
+
"""A valid file identifier for the voice message"""
|
|
34
|
+
title: str
|
|
35
|
+
"""Voice message title"""
|
|
36
|
+
caption: str | None = None
|
|
37
|
+
"""Optional. Caption, 0-1024 characters after entities parsing"""
|
|
38
|
+
parse_mode: str | None = None
|
|
39
|
+
"""Optional. Mode for parsing entities in the voice message caption. See formatting options for more details."""
|
|
40
|
+
caption_entities: list[MessageEntity] | None = None
|
|
41
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
42
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
43
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
44
|
+
input_message_content: InputMessageContent | None = None
|
|
45
|
+
"""Optional. Content of the message to be sent instead of the voice message"""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@dataclass(kw_only=True, slots=True)
|
|
49
|
+
class InlineQueryResultCachedAudio(BotObject):
|
|
50
|
+
"""Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
|
|
51
|
+
|
|
52
|
+
https://core.telegram.org/bots/api#inlinequeryresultcachedaudio
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
type: str = 'audio'
|
|
56
|
+
"""Type of the result, must be audio"""
|
|
57
|
+
id: str
|
|
58
|
+
"""Unique identifier for this result, 1-64 bytes"""
|
|
59
|
+
audio_file_id: str
|
|
60
|
+
"""A valid file identifier for the audio file"""
|
|
61
|
+
caption: str | None = None
|
|
62
|
+
"""Optional. Caption, 0-1024 characters after entities parsing"""
|
|
63
|
+
parse_mode: str | None = None
|
|
64
|
+
"""Optional. Mode for parsing entities in the audio caption. See formatting options for more details."""
|
|
65
|
+
caption_entities: list[MessageEntity] | None = None
|
|
66
|
+
"""Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode"""
|
|
67
|
+
reply_markup: InlineKeyboardMarkup | None = None
|
|
68
|
+
"""Optional. Inline keyboard attached to the message"""
|
|
69
|
+
input_message_content: InputMessageContent | None = None
|
|
70
|
+
"""Optional. Content of the message to be sent instead of the audio"""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@dataclass(kw_only=True, slots=True)
|
|
74
|
+
class InputTextMessageContent(BotObject):
|
|
75
|
+
"""Represents the content of a text message to be sent as the result of an inline query.
|
|
76
|
+
|
|
77
|
+
https://core.telegram.org/bots/api#inputtextmessagecontent
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
message_text: str
|
|
81
|
+
"""Text of the message to be sent, 1-4096 characters"""
|
|
82
|
+
parse_mode: str | None = None
|
|
83
|
+
"""Optional. Mode for parsing entities in the message text. See formatting options for more details."""
|
|
84
|
+
entities: list[MessageEntity] | None = None
|
|
85
|
+
"""Optional. List of special entities that appear in message text, which can be specified instead of parse_mode"""
|
|
86
|
+
link_preview_options: LinkPreviewOptions | None = None
|
|
87
|
+
"""Optional. Link preview generation options for the message"""
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
@dataclass(kw_only=True, slots=True)
|
|
91
|
+
class InputRichMessageContent(BotObject):
|
|
92
|
+
"""Represents the content of a rich message to be sent as the result of an inline query.
|
|
93
|
+
|
|
94
|
+
https://core.telegram.org/bots/api#inputrichmessagecontent
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
rich_message: InputRichMessage
|
|
98
|
+
"""The message to be sent. Only previously uploaded files may be used in the message."""
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
@dataclass(kw_only=True, slots=True)
|
|
102
|
+
class InputLocationMessageContent(BotObject):
|
|
103
|
+
"""Represents the content of a location message to be sent as the result of an inline query.
|
|
104
|
+
|
|
105
|
+
https://core.telegram.org/bots/api#inputlocationmessagecontent
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
latitude: float
|
|
109
|
+
"""Latitude of the location in degrees"""
|
|
110
|
+
longitude: float
|
|
111
|
+
"""Longitude of the location in degrees"""
|
|
112
|
+
horizontal_accuracy: float | None = None
|
|
113
|
+
"""Optional. The radius of uncertainty for the location, measured in meters; 0-1500"""
|
|
114
|
+
live_period: int | None = None
|
|
115
|
+
"""Optional. Period in seconds during which the location can be updated, must be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely"""
|
|
116
|
+
heading: int | None = None
|
|
117
|
+
"""Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified."""
|
|
118
|
+
proximity_alert_radius: int | None = None
|
|
119
|
+
"""Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified."""
|