Skip to content

Commit 4be83a3

Browse files
committed
Update Pyrogram to v2.0.36
Update to Pyrogram v2.0.36 from the latest commit on the official repo https://github.com/pyrogram/pyrogram/
1 parent b631a71 commit 4be83a3

4 files changed

Lines changed: 100 additions & 59 deletions

File tree

compiler/api/source/main_api.tl

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;
169169
messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
170170
messageActionWebViewDataSentMe#47dd8079 text:string data:string = MessageAction;
171171
messageActionWebViewDataSent#b4c38cb5 text:string = MessageAction;
172+
messageActionGiftPremium#aba0f5c6 currency:string amount:long months:int = MessageAction;
172173

173174
dialog#a8edd0f5 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
174175
dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;
@@ -218,7 +219,7 @@ inputReportReasonFake#f5ddd6e7 = ReportReason;
218219
inputReportReasonIllegalDrugs#a8eb2be = ReportReason;
219220
inputReportReasonPersonalDetails#9ec7863d = ReportReason;
220221

221-
userFull#8c72ea81 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true id:long about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights = UserFull;
222+
userFull#c4b1fc3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true id:long about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector<PremiumGiftOption> = UserFull;
222223

223224
contact#145ade0b user_id:long mutual:Bool = Contact;
224225

@@ -300,7 +301,7 @@ updateDeleteChannelMessages#c32d5b12 channel_id:long messages:Vector<int> pts:in
300301
updateChannelMessageViews#f226ac08 channel_id:long id:int views:int = Update;
301302
updateChatParticipantAdmin#d7ca61a2 chat_id:long user_id:long is_admin:Bool version:int = Update;
302303
updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update;
303-
updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector<long> = Update;
304+
updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true emojis:flags.1?true order:Vector<long> = Update;
304305
updateStickerSets#43ae3dec = Update;
305306
updateSavedGifs#9375341e = Update;
306307
updateBotInlineQuery#496f379c flags:# query_id:long user_id:long query:string geo:flags.0?GeoPoint peer_type:flags.1?InlineQueryPeerType offset:string = Update;
@@ -369,6 +370,7 @@ updateWebViewResultSent#1592b79d query_id:long = Update;
369370
updateBotMenuButton#14b85813 bot_id:long button:BotMenuButton = Update;
370371
updateSavedRingtones#74d8be99 = Update;
371372
updateTranscribedAudio#84cd5a flags:# pending:flags.0?true peer:Peer msg_id:int transcription_id:long text:string = Update;
373+
updateReadFeaturedEmojiStickers#fb4c496c = Update;
372374

373375
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
374376

@@ -471,6 +473,7 @@ inputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey;
471473
inputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey;
472474
inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey;
473475
inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey;
476+
inputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey;
474477

475478
privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey;
476479
privacyKeyChatInvite#500e6dfa = PrivacyKey;
@@ -480,6 +483,7 @@ privacyKeyForwards#69ec56a3 = PrivacyKey;
480483
privacyKeyProfilePhoto#96151fed = PrivacyKey;
481484
privacyKeyPhoneNumber#d19ae46d = PrivacyKey;
482485
privacyKeyAddedByPhone#42ffd42b = PrivacyKey;
486+
privacyKeyVoiceMessages#697f414 = PrivacyKey;
483487

484488
inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule;
485489
inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule;
@@ -510,6 +514,7 @@ documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_strea
510514
documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;
511515
documentAttributeFilename#15590068 file_name:string = DocumentAttribute;
512516
documentAttributeHasStickers#9801d2f7 = DocumentAttribute;
517+
documentAttributeCustomEmoji#fd149899 flags:# free:flags.0?true alt:string stickerset:InputStickerSet = DocumentAttribute;
513518

514519
messages.stickersNotModified#f1749a22 = messages.Stickers;
515520
messages.stickers#30a6ec7e hash:long stickers:Vector<Document> = messages.Stickers;
@@ -553,8 +558,9 @@ inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
553558
inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
554559
inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
555560
inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
561+
inputStickerSetPremiumGifts#c88b3b02 = InputStickerSet;
556562

557-
stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector<PhotoSize> thumb_dc_id:flags.4?int thumb_version:flags.4?int count:int hash:int = StickerSet;
563+
stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector<PhotoSize> thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet;
558564

