tlgr-cli 2.0.1__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.
Files changed (192) hide show
  1. tlgr/__init__.py +3 -0
  2. tlgr/__main__.py +6 -0
  3. tlgr/actions/__init__.py +45 -0
  4. tlgr/actions/forward.py +74 -0
  5. tlgr/actions/reply.py +32 -0
  6. tlgr/cli/__init__.py +259 -0
  7. tlgr/cli/confirm.py +55 -0
  8. tlgr/cli/errors.py +84 -0
  9. tlgr/cli/gen.py +690 -0
  10. tlgr/cli/globals.py +273 -0
  11. tlgr/cli/introspect.py +170 -0
  12. tlgr/cli/params.py +189 -0
  13. tlgr/cli/render.py +418 -0
  14. tlgr/core/__init__.py +0 -0
  15. tlgr/core/accounts.py +384 -0
  16. tlgr/core/config.py +358 -0
  17. tlgr/core/custom_tl.py +170 -0
  18. tlgr/core/errors.py +687 -0
  19. tlgr/core/eventtypes.py +1170 -0
  20. tlgr/core/identity.py +127 -0
  21. tlgr/core/launchd.py +122 -0
  22. tlgr/core/logging.py +194 -0
  23. tlgr/core/media.py +134 -0
  24. tlgr/core/output.py +251 -0
  25. tlgr/core/pagination.py +227 -0
  26. tlgr/core/paths.py +360 -0
  27. tlgr/core/peers.py +427 -0
  28. tlgr/core/process.py +138 -0
  29. tlgr/core/signing.py +38 -0
  30. tlgr/core/systemd.py +96 -0
  31. tlgr/core/telethon_compat.py +295 -0
  32. tlgr/core/text.py +211 -0
  33. tlgr/core/timefmt.py +199 -0
  34. tlgr/core/tl.py +98 -0
  35. tlgr/daemon/__init__.py +0 -0
  36. tlgr/daemon/app.py +869 -0
  37. tlgr/daemon/dispatch.py +446 -0
  38. tlgr/daemon/events.py +723 -0
  39. tlgr/daemon/files.py +431 -0
  40. tlgr/daemon/idle.py +119 -0
  41. tlgr/daemon/jobs.py +68 -0
  42. tlgr/daemon/main.py +161 -0
  43. tlgr/daemon/peercred.py +75 -0
  44. tlgr/daemon/policy.py +113 -0
  45. tlgr/daemon/preauth.py +366 -0
  46. tlgr/daemon/ratelimit.py +391 -0
  47. tlgr/daemon/server.py +24 -0
  48. tlgr/daemon/session.py +648 -0
  49. tlgr/daemon/sessions.py +274 -0
  50. tlgr/daemon/singleton.py +114 -0
  51. tlgr/daemon/stream.py +193 -0
  52. tlgr/daemon/transfers.py +219 -0
  53. tlgr/daemon/webhook.py +390 -0
  54. tlgr/data/catalog_index.json +1 -0
  55. tlgr/data/parity_waivers.toml +90 -0
  56. tlgr/filters/__init__.py +42 -0
  57. tlgr/filters/compose.py +121 -0
  58. tlgr/filters/content.py +85 -0
  59. tlgr/filters/context.py +114 -0
  60. tlgr/filters/message.py +161 -0
  61. tlgr/filters/temporal.py +87 -0
  62. tlgr/filters/user.py +36 -0
  63. tlgr/gateway/__init__.py +1 -0
  64. tlgr/gateway/config.py +161 -0
  65. tlgr/gateway/engine.py +215 -0
  66. tlgr/gateway/event.py +22 -0
  67. tlgr/jobs/__init__.py +0 -0
  68. tlgr/jobs/base.py +81 -0
  69. tlgr/jobs/client.py +37 -0
  70. tlgr/models/__init__.py +1220 -0
  71. tlgr/models/admin.py +744 -0
  72. tlgr/models/auth.py +510 -0
  73. tlgr/models/base.py +81 -0
  74. tlgr/models/bot.py +576 -0
  75. tlgr/models/business.py +265 -0
  76. tlgr/models/call.py +586 -0
  77. tlgr/models/config.py +101 -0
  78. tlgr/models/contact.py +481 -0
  79. tlgr/models/daemon.py +336 -0
  80. tlgr/models/dialog.py +626 -0
  81. tlgr/models/envelope.py +68 -0
  82. tlgr/models/error.py +30 -0
  83. tlgr/models/event.py +79 -0
  84. tlgr/models/export.py +66 -0
  85. tlgr/models/gift.py +275 -0
  86. tlgr/models/inline.py +84 -0
  87. tlgr/models/location.py +115 -0
  88. tlgr/models/media.py +507 -0
  89. tlgr/models/message.py +584 -0
  90. tlgr/models/net.py +232 -0
  91. tlgr/models/notify.py +105 -0
  92. tlgr/models/page.py +32 -0
  93. tlgr/models/payment.py +172 -0
  94. tlgr/models/peer.py +400 -0
  95. tlgr/models/poll.py +119 -0
  96. tlgr/models/premium.py +161 -0
  97. tlgr/models/privacy.py +93 -0
  98. tlgr/models/profile.py +217 -0
  99. tlgr/models/reaction.py +160 -0
  100. tlgr/models/resolve.py +175 -0
  101. tlgr/models/settings.py +103 -0
  102. tlgr/models/stars.py +101 -0
  103. tlgr/models/sticker.py +243 -0
  104. tlgr/models/story.py +467 -0
  105. tlgr/models/sync.py +105 -0
  106. tlgr/models/todo.py +36 -0
  107. tlgr/models/webapp.py +89 -0
  108. tlgr/ops/__init__.py +63 -0
  109. tlgr/ops/_admin.py +313 -0
  110. tlgr/ops/_auth.py +599 -0
  111. tlgr/ops/_bots.py +586 -0
  112. tlgr/ops/_calls.py +535 -0
  113. tlgr/ops/_common.py +160 -0
  114. tlgr/ops/_layer.py +46 -0
  115. tlgr/ops/_media.py +592 -0
  116. tlgr/ops/_params.py +212 -0
  117. tlgr/ops/_rights.py +402 -0
  118. tlgr/ops/_send.py +593 -0
  119. tlgr/ops/_serialize.py +667 -0
  120. tlgr/ops/_settings.py +306 -0
  121. tlgr/ops/_spec.py +167 -0
  122. tlgr/ops/_story.py +743 -0
  123. tlgr/ops/account.py +2604 -0
  124. tlgr/ops/agent.py +937 -0
  125. tlgr/ops/auth.py +1282 -0
  126. tlgr/ops/bot.py +4880 -0
  127. tlgr/ops/business.py +1520 -0
  128. tlgr/ops/call.py +1610 -0
  129. tlgr/ops/chat.py +4025 -0
  130. tlgr/ops/chat_admin.py +929 -0
  131. tlgr/ops/chat_extra.py +1061 -0
  132. tlgr/ops/chat_invite.py +716 -0
  133. tlgr/ops/chat_manage.py +1691 -0
  134. tlgr/ops/chat_member.py +1357 -0
  135. tlgr/ops/chat_stats.py +902 -0
  136. tlgr/ops/chat_topic.py +905 -0
  137. tlgr/ops/conference.py +791 -0
  138. tlgr/ops/config.py +1698 -0
  139. tlgr/ops/contact.py +2330 -0
  140. tlgr/ops/daemon.py +1397 -0
  141. tlgr/ops/draft.py +299 -0
  142. tlgr/ops/emoji.py +343 -0
  143. tlgr/ops/events.py +1327 -0
  144. tlgr/ops/export.py +596 -0
  145. tlgr/ops/folder.py +1322 -0
  146. tlgr/ops/gif.py +522 -0
  147. tlgr/ops/gift.py +1546 -0
  148. tlgr/ops/giveaway.py +541 -0
  149. tlgr/ops/inline.py +773 -0
  150. tlgr/ops/job.py +799 -0
  151. tlgr/ops/location.py +917 -0
  152. tlgr/ops/media.py +4495 -0
  153. tlgr/ops/message.py +3769 -0
  154. tlgr/ops/net.py +536 -0
  155. tlgr/ops/notify.py +840 -0
  156. tlgr/ops/passport.py +464 -0
  157. tlgr/ops/payment.py +907 -0
  158. tlgr/ops/poll.py +1078 -0
  159. tlgr/ops/premium.py +488 -0
  160. tlgr/ops/privacy.py +794 -0
  161. tlgr/ops/profile.py +1481 -0
  162. tlgr/ops/proxy.py +750 -0
  163. tlgr/ops/reaction.py +1475 -0
  164. tlgr/ops/resolve.py +1140 -0
  165. tlgr/ops/search.py +521 -0
  166. tlgr/ops/settings.py +1066 -0
  167. tlgr/ops/stars.py +594 -0
  168. tlgr/ops/sticker.py +1602 -0
  169. tlgr/ops/story.py +3216 -0
  170. tlgr/ops/sync.py +788 -0
  171. tlgr/ops/todo.py +514 -0
  172. tlgr/ops/user.py +1406 -0
  173. tlgr/ops/vc.py +2351 -0
  174. tlgr/ops/webapp.py +717 -0
  175. tlgr/ops/webhook.py +418 -0
  176. tlgr/parity.py +386 -0
  177. tlgr/processors/__init__.py +125 -0
  178. tlgr/processors/regex.py +26 -0
  179. tlgr/processors/text.py +56 -0
  180. tlgr/registry.py +519 -0
  181. tlgr/schema.py +173 -0
  182. tlgr/transport/__init__.py +30 -0
  183. tlgr/transport/autostart.py +293 -0
  184. tlgr/transport/client.py +805 -0
  185. tlgr/transport/ndjson.py +44 -0
  186. tlgr/version.py +31 -0
  187. tlgr_cli-2.0.1.dist-info/METADATA +957 -0
  188. tlgr_cli-2.0.1.dist-info/RECORD +192 -0
  189. tlgr_cli-2.0.1.dist-info/WHEEL +5 -0
  190. tlgr_cli-2.0.1.dist-info/entry_points.txt +2 -0
  191. tlgr_cli-2.0.1.dist-info/licenses/LICENSE +21 -0
  192. tlgr_cli-2.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1220 @@
