Skip to content

Commit 0d33b5f

Browse files
committed
LAYER 224
1 parent 8a791c3 commit 0d33b5f

File tree

2,404 files changed

+5524
-2619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,404 files changed

+5524
-2619
lines changed

compiler/api/source/main_api.tl

Lines changed: 84 additions & 54 deletions
Large diffs are not rendered by default.

pyrogram/raw/all.py

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# All changes made in this file will be lost! #
2323
# # # # # # # # # # # # # # # # # # # # # # # #
2424

25-
layer = 223
25+
layer = 224
2626

2727
objects = {
2828
0x05162463: "pyrogram.raw.types.ResPQ",
@@ -97,8 +97,8 @@
9797
0xfa4f0bb5: "pyrogram.raw.types.InputFileBig",
9898
0x62dc8b48: "pyrogram.raw.types.InputFileStoryDocument",
9999
0x9664f57f: "pyrogram.raw.types.InputMediaEmpty",
100-
0x1e287d04: "pyrogram.raw.types.InputMediaUploadedPhoto",
101-
0xb3ba0635: "pyrogram.raw.types.InputMediaPhoto",
100+
0x7d8375da: "pyrogram.raw.types.InputMediaUploadedPhoto",
101+
0xe3af4434: "pyrogram.raw.types.InputMediaPhoto",
102102
0xf9c44144: "pyrogram.raw.types.InputMediaGeoPoint",
103103
0xf8ab7dfb: "pyrogram.raw.types.InputMediaContact",
104104
0x37c9330: "pyrogram.raw.types.InputMediaUploadedDocument",
@@ -109,7 +109,7 @@
109109
0xd33f43f3: "pyrogram.raw.types.InputMediaGame",
110110
0x405fef0d: "pyrogram.raw.types.InputMediaInvoice",
111111
0x971fa843: "pyrogram.raw.types.InputMediaGeoLive",
112-
0xf94e5f1: "pyrogram.raw.types.InputMediaPoll",
112+
0x883a4108: "pyrogram.raw.types.InputMediaPoll",
113113
0xe66fbf7b: "pyrogram.raw.types.InputMediaDice",
114114
0x89fdd778: "pyrogram.raw.types.InputMediaStory",
115115
0xc21b8849: "pyrogram.raw.types.InputMediaWebPage",
@@ -174,7 +174,7 @@
174174
0x3ae56482: "pyrogram.raw.types.Message",
175175
0x7a800e0a: "pyrogram.raw.types.MessageService",
176176
0x3ded6320: "pyrogram.raw.types.MessageMediaEmpty",
177-
0x695150d7: "pyrogram.raw.types.MessageMediaPhoto",
177+
0xe216eb63: "pyrogram.raw.types.MessageMediaPhoto",
178178
0x56e0d474: "pyrogram.raw.types.MessageMediaGeo",
179179
0x70322949: "pyrogram.raw.types.MessageMediaContact",
180180
0x9f84f49e: "pyrogram.raw.types.MessageMediaUnsupported",
@@ -184,7 +184,7 @@
184184
0xfdb19008: "pyrogram.raw.types.MessageMediaGame",
185185
0xf6a548d3: "pyrogram.raw.types.MessageMediaInvoice",
186186
0xb940c666: "pyrogram.raw.types.MessageMediaGeoLive",
187-
0x4bd6e798: "pyrogram.raw.types.MessageMediaPoll",
187+
0x773f4e66: "pyrogram.raw.types.MessageMediaPoll",
188188
0x8cbec07: "pyrogram.raw.types.MessageMediaDice",
189189
0x68cb6283: "pyrogram.raw.types.MessageMediaStory",
190190
0xaa073beb: "pyrogram.raw.types.MessageMediaGiveaway",
@@ -256,7 +256,10 @@
256256
0xe188503b: "pyrogram.raw.types.MessageActionChangeCreator",
257257
0xbf7d6572: "pyrogram.raw.types.MessageActionNoForwardsToggle",
258258
0x3e2793ba: "pyrogram.raw.types.MessageActionNoForwardsRequest",
259-
0xd58a08c6: "pyrogram.raw.types.Dialog",
259+
0x9da1cd6c: "pyrogram.raw.types.MessageActionPollAppendAnswer",
260+
0x399674dc: "pyrogram.raw.types.MessageActionPollDeleteAnswer",
261+
0x16605e3e: "pyrogram.raw.types.MessageActionManagedBotCreated",
262+
0xfc89f7f3: "pyrogram.raw.types.Dialog",
260263
0x71bd134c: "pyrogram.raw.types.DialogFolder",
261264
0x2331b22d: "pyrogram.raw.types.PhotoEmpty",
262265
0xfb197a65: "pyrogram.raw.types.Photo",
@@ -294,7 +297,7 @@
294297
0xf5ddd6e7: "pyrogram.raw.types.InputReportReasonFake",
295298
0xa8eb2be: "pyrogram.raw.types.InputReportReasonIllegalDrugs",
296299
0x9ec7863d: "pyrogram.raw.types.InputReportReasonPersonalDetails",
297-
0xa02bc13e: "pyrogram.raw.types.UserFull",
300+
0x6cbe645: "pyrogram.raw.types.UserFull",
298301
0x145ade0b: "pyrogram.raw.types.Contact",
299302
0xc13e3c50: "pyrogram.raw.types.ImportedContact",
300303
0x16d9703b: "pyrogram.raw.types.ContactStatus",
@@ -331,6 +334,7 @@
331334
0xe7026d0d: "pyrogram.raw.types.InputMessagesFilterGeo",
332335
0xe062db83: "pyrogram.raw.types.InputMessagesFilterContacts",
333336
0x1bb00451: "pyrogram.raw.types.InputMessagesFilterPinned",
337+
0xfa2bc90a: "pyrogram.raw.types.InputMessagesFilterPoll",
334338
0x1f2b0afd: "pyrogram.raw.types.UpdateNewMessage",
335339
0x4e90bfd6: "pyrogram.raw.types.UpdateMessageID",
336340
0xa20db0e5: "pyrogram.raw.types.UpdateDeleteMessages",
@@ -393,7 +397,7 @@
393397
0x7084a7be: "pyrogram.raw.types.UpdateContactsReset",
394398
0xb23fc698: "pyrogram.raw.types.UpdateChannelAvailableMessages",
395399
0xb658f23e: "pyrogram.raw.types.UpdateDialogUnreadMark",
396-
0xaca1657b: "pyrogram.raw.types.UpdateMessagePoll",
400+
0xd64c522b: "pyrogram.raw.types.UpdateMessagePoll",
397401
0x54c01850: "pyrogram.raw.types.UpdateChatDefaultBannedRights",
398402
0x19360dc0: "pyrogram.raw.types.UpdateFolderPeers",
399403
0x6a7e7366: "pyrogram.raw.types.UpdatePeerSettings",
@@ -403,7 +407,7 @@
403407
0x8216fba3: "pyrogram.raw.types.UpdateTheme",
404408
0x871fb939: "pyrogram.raw.types.UpdateGeoLiveViewed",
405409
0x564fe691: "pyrogram.raw.types.UpdateLoginToken",
406-
0x24f40e77: "pyrogram.raw.types.UpdateMessagePollVote",
410+
0x7699f014: "pyrogram.raw.types.UpdateMessagePollVote",
407411
0x26ffde7d: "pyrogram.raw.types.UpdateDialogFilter",
408412
0xa5d72105: "pyrogram.raw.types.UpdateDialogFilterOrder",
409413
0x3504914f: "pyrogram.raw.types.UpdateDialogFilters",
@@ -484,6 +488,7 @@
484488
0xfb9c547a: "pyrogram.raw.types.UpdateEmojiGameInfo",
485489
0xac072444: "pyrogram.raw.types.UpdateStarGiftCraftFail",
486490
0xbd8367b9: "pyrogram.raw.types.UpdateChatParticipantRank",
491+
0x4880ed9a: "pyrogram.raw.types.UpdateManagedBot",
487492
0xa56c2a3e: "pyrogram.raw.types.updates.State",
488493
0x5d75a138: "pyrogram.raw.types.updates.DifferenceEmpty",
489494
0xf49ca0: "pyrogram.raw.types.updates.Difference",
@@ -701,6 +706,9 @@
701706
0xc8cf05f8: "pyrogram.raw.types.MessageEntityCustomEmoji",
702707
0xf1ccaaac: "pyrogram.raw.types.MessageEntityBlockquote",
703708
0x904ac7c7: "pyrogram.raw.types.MessageEntityFormattedDate",
709+
0x71777116: "pyrogram.raw.types.MessageEntityDiffInsert",
710+
0xc6c1e5a7: "pyrogram.raw.types.MessageEntityDiffReplace",
711+
0x652c1c5: "pyrogram.raw.types.MessageEntityDiffDelete",
704712
0xee8c1e86: "pyrogram.raw.types.InputChannelEmpty",
705713
0xf35aec28: "pyrogram.raw.types.InputChannel",
706714
0x5b934f9d: "pyrogram.raw.types.InputChannelFromMessage",
@@ -1064,10 +1072,11 @@
10641072
0x8c05f1c9: "pyrogram.raw.types.help.SupportName",
10651073
0xf3ae2eed: "pyrogram.raw.types.help.UserInfoEmpty",
10661074
0x1eb3758: "pyrogram.raw.types.help.UserInfo",
1067-
0xff16e2ca: "pyrogram.raw.types.PollAnswer",
1068-
0x58747131: "pyrogram.raw.types.Poll",
1069-
0x3b6ddad2: "pyrogram.raw.types.PollAnswerVoters",
1070-
0x7adf2420: "pyrogram.raw.types.PollResults",
1075+
0x4b7d786a: "pyrogram.raw.types.PollAnswer",
1076+
0x199fed96: "pyrogram.raw.types.InputPollAnswer",
1077+
0xb8425be9: "pyrogram.raw.types.Poll",
1078+
0x3645230a: "pyrogram.raw.types.PollAnswerVoters",
1079+
0xba7bb15e: "pyrogram.raw.types.PollResults",
10711080
0xf041e250: "pyrogram.raw.types.ChatOnlines",
10721081
0x47a971e0: "pyrogram.raw.types.StatsURL",
10731082
0x5fb224d5: "pyrogram.raw.types.ChatAdminRights",
@@ -1090,7 +1099,7 @@
10901099
0xfbd2c296: "pyrogram.raw.types.InputFolderPeer",
10911100
0xe9baa668: "pyrogram.raw.types.FolderPeer",
10921101
0xe844ebff: "pyrogram.raw.types.messages.SearchCounter",
1093-
0xf8f8eb1e: "pyrogram.raw.types.UrlAuthResultRequest",
1102+
0x3cd623ec: "pyrogram.raw.types.UrlAuthResultRequest",
10941103
0x623a8fa0: "pyrogram.raw.types.UrlAuthResultAccepted",
10951104
0xa9d6db1f: "pyrogram.raw.types.UrlAuthResultDefault",
10961105
0xbfb5ad8b: "pyrogram.raw.types.ChannelLocationEmpty",
@@ -1152,7 +1161,7 @@
11521161
0x455b853d: "pyrogram.raw.types.MessageViews",
11531162
0xb6c4f543: "pyrogram.raw.types.messages.MessageViews",
11541163
0xa6341782: "pyrogram.raw.types.messages.DiscussionMessage",
1155-
0x6917560b: "pyrogram.raw.types.MessageReplyHeader",
1164+
0x1b97dd66: "pyrogram.raw.types.MessageReplyHeader",
11561165
0xe5af939: "pyrogram.raw.types.MessageReplyStoryHeader",
11571166
0x83d60fc2: "pyrogram.raw.types.MessageReplies",
11581167
0xe8fd8014: "pyrogram.raw.types.PeerBlocked",
@@ -1303,13 +1312,14 @@
13031312
0xfcfeb29c: "pyrogram.raw.types.StickerKeyword",
13041313
0xb4073647: "pyrogram.raw.types.Username",
13051314
0x23f109b: "pyrogram.raw.types.ForumTopicDeleted",
1306-
0xcdff0eca: "pyrogram.raw.types.ForumTopic",
1315+
0xfcdad815: "pyrogram.raw.types.ForumTopic",
13071316
0x367617d3: "pyrogram.raw.types.messages.ForumTopics",
13081317
0x43b46b20: "pyrogram.raw.types.DefaultHistoryTTL",
13091318
0x41bf109b: "pyrogram.raw.types.ExportedContactToken",
13101319
0x5f3b8a00: "pyrogram.raw.types.RequestPeerTypeUser",
13111320
0xc9f06e1b: "pyrogram.raw.types.RequestPeerTypeChat",
13121321
0x339bef6c: "pyrogram.raw.types.RequestPeerTypeBroadcast",
1322+
0x3e81e078: "pyrogram.raw.types.RequestPeerTypeCreateBot",
13131323
0x481eadfa: "pyrogram.raw.types.EmojiListNotModified",
13141324
0x7a1e11d1: "pyrogram.raw.types.EmojiList",
13151325
0x7a9abda9: "pyrogram.raw.types.EmojiGroup",
@@ -1345,7 +1355,7 @@
13451355
0x8d595cd6: "pyrogram.raw.types.StoryViews",
13461356
0x51e6ee4f: "pyrogram.raw.types.StoryItemDeleted",
13471357
0xffadc913: "pyrogram.raw.types.StoryItemSkipped",
1348-
0xedf164f1: "pyrogram.raw.types.StoryItem",
1358+
0x16a4b93c: "pyrogram.raw.types.StoryItem",
13491359
0x1158fe3e: "pyrogram.raw.types.stories.AllStoriesNotModified",
13501360
0x6efc5e81: "pyrogram.raw.types.stories.AllStories",
13511361
0x63c3dd0a: "pyrogram.raw.types.stories.Stories",
@@ -1354,7 +1364,7 @@
13541364
0xbd74cf49: "pyrogram.raw.types.StoryViewPublicRepost",
13551365
0x59d78fc5: "pyrogram.raw.types.stories.StoryViewsList",
13561366
0xde9eed1d: "pyrogram.raw.types.stories.StoryViews",
1357-
0x869fbe10: "pyrogram.raw.types.InputReplyToMessage",
1367+
0x3bd4b7c2: "pyrogram.raw.types.InputReplyToMessage",
13581368
0x5881323a: "pyrogram.raw.types.InputReplyToStory",
13591369
0x69d66c45: "pyrogram.raw.types.InputReplyToMonoForum",
13601370
0x3fc9053b: "pyrogram.raw.types.ExportedStoryLink",
@@ -1464,7 +1474,7 @@
14641474
0xad798849: "pyrogram.raw.types.channels.SponsoredMessageReportResultReported",
14651475
0xbac3a61a: "pyrogram.raw.types.ReactionNotificationsFromContacts",
14661476
0x4b9e22a0: "pyrogram.raw.types.ReactionNotificationsFromAll",
1467-
0x56e34970: "pyrogram.raw.types.ReactionsNotifySettings",
1477+
0x71e4ea58: "pyrogram.raw.types.ReactionsNotifySettings",
14681478
0x93c3e27e: "pyrogram.raw.types.AvailableEffect",
14691479
0xd1ed9a5b: "pyrogram.raw.types.messages.AvailableEffectsNotModified",
14701480
0xbddb616e: "pyrogram.raw.types.messages.AvailableEffects",
@@ -1621,6 +1631,10 @@
16211631
0x78fbf3a8: "pyrogram.raw.types.StarGiftAttributeRarityEpic",
16221632
0xcef7e7a8: "pyrogram.raw.types.StarGiftAttributeRarityLegendary",
16231633
0x4fdd3430: "pyrogram.raw.types.KeyboardButtonStyle",
1634+
0x402b4495: "pyrogram.raw.types.InputMessageReadMetric",
1635+
0x3c60b621: "pyrogram.raw.types.bots.ExportedBotToken",
1636+
0xf13bbcd7: "pyrogram.raw.types.bots.RequestedButton",
1637+
0x90d7adfa: "pyrogram.raw.types.messages.ComposedMessageWithAI",
16241638
0xcb9f372d: "pyrogram.raw.functions.InvokeAfterMsg",
16251639
0x3dc4b4f0: "pyrogram.raw.functions.InvokeAfterMsgs",
16261640
0xc1cd5ea9: "pyrogram.raw.functions.InitConnection",
@@ -1914,7 +1928,7 @@
19141928
0x7e58ee9c: "pyrogram.raw.functions.messages.ClearAllDrafts",
19151929
0xd2aaf7ec: "pyrogram.raw.functions.messages.UpdatePinnedMessage",
19161930
0x10ea6184: "pyrogram.raw.functions.messages.SendVote",
1917-
0x73bb643b: "pyrogram.raw.functions.messages.GetPollResults",
1931+
0xeda3e33b: "pyrogram.raw.functions.messages.GetPollResults",
19181932
0x6e2be050: "pyrogram.raw.functions.messages.GetOnlines",
19191933
0xdef60797: "pyrogram.raw.functions.messages.EditChatAbout",
19201934
0xa5866b41: "pyrogram.raw.functions.messages.EditChatDefaultBannedRights",
@@ -1970,7 +1984,7 @@
19701984
0x864b2581: "pyrogram.raw.functions.messages.SetChatAvailableReactions",
19711985
0x18dea0ac: "pyrogram.raw.functions.messages.GetAvailableReactions",
19721986
0x4f47a016: "pyrogram.raw.functions.messages.SetDefaultReaction",
1973-
0x63183030: "pyrogram.raw.functions.messages.TranslateText",
1987+
0xa5eec345: "pyrogram.raw.functions.messages.TranslateText",
19741988
0xbd7f90ac: "pyrogram.raw.functions.messages.GetUnreadReactions",
19751989
0x9ec44f93: "pyrogram.raw.functions.messages.ReadReactions",
19761990
0x107e31a0: "pyrogram.raw.functions.messages.SearchSentMedia",
@@ -1994,7 +2008,7 @@
19942008
0x84f80814: "pyrogram.raw.functions.messages.GetExtendedMedia",
19952009
0x9eb51445: "pyrogram.raw.functions.messages.SetDefaultHistoryTTL",
19962010
0x658b7188: "pyrogram.raw.functions.messages.GetDefaultHistoryTTL",
1997-
0x91b2d060: "pyrogram.raw.functions.messages.SendBotRequestedPeer",
2011+
0x6c5cf2a7: "pyrogram.raw.functions.messages.SendBotRequestedPeer",
19982012
0x7488ce5b: "pyrogram.raw.functions.messages.GetEmojiGroups",
19992013
0x2ecd56cd: "pyrogram.raw.functions.messages.GetEmojiStatusGroups",
20002014
0x21a548f3: "pyrogram.raw.functions.messages.GetEmojiProfilePhotoGroups",
@@ -2054,12 +2068,19 @@
20542068
0x2f98c3d5: "pyrogram.raw.functions.messages.CreateForumTopic",
20552069
0xd2816f10: "pyrogram.raw.functions.messages.DeleteTopicHistory",
20562070
0xfb7e8ca7: "pyrogram.raw.functions.messages.GetEmojiGameInfo",
2057-
0x9d4104e2: "pyrogram.raw.functions.messages.SummarizeText",
2071+
0xabbbd346: "pyrogram.raw.functions.messages.SummarizeText",
20582072
0xf743b857: "pyrogram.raw.functions.messages.EditChatCreator",
20592073
0x3b7d0ea6: "pyrogram.raw.functions.messages.GetFutureChatCreatorAfterLeave",
20602074
0xa00f32b0: "pyrogram.raw.functions.messages.EditChatParticipantRank",
20612075
0x35436bbc: "pyrogram.raw.functions.messages.DeclineUrlAuth",
20622076
0xc9a47b0b: "pyrogram.raw.functions.messages.CheckUrlAuthMatchCode",
2077+
0xfd426afe: "pyrogram.raw.functions.messages.ComposeMessageWithAI",
2078+
0x4067c5e6: "pyrogram.raw.functions.messages.ReportReadMetrics",
2079+
0xddbcd819: "pyrogram.raw.functions.messages.ReportMusicListen",
2080+
0x19bc4b6d: "pyrogram.raw.functions.messages.AddPollAnswer",
2081+
0xac8505a5: "pyrogram.raw.functions.messages.DeletePollAnswer",
2082+
0x43286cf2: "pyrogram.raw.functions.messages.GetUnreadPollVotes",
2083+
0x1720b4d8: "pyrogram.raw.functions.messages.ReadPollVotes",
20632084
0xedd4882a: "pyrogram.raw.functions.updates.GetState",
20642085
0x19c2f763: "pyrogram.raw.functions.updates.GetDifference",
20652086
0x3173d78: "pyrogram.raw.functions.updates.GetChannelDifference",
@@ -2189,6 +2210,11 @@
21892210
0x778b5ab3: "pyrogram.raw.functions.bots.UpdateStarRefProgram",
21902211
0x8b89dfbd: "pyrogram.raw.functions.bots.SetCustomVerification",
21912212
0xa1b70815: "pyrogram.raw.functions.bots.GetBotRecommendations",
2213+
0x87f2219b: "pyrogram.raw.functions.bots.CheckUsername",
2214+
0xe5b17f2b: "pyrogram.raw.functions.bots.CreateBot",
2215+
0xbd0d99eb: "pyrogram.raw.functions.bots.ExportBotToken",
2216+
0x31a2a35e: "pyrogram.raw.functions.bots.RequestWebViewButton",
2217+
0xbf25b7f3: "pyrogram.raw.functions.bots.GetRequestedWebViewButton",
21922218
0x37148dbb: "pyrogram.raw.functions.payments.GetPaymentForm",
21932219
0x2478d1cc: "pyrogram.raw.functions.payments.GetPaymentReceipt",
21942220
0xb6c8f12b: "pyrogram.raw.functions.payments.ValidateRequestedInfo",
@@ -2333,8 +2359,8 @@
23332359
0xfdbcd714: "pyrogram.raw.functions.chatlists.GetLeaveChatlistSuggestions",
23342360
0x74fae13a: "pyrogram.raw.functions.chatlists.LeaveChatlist",
23352361
0x30eb63f0: "pyrogram.raw.functions.stories.CanSendStory",
2336-
0x737fc2ec: "pyrogram.raw.functions.stories.SendStory",
2337-
0xb583ba46: "pyrogram.raw.functions.stories.EditStory",
2362+
0x8f9e6898: "pyrogram.raw.functions.stories.SendStory",
2363+
0x2c63a72b: "pyrogram.raw.functions.stories.EditStory",
23382364
0xae59db5f: "pyrogram.raw.functions.stories.DeleteStories",
23392365
0x9a75a1ef: "pyrogram.raw.functions.stories.TogglePinned",
23402366
0xeeb0d625: "pyrogram.raw.functions.stories.GetAllStories",

pyrogram/raw/base/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,4 +419,5 @@
419419
from .star_gift_auction_round import StarGiftAuctionRound
420420
from .star_gift_attribute_rarity import StarGiftAttributeRarity
421421
from .keyboard_button_style import KeyboardButtonStyle
422+
from .input_message_read_metric import InputMessageReadMetric
422423
from . import help, storage, auth, contacts, messages, updates, photos, upload, account, channels, payments, phone, stats, stickers, users, chatlists, bots, stories, premium, smsjobs, fragment

pyrogram/raw/base/bots/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@
2525
from .bot_info import BotInfo
2626
from .popular_app_bots import PopularAppBots
2727
from .preview_info import PreviewInfo
28+
from .exported_bot_token import ExportedBotToken
29+
from .requested_button import RequestedButton
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Pyrogram - Telegram MTProto API Client Library for Python
2+
# Copyright (C) 2017-present Dan <https://github.com/delivrance>
3+
#
4+
# This file is part of Pyrogram.
5+
#
6+
# Pyrogram is free software: you can redistribute it and/or modify
7+
# it under the terms of the GNU Lesser General Public License as published
8+
# by the Free Software Foundation, either version 3 of the License, or
9+
# (at your option) any later version.
10+
#
11+
# Pyrogram is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public License
17+
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18+
19+
# # # # # # # # # # # # # # # # # # # # # # # #
20+
# !!! WARNING !!! #
21+
# This is a generated file! #
22+
# All changes made in this file will be lost! #
23+
# # # # # # # # # # # # # # # # # # # # # # # #
24+
25+
from typing import TYPE_CHECKING, Union
26+
27+
from pyrogram import raw
28+
from pyrogram.raw.core import BaseTypeMeta
29+
30+
31+
if TYPE_CHECKING:
32+
ExportedBotToken = Union[raw.types.bots.ExportedBotToken]
33+
else:
34+
# noinspection PyRedeclaration
35+
class ExportedBotToken(metaclass=BaseTypeMeta): # type: ignore
36+
"""This base type has 1 constructor available.
37+
38+
Constructors:
39+
.. hlist::
40+
:columns: 2
41+
42+
- :obj:`bots.ExportedBotToken <pyrogram.raw.types.bots.ExportedBotToken>`
43+
44+
See Also:
45+
This object can be returned by 1 method:
46+
47+
.. hlist::
48+
:columns: 2
49+
50+
- :obj:`bots.ExportBotToken <pyrogram.raw.functions.bots.ExportBotToken>`
51+
"""
52+
53+
QUALNAME = "pyrogram.raw.base.bots.ExportedBotToken"
54+
__union_types__ = Union[raw.types.bots.ExportedBotToken]
55+
56+
def __init__(self):
57+
raise TypeError("Base types can only be used for type checking purposes: "
58+
"you tried to use a base type instance as argument, "
59+
"but you need to instantiate one of its constructors instead. "
60+
"More info: https://docs.kurigram.icu/telegram/base/exported-bot-token")

0 commit comments

Comments
 (0)