559565
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
560566
messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
@@ -606,6 +612,7 @@ messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity;
606612
messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity;
607613
messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity;
608614
messageEntitySpoiler#32ca960f offset:int length:int = MessageEntity;
615+
messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity;
609616

610617
inputChannelEmpty#ee8c1e86 = InputChannel;
611618
inputChannel#f35aec28 channel_id:long access_hash:long = InputChannel;
@@ -720,7 +727,7 @@ draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage;
720727
draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector<MessageEntity> date:int = DraftMessage;
721728

722729
messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;
723-
messages.featuredStickers#84c02310 hash:long count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;
730+
messages.featuredStickers#be382906 flags:# premium:flags.0?true hash:long count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;
724731

725732
messages.recentStickersNotModified#b17f890 = messages.RecentStickers;
726733
messages.recentStickers#88d37c56 hash:long packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;
@@ -732,6 +739,7 @@ messages.stickerSetInstallResultArchive#35e410a8 sets:Vector<StickerSetCovered>
732739

733740
stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered;
734741
stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector<Document> = StickerSetCovered;
742+
stickerSetFullCovered#1aed5ee5 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = StickerSetCovered;
735743

736744
maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords;
737745

@@ -820,10 +828,11 @@ inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector
820828

821829
inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation;
822830
inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation;
831+
inputWebFileAudioAlbumThumbLocation#f46fe924 flags:# small:flags.2?true document:flags.0?InputDocument title:flags.1?string performer:flags.1?string = InputWebFileLocation;
823832

824833
upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;
825834

826-
payments.paymentForm#b0133b37 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector<User> = payments.PaymentForm;
835+
payments.paymentForm#a0058751 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON additional_methods:flags.6?Vector<PaymentFormMethod> saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?Vector<PaymentSavedCredentials> users:Vector<User> = payments.PaymentForm;
827836

828837
payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = payments.ValidatedRequestedInfo;
829838

@@ -1365,6 +1374,13 @@ messages.transcribedAudio#93752c52 flags:# pending:flags.0?true transcription_id
13651374

13661375
help.premiumPromo#8a4f3c29 status_text:string status_entities:Vector<MessageEntity> video_sections:Vector<string> videos:Vector<Document> currency:string monthly_amount:long users:Vector<User> = help.PremiumPromo;
13671376

1377+
inputStorePaymentPremiumSubscription#a6751e66 flags:# restore:flags.0?true = InputStorePaymentPurpose;
1378+
inputStorePaymentGiftPremium#616f7fe8 user_id:InputUser currency:string amount:long = InputStorePaymentPurpose;
1379+
1380+
premiumGiftOption#74c34319 flags:# months:int currency:string amount:long bot_url:string store_product:flags.0?string = PremiumGiftOption;
1381+
1382+
paymentFormMethod#88f8f21b url:string title:string = PaymentFormMethod;
1383+
13681384
---functions---
13691385

13701386
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
@@ -1408,7 +1424,7 @@ account.checkUsername#2714d86c username:string = Bool;
14081424
account.updateUsername#3e0bdd7c username:string = User;
14091425
account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;
14101426
account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;
1411-
account.deleteAccount#418d4e0b reason:string = Bool;
1427+
account.deleteAccount#a2c0cf74 flags:# reason:string password:flags.0?InputCheckPasswordSRP = Bool;
14121428
account.getAccountTTL#8fc711d = AccountDaysTTL;
14131429
account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;
14141430
account.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode;
@@ -1546,7 +1562,7 @@ messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector<int> increment:Bool
15461562
messages.editChatAdmin#a85bd1c2 chat_id:long user_id:InputUser is_admin:Bool = Bool;
15471563
messages.migrateChat#a2875319 chat_id:long = Updates;
15481564
messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
1549-
messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector<long> = Bool;
1565+
messages.reorderStickerSets#78337739 flags:# masks:flags.0?true emojis:flags.1?true order:Vector<long> = Bool;
15501566
messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document;
15511567
messages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs;
15521568
messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool;
@@ -1566,7 +1582,7 @@ messages.readFeaturedStickers#5b118126 id:Vector<long> = Bool;
15661582
messages.getRecentStickers#9da9403b flags:# attached:flags.0?true hash:long = messages.RecentStickers;
15671583
messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;
15681584
messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool;
1569-
messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers;
1585+
messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true emojis:flags.1?true offset_id:long limit:int = messages.ArchivedStickers;
15701586
messages.getMaskStickers#640f82b8 hash:long = messages.AllStickers;
15711587
messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector<StickerSetCovered>;
15721588
messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates;
@@ -1667,6 +1683,9 @@ messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInl
16671683
messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates;
16681684
messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio;
16691685
messages.rateTranscribedAudio#7f1d072f peer:InputPeer msg_id:int transcription_id:long good:Bool = Bool;
1686+
messages.getCustomEmojiDocuments#d9ab0f54 document_id:Vector<long> = Vector<Document>;
1687+
messages.getEmojiStickers#fbfca18f hash:long = messages.AllStickers;
1688+
messages.getFeaturedEmojiStickers#ecf6736 hash:long = messages.FeaturedStickers;
16701689