1
+ """tlgr wire models. `from tlgr.models import Message, Page` works."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from tlgr.models.admin import (
6
+ AdminLogEvent,
7
+ AdminResult,
8
+ AffiliateBot,
9
+ AffiliateResult,
10
+ AntiSpamReport,
11
+ Boost,
12
+ BoostApplied,
13
+ BoostStatus,
14
+ ChatEditResult,
15
+ ChatPhotoResult,
16
+ ChatStats,
17
+ CommunityResult,
18
+ CommunityRow,
19
+ CreatedChat,
20
+ DirectBanResult,
21
+ DirectDialog,
22
+ DiscussionCandidate,
23
+ DiscussionResult,
24
+ Graph,
25
+ Invite,
26
+ InviteDeleted,
27
+ InviteInfo,
28
+ InvitePeek,
29
+ InviteRevoked,
30
+ JoinRequest,
31
+ JoinResult,
32
+ MemberResult,
33
+ MembersAdded,
34
+ MigrateResult,
35
+ MissingInvitee,
36
+ Participant,
37
+ PermissionResult,
38
+ PermissionView,
39
+ PublicForward,
40
+ RequestResult,
41
+ RevenueSummary,
42
+ RevenueTransaction,
43
+ RightInfo,
44
+ SendAsPeer,
45
+ SendAsResult,
46
+ SettingResult,
47
+ SettingsView,
48
+ SimilarChat,
49
+ SponsoredReport,
50
+ StatValue,
51
+ SuggestedPostResult,
52
+ SuggestionResult,
53
+ Topic,
54
+ TopicPinResult,
55
+ TopicReadResult,
56
+ TopicResult,
57
+ TransferResult,
58
+ UsernameCheck,
59
+ UsernameResult,
60
+ VerificationResult,
61
+ WelcomeMessage,
62
+ WelcomeResult,
63
+ )
64
+ from tlgr.models.auth import (
65
+ AccountDeletion,
66
+ AccountRecord,
67
+ AccountState,
68
+ AccountTtl,
69
+ AutologinUrl,
70
+ DeviceLock,
71
+ LoginCodes,
72
+ LoginEmail,
73
+ LoginResult,
74
+ Passkey,
75
+ PassportDeletion,
76
+ PassportForm,
77
+ PassportRequirement,
78
+ PassportValue,
79
+ PassportVerification,
80
+ PasswordReset,
81
+ PasswordState,
82
+ PhoneChange,
83
+ QrLogin,
84
+ RecoveryEmail,
85
+ SentCode,
86
+ Session,
87
+ SessionChange,
88
+ SessionTermination,
89
+ SmsJobs,
90
+ Suggestion,
91
+ SupportInfo,
92
+ TempPassword,
93
+ Terms,
94
+ WebSession,
95
+ WebSessionRevocation,
96
+ )
97
+ from tlgr.models.base import UNSET, Model, Request, Unset, decode, encode, to_builtins
98
+ from tlgr.models.bot import (
99
+ AttachMenuBot,
100
+ BotAccess,
101
+ BotAnswer,
102
+ BotApiResult,
103
+ BotCommand,
104
+ BotCommandSet,
105
+ BotCreated,
106
+ BotEdited,
107
+ BotIds,
108
+ BotInfo,
109
+ BotPermission,
110
+ BotQuery,
111
+ BotRef,
112
+ BotStarted,
113
+ BotStopped,
114
+ BotToken,
115
+ BotUsernameCheck,
116
+ BotUsernames,
117
+ BotVerification,
118
+ BotVerified,
119
+ BotWelcomeMessage,
120
+ BusinessConnection,
121
+ CommandSent,
122
+ DefaultRights,
123
+ EmojiGame,
124
+ EphemeralDeleted,
125
+ EphemeralSent,
126
+ GameSent,
127
+ HighScore,
128
+ Keyboard,
129
+ KeyboardButton,
130
+ MenuButton,
131
+ Pressed,
132
+ PreviewChange,
133
+ PreviewMedia,
134
+ RecentBots,
135
+ ReportOutcome,
136
+ ScoreSet,
137
+ SponsoredRead,
138
+ StarRefProgram,
139
+ StreamProgress,
140
+ ToggledAttachMenu,
141
+ UrlAuth,
142
+ WelcomeDeleted,
143
+ WelcomeSet,
144
+ )
145
+ from tlgr.models.business import (
146
+ BotConnection,
147
+ BotPaused,
148
+ BotRights,
149
+ BusinessAway,
150
+ BusinessGreeting,
151
+ BusinessIntro,
152
+ BusinessLocation,
153
+ BusinessMessage,
154
+ BusinessOpen,
155
+ BusinessProfile,
156
+ BusinessRecipients,
157
+ BusinessSet,
158
+ ChatLink,
159
+ ChatLinkSet,
160
+ QuickReply,
161
+ QuickReplyMessage,
162
+ QuickReplySent,
163
+ QuickReplySet,
164
+ StarsTransferQuote,
165
+ WorkHours,
166
+ )
167
+ from tlgr.models.call import (
168
+ MEDIA_NONE,
169
+ ActiveCall,
170
+ Call,
171
+ CallConfig,
172
+ CallDebugUpload,
173
+ CallDeclined,
174
+ CallEnded,
175
+ CallEvent,
176
+ CallIdentity,
177
+ CallLogDeleted,
178
+ CallLogEntry,
179
+ CallRating,
180
+ CallRef,
181
+ CallSignal,
182
+ CallUpgrade,
183
+ ChainBlock,
184
+ ConferenceCreated,
185
+ ConferenceDeclined,
186
+ ConferenceInfo,
187
+ ConferenceInvited,
188
+ ConferenceRelayed,
189
+ ConferenceRemoved,
190
+ ConferenceRevoked,
191
+ GroupCall,
192
+ GroupCallCreated,
193
+ GroupCallEnded,
194
+ GroupCallEvent,
195
+ GroupCallInvited,
196
+ GroupCallJoined,
197
+ GroupCallLeft,
198
+ GroupCallLink,
199
+ GroupCallParticipant,
200
+ GroupCallSettings,
201
+ GroupCallStarted,
202
+ InCallMessage,
203
+ InCallMessagesDeleted,
204
+ MuteState,
205
+ ParticipantRemoved,
206
+ RaisedHand,
207
+ RtmpInfo,
208
+ StreamChannel,
209
+ StreamDownload,
210
+ VideoState,
211
+ VolumeState,
212
+ )
213
+ from tlgr.models.config import (
214
+ ConfigEntry,
215
+ ConfigKey,
216
+ ConfigPaths,
217
+ ConfigValue,
218
+ InitResult,
219
+ ValidationIssue,
220
+ ValidationReport,
221
+ )
222
+ from tlgr.models.contact import (
223
+ BlockedPeer,
224
+ BlockedSet,
225
+ BlockResult,
226
+ CloseFriends,
227
+ Contact,
228
+ ContactAdded,
229
+ ContactImport,
230
+ ContactNote,
231
+ ContactRemoved,
232
+ ContactRenamed,
233
+ ContactRequirement,
234
+ ContactShared,
235
+ ContactSync,
236
+ DialogStatus,
237
+ FoundPeer,
238
+ ImportedPhone,
239
+ MusicTrack,
240
+ PersonalChannel,
241
+ PhoneShared,
242
+ PhotoResult,
243
+ ProfilePhoto,
244
+ SavedPhoneContact,
245
+ SignUp,
246
+ SuggestedBirthday,
247
+ TopPeer,
248
+ TopPeerState,
249
+ UserLink,
250
+ UserProfile,
251
+ UserStatus,
252
+ )
253
+ from tlgr.models.daemon import (
254
+ AccountHealth,
255
+ DaemonStatus,
256
+ DeadLetter,
257
+ DeadLetterResult,
258
+ EventBusStatus,
259
+ FloodRecord,
260
+ FloodResult,
261
+ HealthSummary,
262
+ Job,
263
+ JobState,
264
+ JobTestFrame,
265
+ LifecycleResult,
266
+ LogLine,
267
+ ReconnectedAccount,
268
+ ReconnectResult,
269
+ SavedState,
270
+ SaveStateResult,
271
+ ServiceResult,
272
+ WebhookProbe,
273
+ WebhookSettings,
274
+ )
275
+ from tlgr.models.dialog import (
276
+ ActionBar,
277
+ ArchiveResult,
278
+ ArchiveSettings,
279
+ Badge,
280
+ Catchup,
281
+ CatchupChat,
282
+ ChatInfo,
283
+ ChatlistInvite,
284
+ ChatlistJoin,
285
+ ChatlistUpdates,
286
+ ChatSwitches,
287
+ ChatTheme,
288
+ ChatWallpaper,
289
+ ClearResult,
290
+ DeleteChatResult,
291
+ Dialog,
292
+ Draft,
293
+ Folder,
294
+ FolderBadge,
295
+ FolderDeleted,
296
+ FolderList,
297
+ FolderOrder,
298
+ ImportState,
299
+ LeaveResult,
300
+ MuteResult,
301
+ NotifySettings,
302
+ NotifyView,
303
+ OpenResult,
304
+ PeerResult,
305
+ PinnedDialogs,
306
+ Poster,
307
+ PosterReport,
308
+ Promo,
309
+ ReadChats,
310
+ SavedDialog,
311
+ SecretChat,
312
+ ShareDeleted,
313
+ SuggestedFolder,
314
+ ThemeResult,
315
+ TranslateResult,
316
+ TtlResult,
317
+ TypingResult,
318
+ UnreadResult,
319
+ WallpaperResult,
320
+ )
321
+ from tlgr.models.envelope import ErrEnvelope, Meta, OkEnvelope, OpRequest
322
+ from tlgr.models.error import ErrorBody
323
+ from tlgr.models.event import DecodedEvent, EventEnvelope, EventType, EventTypeDetail
324
+ from tlgr.models.export import (
325
+ ExportedFile,
326
+ ExportResult,
327
+ MessageRange,
328
+ TakeoutSession,
329
+ TakeoutStatus,
330
+ )
331
+ from tlgr.models.gift import (
332
+ GiftAttribute,
333
+ GiftAuction,
334
+ GiftAuctionState,
335
+ GiftCollection,
336
+ GiftConverted,
337
+ GiftCrafted,
338
+ GiftDisplay,
339
+ GiftListing,
340
+ GiftOfferResolved,
341
+ GiftTransferred,
342
+ GiftUpgraded,
343
+ GiftVariant,
344
+ OwnedGift,
345
+ ResaleGift,
346
+ StarGift,
347
+ UniqueGift,
348
+ )
349
+ from tlgr.models.inline import (
350
+ InlineEdited,
351
+ InlineResult,
352
+ InlineSent,
353
+ PreparedMessage,
354
+ PreparedSaved,
355
+ )
356
+ from tlgr.models.location import (
357
+ GeoPoint,
358
+ LiveLocation,
359
+ LiveStopped,
360
+ MapPreview,
361
+ Nearby,
362
+ NearbyPeer,
363
+ SentLocation,
364
+ Venue,
365
+ )
366
+ from tlgr.models.media import (
367
+ AutoDownloadPreset,
368
+ AutoDownloadSaved,
369
+ AutoDownloadSettings,
370
+ AutoSaveException,
371
+ AutoSaveRule,
372
+ AutoSaveSaved,
373
+ AutoSaveSettings,
374
+ ContentSettings,
375
+ ContentSettingsSaved,
376
+ Downloaded,
377
+ FileRef,
378
+ MediaEdited,
379
+ MediaEvent,
380
+ MediaExportResult,
381
+ MediaFile,
382
+ MediaInfo,
383
+ MediaItem,
384
+ MediaLimits,
385
+ MediaQuality,
386
+ MediaRead,
387
+ MediaSize,
388
+ PaidItem,
389
+ PaidPost,
390
+ StorageCleared,
391
+ StorageUsage,
392
+ Transfer,
393
+ TransferRestarted,
394
+ TransferStopped,
395
+ Uploaded,
396
+ Wallpaper,
397
+ WallpaperInstalled,
398
+ WallpaperRemoved,
399
+ WallpaperSettings,
400
+ WallpaperUploaded,
401
+ )
402
+ from tlgr.models.message import (
403
+ Button,
404
+ ComposeResult,
405
+ DeleteResult,
406
+ DiceCatalog,
407
+ DraftCleared,
408
+ EditResult,
409
+ Effect,
410
+ EntityReport,
411
+ FactCheck,
412
+ Forward,
413
+ ForwardedMessage,
414
+ GameInfo,
415
+ GameScore,
416
+ LinkResult,
417
+ MediaKind,
418
+ MediaSummary,
419
+ Message,
420
+ MessageEntity,
421
+ PaidMessageSettings,
422
+ PinResult,
423
+ ReactionSummary,
424
+ ReadReceipts,
425
+ ReadResult,
426
+ ReplyHeader,
427
+ ReplyMarkup,
428
+ ReportResult,
429
+ ScheduledSent,
430
+ ServiceAction,
431
+ SponsoredHidden,
432
+ SponsoredMessage,
433
+ SuggestedPostState,
434
+ SummaryResult,
435
+ Tone,
436
+ Transcription,
437
+ Translation,
438
+ ViewCount,
439
+ WebPagePreview,
440
+ )
441
+ from tlgr.models.net import (
442
+ AppConfigDoc,
443
+ Country,
444
+ CountryCode,
445
+ DcOption,
446
+ InfoTopic,
447
+ NearestDc,
448
+ NetStatus,
449
+ NetUsage,
450
+ PingResult,
451
+ PromoData,
452
+ Proxy,
453
+ ProxyLink,
454
+ ProxyProbe,
455
+ ProxySelection,
456
+ ServerConfig,
457
+ SyncCursors,
458
+ )
459
+ from tlgr.models.notify import (
460
+ ExceptionsCleared,
461
+ NotifyException,
462
+ NotifyReset,
463
+ NotifyTarget,
464
+ Ringtone,
465
+ RingtoneSaved,
466
+ )
467
+ from tlgr.models.page import Page, PageInfo
468
+ from tlgr.models.payment import (
469
+ BankCard,
470
+ Invoice,
471
+ InvoiceLink,
472
+ InvoiceSent,
473
+ PaymentForm,
474
+ PaymentInfo,
475
+ PaymentInfoCleared,
476
+ PriceLine,
477
+ Receipt,
478
+ StarSubscription,
479
+ SubscriptionChange,
480
+ )
481
+ from tlgr.models.peer import (
482
+ Chat,
483
+ Peer,
484
+ PeerKind,
485
+ PeerRef,
486
+ PeerRefKind,
487
+ Photo,
488
+ Rights,
489
+ User,
490
+ UserRef,
491
+ parse_message_link,
492
+ parse_peer_ref,
493
+ parse_user_ref,
494
+ )
495
+ from tlgr.models.poll import Poll, PollOption, PollStats, PollVoter
496
+ from tlgr.models.premium import (
497
+ GiftCode,
498
+ GiftCodeApplied,
499
+ GiveawayInfo,
500
+ GiveawayLaunched,
501
+ GiveawayWinner,
502
+ PremiumFeatures,
503
+ PremiumGiftOption,
504
+ PremiumGiftQuote,
505
+ PremiumLimit,
506
+ PremiumStatus,
507
+ PrepaidGiveaway,
508
+ )
509
+ from tlgr.models.privacy import (
510
+ GlobalPrivacy,
511
+ PaidMessageRevenue,
512
+ PrivacyExceptions,
513
+ PrivacyRule,
514
+ PrivacySettings,
515
+ )
516
+ from tlgr.models.profile import (
517
+ AdminedChannel,
518
+ ColorPalette,
519
+ ColorSet,
520
+ EmojiStatusItem,
521
+ EmojiStatusSet,
522
+ PhotosDeleted,
523
+ PresenceSet,
524
+ ProfileFull,
525
+ ProfileLink,
526
+ ProfilePhotoSet,
527
+ ProfileUpdated,
528
+ ProfileUsername,
529
+ UsernameSet,
530
+ )
531
+ from tlgr.models.reaction import (
532
+ AvailableReaction,
533
+ ChatReactions,
534
+ MessageReactionState,
535
+ PaidReactionResult,
536
+ ReactionPrivacy,
537
+ ReactionPurge,
538
+ ReactionReport,
539
+ ReactionResult,
540
+ ReactionTag,
541
+ ReactionUser,
542
+ TopReactor,
543
+ )
544
+ from tlgr.models.resolve import (
545
+ CachedPeerRow,
546
+ LinkKind,
547
+ ResolvedLink,
548
+ ResolvedPhone,
549
+ ResolvedRef,
550
+ ResolvedUsername,
551
+ )
552
+ from tlgr.models.settings import (
553
+ CloudTheme,
554
+ Language,
555
+ SettingChange,
556
+ SettingUnset,
557
+ SettingValue,
558
+ ThemeInstalled,
559
+ )
560
+ from tlgr.models.stars import (
561
+ StarsBalance,
562
+ StarsRating,
563
+ StarsRefulfill,
564
+ StarsRevenue,
565
+ StarsTransaction,
566
+ StarsUrl,
567
+ )
568
+ from tlgr.models.sticker import (
569
+ EmojiGroup,
570
+ EmojiKeyword,
571
+ FaveResult,
572
+ GifResult,
573
+ GifSaved,
574
+ GifSent,
575
+ PackCreated,
576
+ PackDeleted,
577
+ PackEdited,
578
+ PackStickerAdded,
579
+ PackStickerRemoved,
580
+ RecentResult,
581
+ SavedGif,
582
+ Sticker,
583
+ StickerSet,
584
+ StickerSetOrder,
585
+ StickerSetsChanged,
586
+ )
587
+ from tlgr.models.story import (
588
+ AlbumDeleted,
589
+ AlbumOrder,
590
+ BlockedStoryUser,
591
+ BlocklistChange,
592
+ LiveStory,
593
+ MediaArea,
594
+ StealthMode,
595
+ StoriesDeleted,
596
+ Story,
597
+ StoryAlbum,
598
+ StoryEvent,
599
+ StoryExport,
600
+ StoryFeedPeer,
601
+ StoryFwdHeader,
602
+ StoryHidden,
603
+ StoryHiddenPeer,
604
+ StoryLimits,
605
+ StoryPinned,
606
+ StoryPostCheck,
607
+ StoryPrivacy,
608
+ StoryReactionResult,
609
+ StoryRead,
610
+ StoryReply,
611
+ StoryReport,
612
+ StoryShared,
613
+ StoryStats,
614
+ StoryViewer,
615
+ StoryViews,
616
+ )
617
+ from tlgr.models.sync import (
618
+ BackfillPage,
619
+ CatchUpResult,
620
+ ChannelState,
621
+ DifferenceResult,
622
+ ResetResult,
623
+ SyncStatus,
624
+ )
625
+ from tlgr.models.todo import Todo, TodoTask
626
+ from tlgr.models.webapp import (
627
+ WebAppDownload,
628
+ WebAppInfo,
629
+ WebAppProlong,
630
+ WebAppSent,
631
+ WebAppSession,
632
+ )
633
+
634
+ __all__ = [
635
+ "MEDIA_NONE",
636
+ "UNSET",
637
+ "AccountDeletion",
638
+ "AccountHealth",
639
+ "AccountRecord",
640
+ "AccountState",
641
+ "AccountTtl",
642
+ "ActionBar",
643
+ "ActiveCall",
644
+ "AdminLogEvent",
645
+ "AdminResult",
646
+ "AdminedChannel",
647
+ "AffiliateBot",
648
+ "AffiliateResult",
649
+ "AlbumDeleted",
650
+ "AlbumOrder",
651
+ "AntiSpamReport",
652
+ "AppConfigDoc",
653
+ "ArchiveResult",
654
+ "ArchiveSettings",
655
+ "AttachMenuBot",
656
+ "AutoDownloadPreset",
657
+ "AutoDownloadSaved",
658
+ "AutoDownloadSettings",
659
+ "AutoSaveException",
660
+ "AutoSaveRule",
661
+ "AutoSaveSaved",
662
+ "AutoSaveSettings",
663
+ "AutologinUrl",
664
+ "AvailableReaction",
665
+ "BackfillPage",
666
+ "Badge",
667
+ "BankCard",
668
+ "BlockResult",
669
+ "BlockedPeer",
670
+ "BlockedSet",
671
+ "BlockedStoryUser",
672
+ "BlocklistChange",
673
+ "Boost",
674
+ "BoostApplied",
675
+ "BoostStatus",
676
+ "BotAccess",
677
+ "BotAnswer",
678
+ "BotApiResult",
679
+ "BotCommand",
680
+ "BotCommandSet",
681
+ "BotConnection",
682
+ "BotCreated",
683
+ "BotEdited",
684
+ "BotIds",
685
+ "BotInfo",
686
+ "BotPaused",
687
+ "BotPermission",
688
+ "BotQuery",
689
+ "BotRef",
690
+ "BotRights",
691
+ "BotStarted",
692
+ "BotStopped",
693
+ "BotToken",
694
+ "BotUsernameCheck",
695
+ "BotUsernames",
696
+ "BotVerification",
697
+ "BotVerified",
698
+ "BotWelcomeMessage",
699
+ "BusinessAway",
700
+ "BusinessConnection",
701
+ "BusinessGreeting",
702
+ "BusinessIntro",
703
+ "BusinessLocation",
704
+ "BusinessMessage",
705
+ "BusinessOpen",
706
+ "BusinessProfile",
707
+ "BusinessRecipients",
708
+ "BusinessSet",
709
+ "Button",
710
+ "CachedPeerRow",
711
+ "Call",
712
+ "CallConfig",
713
+ "CallDebugUpload",
714
+ "CallDeclined",
715
+ "CallEnded",
716
+ "CallEvent",
717
+ "CallIdentity",
718
+ "CallLogDeleted",
719
+ "CallLogEntry",
720
+ "CallRating",
721
+ "CallRef",
722
+ "CallSignal",
723
+ "CallUpgrade",
724
+ "CatchUpResult",
725
+ "Catchup",
726
+ "CatchupChat",
727
+ "ChainBlock",
728
+ "ChannelState",
729
+ "Chat",
730
+ "ChatEditResult",
731
+ "ChatInfo",
732
+ "ChatLink",
733
+ "ChatLinkSet",
734
+ "ChatPhotoResult",
735
+ "ChatReactions",
736
+ "ChatStats",
737
+ "ChatSwitches",
738
+ "ChatTheme",
739
+ "ChatWallpaper",
740
+ "ChatlistInvite",
741
+ "ChatlistJoin",
742
+ "ChatlistUpdates",
743
+ "ClearResult",
744
+ "CloseFriends",
745
+ "CloudTheme",
746
+ "ColorPalette",
747
+ "ColorSet",
748
+ "CommandSent",
749
+ "CommunityResult",
750
+ "CommunityRow",
751
+ "ComposeResult",
752
+ "ConferenceCreated",
753
+ "ConferenceDeclined",
754
+ "ConferenceInfo",
755
+ "ConferenceInvited",
756
+ "ConferenceRelayed",
757
+ "ConferenceRemoved",
758
+ "ConferenceRevoked",
759
+ "ConfigEntry",
760
+ "ConfigKey",
761
+ "ConfigPaths",
762
+ "ConfigValue",
763
+ "Contact",
764
+ "ContactAdded",
765
+ "ContactImport",
766
+ "ContactNote",
767
+ "ContactRemoved",
768
+ "ContactRenamed",
769
+ "ContactRequirement",
770
+ "ContactShared",
771
+ "ContactSync",
772
+ "ContentSettings",
773
+ "ContentSettingsSaved",
774
+ "Country",
775
+ "CountryCode",
776
+ "CreatedChat",
777
+ "DaemonStatus",
778
+ "DcOption",
779
+ "DeadLetter",
780
+ "DeadLetterResult",
781
+ "DecodedEvent",
782
+ "DefaultRights",
783
+ "DeleteChatResult",
784
+ "DeleteResult",
785
+ "DeviceLock",
786
+ "Dialog",
787
+ "DialogStatus",
788
+ "DiceCatalog",
789
+ "DifferenceResult",
790
+ "DirectBanResult",
791
+ "DirectDialog",
792
+ "DiscussionCandidate",
793
+ "DiscussionResult",
794
+ "Downloaded",
795
+ "Draft",
796
+ "DraftCleared",
797
+ "EditResult",
798
+ "Effect",
799
+ "EmojiGame",
800
+ "EmojiGroup",
801
+ "EmojiKeyword",
802
+ "EmojiStatusItem",
803
+ "EmojiStatusSet",
804
+ "EntityReport",
805
+ "EphemeralDeleted",
806
+ "EphemeralSent",
807
+ "ErrEnvelope",
808
+ "ErrorBody",
809
+ "EventBusStatus",
810
+ "EventEnvelope",
811
+ "EventType",
812
+ "EventTypeDetail",
813
+ "ExceptionsCleared",
814
+ "ExportResult",
815
+ "ExportedFile",
816
+ "FactCheck",
817
+ "FaveResult",
818
+ "FileRef",
819
+ "FloodRecord",
820
+ "FloodResult",
821
+ "Folder",
822
+ "FolderBadge",
823
+ "FolderDeleted",
824
+ "FolderList",
825
+ "FolderOrder",
826
+ "Forward",
827
+ "ForwardedMessage",
828
+ "FoundPeer",
829
+ "GameInfo",
830
+ "GameScore",
831
+ "GameSent",
832
+ "GeoPoint",
833
+ "GifResult",
834
+ "GifSaved",
835
+ "GifSent",
836
+ "GiftAttribute",
837
+ "GiftAuction",
838
+ "GiftAuctionState",
839
+ "GiftCode",
840
+ "GiftCodeApplied",
841
+ "GiftCollection",
842
+ "GiftConverted",
843
+ "GiftCrafted",
844
+ "GiftDisplay",
845
+ "GiftListing",
846
+ "GiftOfferResolved",
847
+ "GiftTransferred",
848
+ "GiftUpgraded",
849
+ "GiftVariant",
850
+ "GiveawayInfo",
851
+ "GiveawayLaunched",
852
+ "GiveawayWinner",
853
+ "GlobalPrivacy",
854
+ "Graph",
855
+ "GroupCall",
856
+ "GroupCallCreated",
857
+ "GroupCallEnded",
858
+ "GroupCallEvent",
859
+ "GroupCallInvited",
860
+ "GroupCallJoined",
861
+ "GroupCallLeft",
862
+ "GroupCallLink",
863
+ "GroupCallParticipant",
864
+ "GroupCallSettings",
865
+ "GroupCallStarted",
866
+ "HealthSummary",
867
+ "HighScore",
868
+ "ImportState",
869
+ "ImportedPhone",
870
+ "InCallMessage",
871
+ "InCallMessagesDeleted",
872
+ "InfoTopic",
873
+ "InitResult",
874
+ "InlineEdited",
875
+ "InlineResult",
876
+ "InlineSent",
877
+ "Invite",
878
+ "InviteDeleted",
879
+ "InviteInfo",
880
+ "InvitePeek",
881
+ "InviteRevoked",
882
+ "Invoice",
883
+ "InvoiceLink",
884
+ "InvoiceSent",
885
+ "Job",
886
+ "JobState",
887
+ "JobTestFrame",
888
+ "JoinRequest",
889
+ "JoinResult",
890
+ "Keyboard",
891
+ "KeyboardButton",
892
+ "Language",
893
+ "LeaveResult",
894
+ "LifecycleResult",
895
+ "LinkKind",
896
+ "LinkResult",
897
+ "LiveLocation",
898
+ "LiveStopped",
899
+ "LiveStory",
900
+ "LogLine",
901
+ "LoginCodes",
902
+ "LoginEmail",
903
+ "LoginResult",
904
+ "MapPreview",
905
+ "MediaArea",
906
+ "MediaEdited",
907
+ "MediaEvent",
908
+ "MediaExportResult",
909
+ "MediaFile",
910
+ "MediaInfo",
911
+ "MediaItem",
912
+ "MediaKind",
913
+ "MediaLimits",
914
+ "MediaQuality",
915
+ "MediaRead",
916
+ "MediaSize",
917
+ "MediaSummary",
918
+ "MemberResult",
919
+ "MembersAdded",
920
+ "MenuButton",
921
+ "Message",
922
+ "MessageEntity",
923
+ "MessageRange",
924
+ "MessageReactionState",
925
+ "Meta",
926
+ "MigrateResult",
927
+ "MissingInvitee",
928
+ "Model",
929
+ "MusicTrack",
930
+ "MuteResult",
931
+ "MuteState",
932
+ "Nearby",
933
+ "NearbyPeer",
934
+ "NearestDc",
935
+ "NetStatus",
936
+ "NetUsage",
937
+ "NotifyException",
938
+ "NotifyReset",
939
+ "NotifySettings",
940
+ "NotifyTarget",
941
+ "NotifyView",
942
+ "OkEnvelope",
943
+ "OpRequest",
944
+ "OpenResult",
945
+ "OwnedGift",
946
+ "PackCreated",
947
+ "PackDeleted",
948
+ "PackEdited",
949
+ "PackStickerAdded",
950
+ "PackStickerRemoved",
951
+ "Page",
952
+ "PageInfo",
953
+ "PaidItem",
954
+ "PaidMessageRevenue",
955
+ "PaidMessageSettings",
956
+ "PaidPost",
957
+ "PaidReactionResult",
958
+ "Participant",
959
+ "ParticipantRemoved",
960
+ "Passkey",
961
+ "PassportDeletion",
962
+ "PassportForm",
963
+ "PassportRequirement",
964
+ "PassportValue",
965
+ "PassportVerification",
966
+ "PasswordReset",
967
+ "PasswordState",
968
+ "PaymentForm",
969
+ "PaymentInfo",
970
+ "PaymentInfoCleared",
971
+ "Peer",
972
+ "PeerKind",
973
+ "PeerRef",
974
+ "PeerRefKind",
975
+ "PeerResult",
976
+ "PermissionResult",
977
+ "PermissionView",
978
+ "PersonalChannel",
979
+ "PhoneChange",
980
+ "PhoneShared",
981
+ "Photo",
982
+ "PhotoResult",
983
+ "PhotosDeleted",
984
+ "PinResult",
985
+ "PingResult",
986
+ "PinnedDialogs",
987
+ "Poll",
988
+ "PollOption",
989
+ "PollStats",
990
+ "PollVoter",
991
+ "Poster",
992
+ "PosterReport",
993
+ "PremiumFeatures",
994
+ "PremiumGiftOption",
995
+ "PremiumGiftQuote",
996
+ "PremiumLimit",
997
+ "PremiumStatus",
998
+ "PrepaidGiveaway",
999
+ "PreparedMessage",
1000
+ "PreparedSaved",
1001
+ "PresenceSet",
1002
+ "Pressed",
1003
+ "PreviewChange",
1004
+ "PreviewMedia",
1005
+ "PriceLine",
1006
+ "PrivacyExceptions",
1007
+ "PrivacyRule",
1008
+ "PrivacySettings",
1009
+ "ProfileFull",
1010
+ "ProfileLink",
1011
+ "ProfilePhoto",
1012
+ "ProfilePhotoSet",
1013
+ "ProfileUpdated",
1014
+ "ProfileUsername",
1015
+ "Promo",
1016
+ "PromoData",
1017
+ "Proxy",
1018
+ "ProxyLink",
1019
+ "ProxyProbe",
1020
+ "ProxySelection",
1021
+ "PublicForward",
1022
+ "QrLogin",
1023
+ "QuickReply",
1024
+ "QuickReplyMessage",
1025
+ "QuickReplySent",
1026
+ "QuickReplySet",
1027
+ "RaisedHand",
1028
+ "ReactionPrivacy",
1029
+ "ReactionPurge",
1030
+ "ReactionReport",
1031
+ "ReactionResult",
1032
+ "ReactionSummary",
1033
+ "ReactionTag",
1034
+ "ReactionUser",
1035
+ "ReadChats",
1036
+ "ReadReceipts",
1037
+ "ReadResult",
1038
+ "Receipt",
1039
+ "RecentBots",
1040
+ "RecentResult",
1041
+ "ReconnectResult",
1042
+ "ReconnectedAccount",
1043
+ "RecoveryEmail",
1044
+ "ReplyHeader",
1045
+ "ReplyMarkup",
1046
+ "ReportOutcome",
1047
+ "ReportResult",
1048
+ "Request",
1049
+ "RequestResult",
1050
+ "ResaleGift",
1051
+ "ResetResult",
1052
+ "ResolvedLink",
1053
+ "ResolvedPhone",
1054
+ "ResolvedRef",
1055
+ "ResolvedUsername",
1056
+ "RevenueSummary",
1057
+ "RevenueTransaction",
1058
+ "RightInfo",
1059
+ "Rights",
1060
+ "Ringtone",
1061
+ "RingtoneSaved",
1062
+ "RtmpInfo",
1063
+ "SaveStateResult",
1064
+ "SavedDialog",
1065
+ "SavedGif",
1066
+ "SavedPhoneContact",
1067
+ "SavedState",
1068
+ "ScheduledSent",
1069
+ "ScoreSet",
1070
+ "SecretChat",
1071
+ "SendAsPeer",
1072
+ "SendAsResult",
1073
+ "SentCode",
1074
+ "SentLocation",
1075
+ "ServerConfig",
1076
+ "ServiceAction",
1077
+ "ServiceResult",
1078
+ "Session",
1079
+ "SessionChange",
1080
+ "SessionTermination",
1081
+ "SettingChange",
1082
+ "SettingResult",
1083
+ "SettingUnset",
1084
+ "SettingValue",
1085
+ "SettingsView",
1086
+ "ShareDeleted",
1087
+ "SignUp",
1088
+ "SimilarChat",
1089
+ "SmsJobs",
1090
+ "SponsoredHidden",
1091
+ "SponsoredMessage",
1092
+ "SponsoredRead",
1093
+ "SponsoredReport",
1094
+ "StarGift",
1095
+ "StarRefProgram",
1096
+ "StarSubscription",
1097
+ "StarsBalance",
1098
+ "StarsRating",
1099
+ "StarsRefulfill",
1100
+ "StarsRevenue",
1101
+ "StarsTransaction",
1102
+ "StarsTransferQuote",
1103
+ "StarsUrl",
1104
+ "StatValue",
1105
+ "StealthMode",
1106
+ "Sticker",
1107
+ "StickerSet",
1108
+ "StickerSetOrder",
1109
+ "StickerSetsChanged",
1110
+ "StorageCleared",
1111
+ "StorageUsage",
1112
+ "StoriesDeleted",
1113
+ "Story",
1114
+ "StoryAlbum",
1115
+ "StoryEvent",
1116
+ "StoryExport",
1117
+ "StoryFeedPeer",
1118
+ "StoryFwdHeader",
1119
+ "StoryHidden",
1120
+ "StoryHiddenPeer",
1121
+ "StoryLimits",
1122
+ "StoryPinned",
1123
+ "StoryPostCheck",
1124
+ "StoryPrivacy",
1125
+ "StoryReactionResult",
1126
+ "StoryRead",
1127
+ "StoryReply",
1128
+ "StoryReport",
1129
+ "StoryShared",
1130
+ "StoryStats",
1131
+ "StoryViewer",
1132
+ "StoryViews",
1133
+ "StreamChannel",
1134
+ "StreamDownload",
1135
+ "StreamProgress",
1136
+ "SubscriptionChange",
1137
+ "SuggestedBirthday",
1138
+ "SuggestedFolder",
1139
+ "SuggestedPostResult",
1140
+ "SuggestedPostState",
1141
+ "Suggestion",
1142
+ "SuggestionResult",
1143
+ "SummaryResult",
1144
+ "SupportInfo",
1145
+ "SyncCursors",
1146
+ "SyncStatus",
1147
+ "TakeoutSession",
1148
+ "TakeoutStatus",
1149
+ "TempPassword",
1150
+ "Terms",
1151
+ "ThemeInstalled",
1152
+ "ThemeResult",
1153
+ "Todo",
1154
+ "TodoTask",
1155
+ "ToggledAttachMenu",
1156
+ "Tone",
1157
+ "TopPeer",
1158
+ "TopPeerState",
1159
+ "TopReactor",
1160
+ "Topic",
1161
+ "TopicPinResult",
1162
+ "TopicReadResult",
1163
+ "TopicResult",
1164
+ "Transcription",
1165
+ "Transfer",
1166
+ "TransferRestarted",
1167
+ "TransferResult",
1168
+ "TransferStopped",
1169
+ "TranslateResult",
1170
+ "Translation",
1171
+ "TtlResult",
1172
+ "TypingResult",
1173
+ "UniqueGift",
1174
+ "UnreadResult",
1175
+ "Unset",
1176
+ "Uploaded",
1177
+ "UrlAuth",
1178
+ "User",
1179
+ "UserLink",
1180
+ "UserProfile",
1181
+ "UserRef",
1182
+ "UserStatus",
1183
+ "UsernameCheck",
1184
+ "UsernameResult",
1185
+ "UsernameSet",
1186
+ "ValidationIssue",
1187
+ "ValidationReport",
1188
+ "Venue",
1189
+ "VerificationResult",
1190
+ "VideoState",
1191
+ "ViewCount",
1192
+ "VolumeState",
1193
+ "Wallpaper",
1194
+ "WallpaperInstalled",
1195
+ "WallpaperRemoved",
1196
+ "WallpaperResult",
1197
+ "WallpaperSettings",
1198
+ "WallpaperUploaded",
1199
+ "WebAppDownload",
1200
+ "WebAppInfo",
1201
+ "WebAppProlong",
1202
+ "WebAppSent",
1203
+ "WebAppSession",
1204
+ "WebPagePreview",
1205
+ "WebSession",
1206
+ "WebSessionRevocation",
1207
+ "WebhookProbe",
1208
+ "WebhookSettings",
1209
+ "WelcomeDeleted",
1210
+ "WelcomeMessage",
1211
+ "WelcomeResult",
1212
+ "WelcomeSet",
1213
+ "WorkHours",
1214
+ "decode",
1215
+ "encode",
1216
+ "parse_message_link",
1217
+ "parse_peer_ref",
1218
+ "parse_user_ref",
1219
+ "to_builtins",
1220
+ ]