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,126 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ..core.caller import AsyncCaller
|
|
4
|
+
from ..types import InlineKeyboardMarkup, InputChecklist, Message
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AsyncMethods32(AsyncCaller):
|
|
8
|
+
__slots__ = ()
|
|
9
|
+
|
|
10
|
+
async def edit_message_live_location(
|
|
11
|
+
self,
|
|
12
|
+
latitude: float,
|
|
13
|
+
longitude: float,
|
|
14
|
+
*,
|
|
15
|
+
business_connection_id: str | None = None,
|
|
16
|
+
chat_id: int | str | None = None,
|
|
17
|
+
message_id: int | None = None,
|
|
18
|
+
inline_message_id: str | None = None,
|
|
19
|
+
live_period: int | None = None,
|
|
20
|
+
horizontal_accuracy: float | None = None,
|
|
21
|
+
heading: int | None = None,
|
|
22
|
+
proximity_alert_radius: int | None = None,
|
|
23
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
24
|
+
) -> Message | bool:
|
|
25
|
+
"""Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned; otherwise, True is returned.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
business_connection_id: Unique identifier of the business connection on behalf of which the message to be edited was sent
|
|
29
|
+
chat_id: Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username.
|
|
30
|
+
message_id: Required if inline_message_id is not specified. Identifier of the message to edit.
|
|
31
|
+
inline_message_id: Required if chat_id and message_id are not specified. Identifier of the inline message.
|
|
32
|
+
latitude: Latitude of new location
|
|
33
|
+
longitude: Longitude of new location
|
|
34
|
+
live_period: New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged.
|
|
35
|
+
horizontal_accuracy: The radius of uncertainty for the location, measured in meters; 0-1500
|
|
36
|
+
heading: Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
|
|
37
|
+
proximity_alert_radius: The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
|
|
38
|
+
reply_markup: A JSON-serialized object for a new inline keyboard
|
|
39
|
+
|
|
40
|
+
https://core.telegram.org/bots/api#editmessagelivelocation
|
|
41
|
+
"""
|
|
42
|
+
return await self._call('editMessageLiveLocation', locals(), 'Message|bool')
|
|
43
|
+
|
|
44
|
+
async def stop_message_live_location(
|
|
45
|
+
self,
|
|
46
|
+
*,
|
|
47
|
+
business_connection_id: str | None = None,
|
|
48
|
+
chat_id: int | str | None = None,
|
|
49
|
+
message_id: int | None = None,
|
|
50
|
+
inline_message_id: str | None = None,
|
|
51
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
52
|
+
) -> Message | bool:
|
|
53
|
+
"""Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned; otherwise, True is returned.
|
|
54
|
+
|
|
55
|
+
Args:
|
|
56
|
+
business_connection_id: Unique identifier of the business connection on behalf of which the message to be edited was sent
|
|
57
|
+
chat_id: Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username.
|
|
58
|
+
message_id: Required if inline_message_id is not specified. Identifier of the message with live location to stop.
|
|
59
|
+
inline_message_id: Required if chat_id and message_id are not specified. Identifier of the inline message.
|
|
60
|
+
reply_markup: A JSON-serialized object for a new inline keyboard
|
|
61
|
+
|
|
62
|
+
https://core.telegram.org/bots/api#stopmessagelivelocation
|
|
63
|
+
"""
|
|
64
|
+
return await self._call('stopMessageLiveLocation', locals(), 'Message|bool')
|
|
65
|
+
|
|
66
|
+
async def edit_message_checklist(
|
|
67
|
+
self,
|
|
68
|
+
business_connection_id: str,
|
|
69
|
+
chat_id: int | str,
|
|
70
|
+
message_id: int,
|
|
71
|
+
checklist: InputChecklist,
|
|
72
|
+
*,
|
|
73
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
74
|
+
) -> Message:
|
|
75
|
+
"""Use this method to edit a checklist on behalf of a connected business account. On success, the edited Message is returned.
|
|
76
|
+
|
|
77
|
+
Args:
|
|
78
|
+
business_connection_id: Unique identifier of the business connection on behalf of which the message to be edited was sent
|
|
79
|
+
chat_id: Unique identifier for the target chat or username of the target bot in the format @username
|
|
80
|
+
message_id: Unique identifier for the target message
|
|
81
|
+
checklist: A JSON-serialized object for the new checklist
|
|
82
|
+
reply_markup: A JSON-serialized object for the new inline keyboard for the message
|
|
83
|
+
|
|
84
|
+
https://core.telegram.org/bots/api#editmessagechecklist
|
|
85
|
+
"""
|
|
86
|
+
return await self._call('editMessageChecklist', locals(), 'Message')
|
|
87
|
+
|
|
88
|
+
async def edit_message_widget_data(
|
|
89
|
+
self,
|
|
90
|
+
*,
|
|
91
|
+
chat_id: int | str | None = None,
|
|
92
|
+
message_id: int | None = None,
|
|
93
|
+
inline_message_id: str | None = None,
|
|
94
|
+
public_data: str | None = None,
|
|
95
|
+
chat_data: str | None = None,
|
|
96
|
+
) -> bool:
|
|
97
|
+
"""Use this method to edit data of a widget in a message sent by the bot or via the bot (for inline bots). Public data of a shared widget can be changed at most once per second. On success, True is returned.
|
|
98
|
+
|
|
99
|
+
Args:
|
|
100
|
+
chat_id: Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target supergroup in the format @username.
|
|
101
|
+
message_id: Required if inline_message_id is not specified. Identifier of the message with the widget.
|
|
102
|
+
inline_message_id: Required if chat_id and message_id are not specified. Identifier of the inline message.
|
|
103
|
+
public_data: New public data of the widget, 0-1024 bytes; pass an empty string to remove the public data. If omitted, then the public data isn't changed.
|
|
104
|
+
chat_data: New data of the widget, which is specific to the message, 0-1024 bytes; pass an empty string to remove the data. If omitted, then the data isn't changed.
|
|
105
|
+
|
|
106
|
+
https://core.telegram.org/bots/api#editmessagewidgetdata
|
|
107
|
+
"""
|
|
108
|
+
return await self._call('editMessageWidgetData', locals(), 'bool')
|
|
109
|
+
|
|
110
|
+
async def edit_shared_widget_data(
|
|
111
|
+
self,
|
|
112
|
+
widget_id: str,
|
|
113
|
+
public_data: str,
|
|
114
|
+
*,
|
|
115
|
+
cache_time: int | None = None,
|
|
116
|
+
) -> bool:
|
|
117
|
+
"""Use this method to edit public data of a shared widget created by the bot. A shared widget can be edited at most once per second. On success, True is returned.
|
|
118
|
+
|
|
119
|
+
Args:
|
|
120
|
+
widget_id: Unique identifier of the shared widget
|
|
121
|
+
public_data: New public data of the widget, 0-1024 bytes; pass an empty string to remove the public data
|
|
122
|
+
cache_time: The maximum amount of time in seconds that the public data of the widget may be cached client-side; 5-3600. If omitted, then the current value is kept, which is 30 by default.
|
|
123
|
+
|
|
124
|
+
https://core.telegram.org/bots/api#editsharedwidgetdata
|
|
125
|
+
"""
|
|
126
|
+
return await self._call('editSharedWidgetData', locals(), 'bool')
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ..core.caller import AsyncCaller
|
|
4
|
+
from ..types import (
|
|
5
|
+
InlineKeyboardMarkup, InputMedia, InputRichMessage, LinkPreviewOptions, Message,
|
|
6
|
+
MessageEntity, Poll,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AsyncMethods33(AsyncCaller):
|
|
11
|
+
__slots__ = ()
|
|
12
|
+
|
|
13
|
+
async def edit_message_reply_markup(
|
|
14
|
+
self,
|
|
15
|
+
*,
|
|
16
|
+
business_connection_id: str | None = None,
|
|
17
|
+
chat_id: int | str | None = None,
|
|
18
|
+
message_id: int | None = None,
|
|
19
|
+
inline_message_id: str | None = None,
|
|
20
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
21
|
+
) -> Message | bool:
|
|
22
|
+
"""Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned; otherwise, True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
|
|
23
|
+
|
|
24
|
+
Args:
|
|
25
|
+
business_connection_id: Unique identifier of the business connection on behalf of which the message to be edited was sent
|
|
26
|
+
chat_id: Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username.
|
|
27
|
+
message_id: Required if inline_message_id is not specified. Identifier of the message to edit.
|
|
28
|
+
inline_message_id: Required if chat_id and message_id are not specified. Identifier of the inline message.
|
|
29
|
+
reply_markup: A JSON-serialized object for an inline keyboard
|
|
30
|
+
|
|
31
|
+
https://core.telegram.org/bots/api#editmessagereplymarkup
|
|
32
|
+
"""
|
|
33
|
+
return await self._call('editMessageReplyMarkup', locals(), 'Message|bool')
|
|
34
|
+
|
|
35
|
+
async def stop_poll(
|
|
36
|
+
self,
|
|
37
|
+
chat_id: int | str,
|
|
38
|
+
message_id: int,
|
|
39
|
+
*,
|
|
40
|
+
business_connection_id: str | None = None,
|
|
41
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
42
|
+
) -> Poll:
|
|
43
|
+
"""Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
business_connection_id: Unique identifier of the business connection on behalf of which the message to be edited was sent
|
|
47
|
+
chat_id: Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username
|
|
48
|
+
message_id: Identifier of the original message with the poll
|
|
49
|
+
reply_markup: A JSON-serialized object for a new message inline keyboard
|
|
50
|
+
|
|
51
|
+
https://core.telegram.org/bots/api#stoppoll
|
|
52
|
+
"""
|
|
53
|
+
return await self._call('stopPoll', locals(), 'Poll')
|
|
54
|
+
|
|
55
|
+
async def edit_ephemeral_message_text(
|
|
56
|
+
self,
|
|
57
|
+
chat_id: int | str,
|
|
58
|
+
receiver_user_id: int,
|
|
59
|
+
ephemeral_message_id: int,
|
|
60
|
+
*,
|
|
61
|
+
text: str | None = None,
|
|
62
|
+
parse_mode: str | None = None,
|
|
63
|
+
entities: list[MessageEntity] | None = None,
|
|
64
|
+
rich_message: InputRichMessage | None = None,
|
|
65
|
+
link_preview_options: LinkPreviewOptions | None = None,
|
|
66
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
67
|
+
) -> bool:
|
|
68
|
+
"""Use this method to edit an ephemeral text or rich message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.
|
|
69
|
+
|
|
70
|
+
Args:
|
|
71
|
+
chat_id: Unique identifier for the target chat or username of the target supergroup in the format @username
|
|
72
|
+
receiver_user_id: Identifier of the user who received the message
|
|
73
|
+
ephemeral_message_id: Identifier of the ephemeral message to edit
|
|
74
|
+
text: New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't specified
|
|
75
|
+
parse_mode: Mode for parsing entities in the message text. See formatting options for more details.
|
|
76
|
+
entities: A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode
|
|
77
|
+
rich_message: New rich content of the message; required if text isn't specified
|
|
78
|
+
link_preview_options: Link preview generation options for the message
|
|
79
|
+
reply_markup: A JSON-serialized object for an inline keyboard
|
|
80
|
+
|
|
81
|
+
https://core.telegram.org/bots/api#editephemeralmessagetext
|
|
82
|
+
"""
|
|
83
|
+
return await self._call('editEphemeralMessageText', locals(), 'bool')
|
|
84
|
+
|
|
85
|
+
async def edit_ephemeral_message_media(
|
|
86
|
+
self,
|
|
87
|
+
chat_id: int | str,
|
|
88
|
+
receiver_user_id: int,
|
|
89
|
+
ephemeral_message_id: int,
|
|
90
|
+
media: InputMedia,
|
|
91
|
+
*,
|
|
92
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
93
|
+
) -> bool:
|
|
94
|
+
"""Use this method to edit the media of an ephemeral message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.
|
|
95
|
+
|
|
96
|
+
Args:
|
|
97
|
+
chat_id: Unique identifier for the target chat or username of the target supergroup in the format @username
|
|
98
|
+
receiver_user_id: Identifier of the user who received the message
|
|
99
|
+
ephemeral_message_id: Identifier of the ephemeral message to edit
|
|
100
|
+
media: A JSON-serialized object for the new media content of the message
|
|
101
|
+
reply_markup: A JSON-serialized object for an inline keyboard
|
|
102
|
+
|
|
103
|
+
https://core.telegram.org/bots/api#editephemeralmessagemedia
|
|
104
|
+
"""
|
|
105
|
+
return await self._call('editEphemeralMessageMedia', locals(), 'bool')
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ..core.caller import AsyncCaller
|
|
4
|
+
from ..types import InlineKeyboardMarkup, MessageEntity
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AsyncMethods34(AsyncCaller):
|
|
8
|
+
__slots__ = ()
|
|
9
|
+
|
|
10
|
+
async def edit_ephemeral_message_caption(
|
|
11
|
+
self,
|
|
12
|
+
chat_id: int | str,
|
|
13
|
+
receiver_user_id: int,
|
|
14
|
+
ephemeral_message_id: int,
|
|
15
|
+
*,
|
|
16
|
+
caption: str | None = None,
|
|
17
|
+
parse_mode: str | None = None,
|
|
18
|
+
caption_entities: list[MessageEntity] | None = None,
|
|
19
|
+
show_caption_above_media: bool | None = None,
|
|
20
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
21
|
+
) -> bool:
|
|
22
|
+
"""Use this method to edit the caption of an ephemeral message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.
|
|
23
|
+
|
|
24
|
+
Args:
|
|
25
|
+
chat_id: Unique identifier for the target chat or username of the target supergroup in the format @username
|
|
26
|
+
receiver_user_id: Identifier of the user who received the message
|
|
27
|
+
ephemeral_message_id: Identifier of the ephemeral message to edit
|
|
28
|
+
caption: New caption of the message, 0-1024 characters after entities parsing
|
|
29
|
+
parse_mode: Mode for parsing entities in the message caption. See formatting options for more details.
|
|
30
|
+
caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
|
|
31
|
+
show_caption_above_media: Pass True if the caption must be shown above the message media. Supported only for animation, live photo, photo and video messages.
|
|
32
|
+
reply_markup: A JSON-serialized object for an inline keyboard
|
|
33
|
+
|
|
34
|
+
https://core.telegram.org/bots/api#editephemeralmessagecaption
|
|
35
|
+
"""
|
|
36
|
+
return await self._call('editEphemeralMessageCaption', locals(), 'bool')
|
|
37
|
+
|
|
38
|
+
async def edit_ephemeral_message_reply_markup(
|
|
39
|
+
self,
|
|
40
|
+
chat_id: int | str,
|
|
41
|
+
receiver_user_id: int,
|
|
42
|
+
ephemeral_message_id: int,
|
|
43
|
+
*,
|
|
44
|
+
reply_markup: InlineKeyboardMarkup | None = None,
|
|
45
|
+
) -> bool:
|
|
46
|
+
"""Use this method to edit only the reply markup of an ephemeral message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.
|
|
47
|
+
|
|
48
|
+
Args:
|
|
49
|
+
chat_id: Unique identifier for the target chat or username of the target supergroup in the format @username
|
|
50
|
+
receiver_user_id: Identifier of the user who received the message
|
|
51
|
+
ephemeral_message_id: Identifier of the ephemeral message to edit
|
|
52
|
+
reply_markup: A JSON-serialized object for an inline keyboard
|
|
53
|
+
|
|
54
|
+
https://core.telegram.org/bots/api#editephemeralmessagereplymarkup
|
|
55
|
+
"""
|
|
56
|
+
return await self._call('editEphemeralMessageReplyMarkup', locals(), 'bool')
|
|
57
|
+
|
|
58
|
+
async def approve_suggested_post(
|
|
59
|
+
self,
|
|
60
|
+
chat_id: int,
|
|
61
|
+
message_id: int,
|
|
62
|
+
*,
|
|
63
|
+
send_date: int | None = None,
|
|
64
|
+
) -> bool:
|
|
65
|
+
"""Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_post_messages' administrator right in the corresponding channel chat. Returns True on success.
|
|
66
|
+
|
|
67
|
+
Args:
|
|
68
|
+
chat_id: Unique identifier for the target direct messages chat
|
|
69
|
+
message_id: Identifier of a suggested post message to approve
|
|
70
|
+
send_date: Point in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created. If specified, then the date must not be more than 2678400 seconds (30 days) in the future.
|
|
71
|
+
|
|
72
|
+
https://core.telegram.org/bots/api#approvesuggestedpost
|
|
73
|
+
"""
|
|
74
|
+
return await self._call('approveSuggestedPost', locals(), 'bool')
|
|
75
|
+
|
|
76
|
+
async def decline_suggested_post(
|
|
77
|
+
self,
|
|
78
|
+
chat_id: int,
|
|
79
|
+
message_id: int,
|
|
80
|
+
*,
|
|
81
|
+
comment: str | None = None,
|
|
82
|
+
) -> bool:
|
|
83
|
+
"""Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat. Returns True on success.
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
chat_id: Unique identifier for the target direct messages chat
|
|
87
|
+
message_id: Identifier of a suggested post message to decline
|
|
88
|
+
comment: Comment for the creator of the suggested post; 0-128 characters
|
|
89
|
+
|
|
90
|
+
https://core.telegram.org/bots/api#declinesuggestedpost
|
|
91
|
+
"""
|
|
92
|
+
return await self._call('declineSuggestedPost', locals(), 'bool')
|
|
93
|
+
|
|
94
|
+
async def delete_message(
|
|
95
|
+
self,
|
|
96
|
+
chat_id: int | str,
|
|
97
|
+
message_id: int,
|
|
98
|
+
) -> bool:
|
|
99
|
+
"""Use this method to delete a message, including service messages, with the following limitations:
|
|
100
|
+
- A message can only be deleted if it was sent less than 48 hours ago.
|
|
101
|
+
- Service messages about a supergroup, channel, or forum topic creation can't be deleted.
|
|
102
|
+
- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
|
|
103
|
+
- Bots can delete outgoing messages in private chats, groups, and supergroups.
|
|
104
|
+
- Bots can delete incoming messages in private chats.
|
|
105
|
+
- Bots granted can_post_messages permissions can delete outgoing messages in channels.
|
|
106
|
+
- If the bot is an administrator of a group, it can delete any message there.
|
|
107
|
+
- If the bot has the can_delete_messages administrator right in a supergroup or a channel, it can delete any message there.
|
|
108
|
+
- If the bot has the can_manage_direct_messages administrator right in a channel, it can delete any message in the corresponding direct messages chat.
|
|
109
|
+
Returns True on success.
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
chat_id: Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username
|
|
113
|
+
message_id: Identifier of the message to delete
|
|
114
|
+
|
|
115
|
+
https://core.telegram.org/bots/api#deletemessage
|
|
116
|
+
"""
|
|
117
|
+
return await self._call('deleteMessage', locals(), 'bool')
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ..core.caller import AsyncCaller
|
|
4
|
+
from ..core.input_file import InputFile
|
|
5
|
+
from ..types import (
|
|
6
|
+
EphemeralMessageParameters, ForceReply, InlineKeyboardMarkup, Message, ReplyKeyboardMarkup,
|
|
7
|
+
ReplyKeyboardRemove, ReplyParameters, SuggestedPostParameters,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AsyncMethods35(AsyncCaller):
|
|
12
|
+
__slots__ = ()
|
|
13
|
+
|
|
14
|
+
async def delete_messages(
|
|
15
|
+
self,
|
|
16
|
+
chat_id: int | str,
|
|
17
|
+
message_ids: list[int],
|
|
18
|
+
) -> bool:
|
|
19
|
+
"""Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns True on success.
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
chat_id: Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username
|
|
23
|
+
message_ids: A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted.
|
|
24
|
+
|
|
25
|
+
https://core.telegram.org/bots/api#deletemessages
|
|
26
|
+
"""
|
|
27
|
+
return await self._call('deleteMessages', locals(), 'bool')
|
|
28
|
+
|
|
29
|
+
async def delete_ephemeral_message(
|
|
30
|
+
self,
|
|
31
|
+
chat_id: int | str,
|
|
32
|
+
receiver_user_id: int,
|
|
33
|
+
ephemeral_message_id: int,
|
|
34
|
+
) -> bool:
|
|
35
|
+
"""Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will receive the message deletion event, especially if they are offline. Returns True on success.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
chat_id: Unique identifier for the target chat or username of the target supergroup in the format @username
|
|
39
|
+
receiver_user_id: Identifier of the user who received the message
|
|
40
|
+
ephemeral_message_id: Identifier of the ephemeral message to delete
|
|
41
|
+
|
|
42
|
+
https://core.telegram.org/bots/api#deleteephemeralmessage
|
|
43
|
+
"""
|
|
44
|
+
return await self._call('deleteEphemeralMessage', locals(), 'bool')
|
|
45
|
+
|
|
46
|
+
async def delete_message_reaction(
|
|
47
|
+
self,
|
|
48
|
+
chat_id: int | str,
|
|
49
|
+
message_id: int,
|
|
50
|
+
*,
|
|
51
|
+
user_id: int | None = None,
|
|
52
|
+
actor_chat_id: int | None = None,
|
|
53
|
+
) -> bool:
|
|
54
|
+
"""Use this method to remove a reaction from a message in a group or a supergroup chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns True on success.
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
chat_id: Unique identifier for the target chat or username of the target supergroup in the format @username
|
|
58
|
+
message_id: Identifier of the target message
|
|
59
|
+
user_id: Identifier of the user whose reaction will be removed, if the reaction was added by a user
|
|
60
|
+
actor_chat_id: Identifier of the chat whose reaction will be removed, if the reaction was added by a chat
|
|
61
|
+
|
|
62
|
+
https://core.telegram.org/bots/api#deletemessagereaction
|
|
63
|
+
"""
|
|
64
|
+
return await self._call('deleteMessageReaction', locals(), 'bool')
|
|
65
|
+
|
|
66
|
+
async def delete_all_message_reactions(
|
|
67
|
+
self,
|
|
68
|
+
chat_id: int | str,
|
|
69
|
+
*,
|
|
70
|
+
user_id: int | None = None,
|
|
71
|
+
actor_chat_id: int | None = None,
|
|
72
|
+
) -> bool:
|
|
73
|
+
"""Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns True on success.
|
|
74
|
+
|
|
75
|
+
Args:
|
|
76
|
+
chat_id: Unique identifier for the target chat or username of the target supergroup in the format @username
|
|
77
|
+
user_id: Identifier of the user whose reactions will be removed, if the reactions were added by a user
|
|
78
|
+
actor_chat_id: Identifier of the chat whose reactions will be removed, if the reactions were added by a chat
|
|
79
|
+
|
|
80
|
+
https://core.telegram.org/bots/api#deleteallmessagereactions
|
|
81
|
+
"""
|
|
82
|
+
return await self._call('deleteAllMessageReactions', locals(), 'bool')
|
|
83
|
+
|
|
84
|
+
async def send_sticker(
|
|
85
|
+
self,
|
|
86
|
+
chat_id: int | str | None,
|
|
87
|
+
sticker: InputFile | str,
|
|
88
|
+
*,
|
|
89
|
+
business_connection_id: str | None = None,
|
|
90
|
+
message_thread_id: int | None = None,
|
|
91
|
+
direct_messages_topic_id: int | None = None,
|
|
92
|
+
ephemeral_message_parameters: EphemeralMessageParameters | None = None,
|
|
93
|
+
emoji: str | None = None,
|
|
94
|
+
disable_notification: bool | None = None,
|
|
95
|
+
protect_content: bool | None = None,
|
|
96
|
+
allow_paid_broadcast: bool | None = None,
|
|
97
|
+
message_effect_id: str | None = None,
|
|
98
|
+
suggested_post_parameters: SuggestedPostParameters | None = None,
|
|
99
|
+
reply_parameters: ReplyParameters | None = None,
|
|
100
|
+
reply_markup: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply | None = None,
|
|
101
|
+
) -> Message:
|
|
102
|
+
"""Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
business_connection_id: Unique identifier of the business connection on behalf of which the message will be sent
|
|
106
|
+
chat_id: Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username; required unless the message is sent as an ephemeral reply to a callback query
|
|
107
|
+
message_thread_id: Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
|
|
108
|
+
direct_messages_topic_id: Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
|
|
109
|
+
ephemeral_message_parameters: A JSON-serialized object containing the parameters of the ephemeral message to send
|
|
110
|
+
sticker: Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. More information on Sending Files ». Video and animated stickers can't be sent via an HTTP URL.
|
|
111
|
+
emoji: Emoji associated with the sticker; only for just uploaded stickers
|
|
112
|
+
disable_notification: Sends the message silently. Users will receive a notification with no sound.
|
|
113
|
+
protect_content: Protects the contents of the sent message from forwarding and saving
|
|
114
|
+
allow_paid_broadcast: Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.
|
|
115
|
+
message_effect_id: Unique identifier of the message effect to be added to the message; for private chats only
|
|
116
|
+
suggested_post_parameters: A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
|
|
117
|
+
reply_parameters: Description of the message to reply to
|
|
118
|
+
reply_markup: Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user.
|
|
119
|
+
|
|
120
|
+
https://core.telegram.org/bots/api#sendsticker
|
|
121
|
+
"""
|
|
122
|
+
return await self._call('sendSticker', locals(), 'Message')
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ..core.caller import AsyncCaller
|
|
4
|
+
from ..core.input_file import InputFile
|
|
5
|
+
from ..types import File, InputSticker, Sticker, StickerSet
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AsyncMethods36(AsyncCaller):
|
|
9
|
+
__slots__ = ()
|
|
10
|
+
|
|
11
|
+
async def get_sticker_set(
|
|
12
|
+
self,
|
|
13
|
+
name: str,
|
|
14
|
+
) -> StickerSet:
|
|
15
|
+
"""Use this method to get a sticker set. On success, a StickerSet object is returned.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
name: Name of the sticker set
|
|
19
|
+
|
|
20
|
+
https://core.telegram.org/bots/api#getstickerset
|
|
21
|
+
"""
|
|
22
|
+
return await self._call('getStickerSet', locals(), 'StickerSet')
|
|
23
|
+
|
|
24
|
+
async def get_custom_emoji_stickers(
|
|
25
|
+
self,
|
|
26
|
+
custom_emoji_ids: list[str],
|
|
27
|
+
) -> list[Sticker]:
|
|
28
|
+
"""Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects.
|
|
29
|
+
|
|
30
|
+
Args:
|
|
31
|
+
custom_emoji_ids: A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be specified.
|
|
32
|
+
|
|
33
|
+
https://core.telegram.org/bots/api#getcustomemojistickers
|
|
34
|
+
"""
|
|
35
|
+
return await self._call('getCustomEmojiStickers', locals(), 'list[Sticker]')
|
|
36
|
+
|
|
37
|
+
async def upload_sticker_file(
|
|
38
|
+
self,
|
|
39
|
+
user_id: int,
|
|
40
|
+
sticker: InputFile,
|
|
41
|
+
sticker_format: str,
|
|
42
|
+
) -> File:
|
|
43
|
+
"""Use this method to upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods (the file can be used multiple times). Returns the uploaded File on success.
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
user_id: User identifier of sticker file owner
|
|
47
|
+
sticker: A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files »
|
|
48
|
+
sticker_format: Format of the sticker, must be one of “static”, “animated”, “video”
|
|
49
|
+
|
|
50
|
+
https://core.telegram.org/bots/api#uploadstickerfile
|
|
51
|
+
"""
|
|
52
|
+
return await self._call('uploadStickerFile', locals(), 'File')
|
|
53
|
+
|
|
54
|
+
async def create_new_sticker_set(
|
|
55
|
+
self,
|
|
56
|
+
user_id: int,
|
|
57
|
+
name: str,
|
|
58
|
+
title: str,
|
|
59
|
+
stickers: list[InputSticker],
|
|
60
|
+
*,
|
|
61
|
+
sticker_type: str | None = None,
|
|
62
|
+
needs_repainting: bool | None = None,
|
|
63
|
+
) -> bool:
|
|
64
|
+
"""Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success.
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
user_id: User identifier of created sticker set owner
|
|
68
|
+
name: Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.
|
|
69
|
+
title: Sticker set title, 1-64 characters
|
|
70
|
+
stickers: A JSON-serialized list of 1-50 initial stickers to be added to the sticker set
|
|
71
|
+
sticker_type: Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
|
|
72
|
+
needs_repainting: Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only
|
|
73
|
+
|
|
74
|
+
https://core.telegram.org/bots/api#createnewstickerset
|
|
75
|
+
"""
|
|
76
|
+
return await self._call('createNewStickerSet', locals(), 'bool')
|
|
77
|
+
|
|
78
|
+
async def add_sticker_to_set(
|
|
79
|
+
self,
|
|
80
|
+
user_id: int,
|
|
81
|
+
name: str,
|
|
82
|
+
sticker: InputSticker,
|
|
83
|
+
) -> bool:
|
|
84
|
+
"""Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success.
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
user_id: User identifier of sticker set owner
|
|
88
|
+
name: Sticker set name
|
|
89
|
+
sticker: A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.
|
|
90
|
+
|
|
91
|
+
https://core.telegram.org/bots/api#addstickertoset
|
|
92
|
+
"""
|
|
93
|
+
return await self._call('addStickerToSet', locals(), 'bool')
|
|
94
|
+
|
|
95
|
+
async def set_sticker_position_in_set(
|
|
96
|
+
self,
|
|
97
|
+
sticker: str,
|
|
98
|
+
position: int,
|
|
99
|
+
) -> bool:
|
|
100
|
+
"""Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
sticker: File identifier of the sticker
|
|
104
|
+
position: New sticker position in the set, zero-based
|
|
105
|
+
|
|
106
|
+
https://core.telegram.org/bots/api#setstickerpositioninset
|
|
107
|
+
"""
|
|
108
|
+
return await self._call('setStickerPositionInSet', locals(), 'bool')
|
|
109
|
+
|
|
110
|
+
async def delete_sticker_from_set(
|
|
111
|
+
self,
|
|
112
|
+
sticker: str,
|
|
113
|
+
) -> bool:
|
|
114
|
+
"""Use this method to delete a sticker from a set created by the bot. Returns True on success.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
sticker: File identifier of the sticker
|
|
118
|
+
|
|
119
|
+
https://core.telegram.org/bots/api#deletestickerfromset
|
|
120
|
+
"""
|
|
121
|
+
return await self._call('deleteStickerFromSet', locals(), 'bool')
|