16711690
updates.getState#edd4882a = updates.State;
16721691
updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
@@ -1770,10 +1789,9 @@ payments.getSavedInfo#227d824b = payments.SavedInfo;
17701789
payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool;
17711790
payments.getBankCardData#2e79d779 number:string = payments.BankCardData;
17721791
payments.exportInvoice#f91b065 invoice_media:InputMedia = payments.ExportedInvoice;
1773-
payments.assignAppStoreTransaction#fec13c6 flags:# restore:flags.0?true transaction_id:string receipt:bytes = Updates;
1774-
payments.assignPlayMarketTransaction#4faa4aed purchase_token:string = Updates;
1775-
payments.restorePlayMarketReceipt#d164e36a receipt:bytes = Updates;
1776-
payments.canPurchasePremium#aa6a90c8 = Bool;
1792+
payments.assignAppStoreTransaction#80ed747d receipt:bytes purpose:InputStorePaymentPurpose = Updates;
1793+
payments.assignPlayMarketTransaction#dffd50d3 receipt:DataJSON purpose:InputStorePaymentPurpose = Updates;
1794+
payments.canPurchasePremium#9fc19eb6 purpose:InputStorePaymentPurpose = Bool;
17771795
payments.requestRecurringPayment#146e958d user_id:InputUser recurring_init_charge:string invoice_media:InputMedia = Updates;
17781796

17791797
stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;
@@ -1831,4 +1849,4 @@ stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel
18311849
stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
18321850
stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
18331851

1834-
// LAYER 143
1852+
// LAYER 144

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ START_PARAM_EMPTY The start parameter is empty
285285
START_PARAM_INVALID The start parameter is invalid
286286
START_PARAM_TOO_LONG The start parameter is too long
287287
STICKERSET_INVALID The requested sticker set is invalid
288+
STICKERSET_NOT_MODIFIED The sticker set is not modified
288289
STICKERS_EMPTY The sticker provided is empty
290+
STICKERS_TOO_MUCH Too many stickers in the set
289291
STICKER_DOCUMENT_INVALID The sticker document is invalid
290292
STICKER_EMOJI_INVALID The sticker emoji is invalid
291293
STICKER_FILE_INVALID The sticker file is invalid
@@ -294,6 +296,7 @@ STICKER_INVALID The provided sticker is invalid
294296
STICKER_PNG_DIMENSIONS The sticker png dimensions are invalid
295297
STICKER_PNG_NOPNG Stickers must be png files but the provided image was not a png
296298
STICKER_TGS_NOTGS A tgs sticker file was expected, but something else was provided
299+
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
297300
STICKER_THUMB_PNG_NOPNG A png sticker thumbnail file was expected, but something else was provided
298301
TAKEOUT_INVALID The takeout id is invalid
299302
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
@@ -350,4 +353,4 @@ WEBDOCUMENT_URL_INVALID The web document URL is invalid
350353
WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
351354
WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
352355
YOU_BLOCKED_USER You blocked this user
353-
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
356+
ENTITY_BOUNDS_INVALID The message entity bounds are invalid

pyrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
__version__ = "2.0.35"
19+
__version__ = "2.0.36"
2020
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
2121
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
2222

0 commit comments

Comments
 (0)