SecurityAndStuff 3 سال پیش
والد
کامیت
04bc414ed8
4فایلهای تغییر یافته به همراه143 افزوده شده و 36 حذف شده
  1. 1 1
      gramjs/tl/AllTLObjects.ts
  2. 116 20
      gramjs/tl/api.d.ts
  3. 12 7
      gramjs/tl/apiTl.js
  4. 14 8
      gramjs/tl/static/api.tl

+ 1 - 1
gramjs/tl/AllTLObjects.ts

@@ -1,4 +1,4 @@
-export const LAYER = 137;
+export const LAYER = 138;
 
 
 import { Api } from "./";
 import { Api } from "./";
 
 

+ 116 - 20
gramjs/tl/api.d.ts

@@ -1763,12 +1763,13 @@ export namespace Api {
         readOutboxMaxId: int;
         readOutboxMaxId: int;
         unreadCount: int;
         unreadCount: int;
         unreadMentionsCount: int;
         unreadMentionsCount: int;
+        unreadReactionsCount: int;
         notifySettings: Api.TypePeerNotifySettings;
         notifySettings: Api.TypePeerNotifySettings;
         pts?: int;
         pts?: int;
         draft?: Api.TypeDraftMessage;
         draft?: Api.TypeDraftMessage;
         folderId?: int;
         folderId?: int;
     }> {
     }> {
-        CONSTRUCTOR_ID: 739712882;
+        CONSTRUCTOR_ID: 2834157813;
         SUBCLASS_OF_ID: 1120787796;
         SUBCLASS_OF_ID: 1120787796;
         classType: "constructor";
         classType: "constructor";
         className: "Dialog";
         className: "Dialog";
@@ -1782,6 +1783,7 @@ export namespace Api {
         readOutboxMaxId: int;
         readOutboxMaxId: int;
         unreadCount: int;
         unreadCount: int;
         unreadMentionsCount: int;
         unreadMentionsCount: int;
+        unreadReactionsCount: int;
         notifySettings: Api.TypePeerNotifySettings;
         notifySettings: Api.TypePeerNotifySettings;
         pts?: int;
         pts?: int;
         draft?: Api.TypeDraftMessage;
         draft?: Api.TypeDraftMessage;
@@ -5113,6 +5115,7 @@ export namespace Api {
         official?: boolean;
         official?: boolean;
         masks?: boolean;
         masks?: boolean;
         animated?: boolean;
         animated?: boolean;
+        gifs?: boolean;
         installedDate?: int;
         installedDate?: int;
         id: long;
         id: long;
         accessHash: long;
         accessHash: long;
@@ -5134,6 +5137,7 @@ export namespace Api {
         official?: boolean;
         official?: boolean;
         masks?: boolean;
         masks?: boolean;
         animated?: boolean;
         animated?: boolean;
+        gifs?: boolean;
         installedDate?: int;
         installedDate?: int;
         id: long;
         id: long;
         accessHash: long;
         accessHash: long;
@@ -10567,9 +10571,9 @@ export namespace Api {
         min?: boolean;
         min?: boolean;
         canSeeList?: boolean;
         canSeeList?: boolean;
         results: Api.TypeReactionCount[];
         results: Api.TypeReactionCount[];
-        recentReactons?: Api.TypeMessageUserReaction[];
+        recentReactions?: Api.TypeMessagePeerReaction[];
     }> {
     }> {
-        CONSTRUCTOR_ID: 142306870;
+        CONSTRUCTOR_ID: 1328256121;
         SUBCLASS_OF_ID: 2321221404;
         SUBCLASS_OF_ID: 2321221404;
         classType: "constructor";
         classType: "constructor";
         className: "MessageReactions";
         className: "MessageReactions";
@@ -10578,19 +10582,7 @@ export namespace Api {
         min?: boolean;
         min?: boolean;
         canSeeList?: boolean;
         canSeeList?: boolean;
         results: Api.TypeReactionCount[];
         results: Api.TypeReactionCount[];
-        recentReactons?: Api.TypeMessageUserReaction[];
-    }
-    export class MessageUserReaction extends VirtualClass<{
-        userId: long;
-        reaction: string;
-    }> {
-        CONSTRUCTOR_ID: 2468889850;
-        SUBCLASS_OF_ID: 1905515325;
-        classType: "constructor";
-        className: "MessageUserReaction";
-        static fromReader(reader: Reader): MessageUserReaction;
-        userId: long;
-        reaction: string;
+        recentReactions?: Api.TypeMessagePeerReaction[];
     }
     }
     export class AvailableReaction extends VirtualClass<{
     export class AvailableReaction extends VirtualClass<{
         // flags: null;
         // flags: null;
@@ -10622,6 +10614,24 @@ export namespace Api {
         aroundAnimation?: Api.TypeDocument;
         aroundAnimation?: Api.TypeDocument;
         centerIcon?: Api.TypeDocument;
         centerIcon?: Api.TypeDocument;
     }
     }
+    export class MessagePeerReaction extends VirtualClass<{
+        // flags: null;
+        big?: boolean;
+        unread?: boolean;
+        peerId: Api.TypePeer;
+        reaction: string;
+    }> {
+        CONSTRUCTOR_ID: 1370914559;
+        SUBCLASS_OF_ID: 2943591077;
+        classType: "constructor";
+        className: "MessagePeerReaction";
+        static fromReader(reader: Reader): MessagePeerReaction;
+        // flags: null;
+        big?: boolean;
+        unread?: boolean;
+        peerId: Api.TypePeer;
+        reaction: string;
+    }
     export class ResPQ extends VirtualClass<{
     export class ResPQ extends VirtualClass<{
         nonce: int128;
         nonce: int128;
         serverNonce: int128;
         serverNonce: int128;
@@ -12679,18 +12689,20 @@ export namespace Api {
         export class MessageReactionsList extends VirtualClass<{
         export class MessageReactionsList extends VirtualClass<{
             // flags: null;
             // flags: null;
             count: int;
             count: int;
-            reactions: Api.TypeMessageUserReaction[];
+            reactions: Api.TypeMessagePeerReaction[];
+            chats: Api.TypeChat[];
             users: Api.TypeUser[];
             users: Api.TypeUser[];
             nextOffset?: string;
             nextOffset?: string;
         }> {
         }> {
-            CONSTRUCTOR_ID: 2741408316;
+            CONSTRUCTOR_ID: 834488621;
             SUBCLASS_OF_ID: 1627186662;
             SUBCLASS_OF_ID: 1627186662;
             classType: "constructor";
             classType: "constructor";
             className: "messages.MessageReactionsList";
             className: "messages.MessageReactionsList";
             static fromReader(reader: Reader): MessageReactionsList;
             static fromReader(reader: Reader): MessageReactionsList;
             // flags: null;
             // flags: null;
             count: int;
             count: int;
-            reactions: Api.TypeMessageUserReaction[];
+            reactions: Api.TypeMessagePeerReaction[];
+            chats: Api.TypeChat[];
             users: Api.TypeUser[];
             users: Api.TypeUser[];
             nextOffset?: string;
             nextOffset?: string;
         }
         }
@@ -12713,6 +12725,23 @@ export namespace Api {
             hash: int;
             hash: int;
             reactions: Api.TypeAvailableReaction[];
             reactions: Api.TypeAvailableReaction[];
         }
         }
+        export class TranslateNoResult extends VirtualClass<void> {
+            CONSTRUCTOR_ID: 1741309751;
+            SUBCLASS_OF_ID: 37897192;
+            classType: "constructor";
+            className: "messages.TranslateNoResult";
+            static fromReader(reader: Reader): TranslateNoResult;
+        }
+        export class TranslateResultText extends VirtualClass<{
+            text: string;
+        }> {
+            CONSTRUCTOR_ID: 2719283152;
+            SUBCLASS_OF_ID: 37897192;
+            classType: "constructor";
+            className: "messages.TranslateResultText";
+            static fromReader(reader: Reader): TranslateResultText;
+            text: string;
+        }
     }
     }
 
 
     export namespace updates {
     export namespace updates {
@@ -14056,6 +14085,9 @@ export namespace Api {
         export type TypeAvailableReactions =
         export type TypeAvailableReactions =
             | messages.AvailableReactionsNotModified
             | messages.AvailableReactionsNotModified
             | messages.AvailableReactions;
             | messages.AvailableReactions;
+        export type TypeTranslatedText =
+            | messages.TranslateNoResult
+            | messages.TranslateResultText;
     }
     }
 
 
     export namespace updates {
     export namespace updates {
@@ -18456,6 +18488,7 @@ export namespace Api {
         export class SendReaction extends Request<
         export class SendReaction extends Request<
             Partial<{
             Partial<{
                 // flags: null;
                 // flags: null;
+                big?: boolean;
                 peer: Api.TypeEntityLike;
                 peer: Api.TypeEntityLike;
                 msgId: MessageIDLike;
                 msgId: MessageIDLike;
                 reaction?: string;
                 reaction?: string;
@@ -18468,6 +18501,7 @@ export namespace Api {
             className: "messages.SendReaction";
             className: "messages.SendReaction";
             static fromReader(reader: Reader): SendReaction;
             static fromReader(reader: Reader): SendReaction;
             // flags: null;
             // flags: null;
+            big?: boolean;
             peer: Api.TypeEntityLike;
             peer: Api.TypeEntityLike;
             msgId: MessageIDLike;
             msgId: MessageIDLike;
             reaction?: string;
             reaction?: string;
@@ -18551,6 +18585,65 @@ export namespace Api {
             static fromReader(reader: Reader): SetDefaultReaction;
             static fromReader(reader: Reader): SetDefaultReaction;
             reaction: string;
             reaction: string;
         }
         }
+        export class TranslateText extends Request<
+            Partial<{
+                // flags: null;
+                peer?: Api.TypeEntityLike;
+                msgId?: MessageIDLike;
+                text?: string;
+                fromLang?: string;
+                toLang: string;
+            }>,
+            messages.TypeTranslatedText
+        > {
+            CONSTRUCTOR_ID: 617508334;
+            SUBCLASS_OF_ID: 37897192;
+            classType: "request";
+            className: "messages.TranslateText";
+            static fromReader(reader: Reader): TranslateText;
+            // flags: null;
+            peer?: Api.TypeEntityLike;
+            msgId?: MessageIDLike;
+            text?: string;
+            fromLang?: string;
+            toLang: string;
+        }
+        export class GetUnreadReactions extends Request<
+            Partial<{
+                peer: Api.TypeEntityLike;
+                offsetId: int;
+                addOffset: int;
+                limit: int;
+                maxId: int;
+                minId: int;
+            }>,
+            messages.TypeMessages
+        > {
+            CONSTRUCTOR_ID: 3898322458;
+            SUBCLASS_OF_ID: 3568569182;
+            classType: "request";
+            className: "messages.GetUnreadReactions";
+            static fromReader(reader: Reader): GetUnreadReactions;
+            peer: Api.TypeEntityLike;
+            offsetId: int;
+            addOffset: int;
+            limit: int;
+            maxId: int;
+            minId: int;
+        }
+        export class ReadReactions extends Request<
+            Partial<{
+                peer: Api.TypeEntityLike;
+            }>,
+            messages.TypeAffectedHistory
+        > {
+            CONSTRUCTOR_ID: 2195870167;
+            SUBCLASS_OF_ID: 743031062;
+            classType: "request";
+            className: "messages.ReadReactions";
+            static fromReader(reader: Reader): ReadReactions;
+            peer: Api.TypeEntityLike;
+        }
     }
     }
 
 
     export namespace updates {
     export namespace updates {
@@ -21486,8 +21579,8 @@ export namespace Api {
     export type TypeSearchResultsPosition = SearchResultPosition;
     export type TypeSearchResultsPosition = SearchResultPosition;
     export type TypeReactionCount = ReactionCount;
     export type TypeReactionCount = ReactionCount;
     export type TypeMessageReactions = MessageReactions;
     export type TypeMessageReactions = MessageReactions;
-    export type TypeMessageUserReaction = MessageUserReaction;
     export type TypeAvailableReaction = AvailableReaction;
     export type TypeAvailableReaction = AvailableReaction;
+    export type TypeMessagePeerReaction = MessagePeerReaction;
     export type TypeResPQ = ResPQ;
     export type TypeResPQ = ResPQ;
     export type TypeP_Q_inner_data =
     export type TypeP_Q_inner_data =
         | PQInnerData
         | PQInnerData
@@ -21824,6 +21917,9 @@ export namespace Api {
         | messages.SetChatAvailableReactions
         | messages.SetChatAvailableReactions
         | messages.GetAvailableReactions
         | messages.GetAvailableReactions
         | messages.SetDefaultReaction
         | messages.SetDefaultReaction
+        | messages.TranslateText
+        | messages.GetUnreadReactions
+        | messages.ReadReactions
         | updates.GetState
         | updates.GetState
         | updates.GetDifference
         | updates.GetDifference
         | updates.GetChannelDifference
         | updates.GetChannelDifference

+ 12 - 7
gramjs/tl/apiTl.js

@@ -135,7 +135,7 @@ messageActionSetMessagesTTL#aa1afbfd period:int = MessageAction;
 messageActionGroupCallScheduled#b3a07661 call:InputGroupCall schedule_date:int = MessageAction;
 messageActionGroupCallScheduled#b3a07661 call:InputGroupCall schedule_date:int = MessageAction;
 messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;
 messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;
 messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
 messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
-dialog#2c171f72 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 notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
+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;
 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;
 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;
 photoEmpty#2331b22d id:long = Photo;
 photoEmpty#2331b22d id:long = Photo;
 photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = Photo;
 photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = Photo;
@@ -438,7 +438,7 @@ inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
 inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
 inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
 inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
 inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
 inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
 inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
-stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?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;
+stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true gifs: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;
 messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
 messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
 messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
 messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
 botCommand#c27ac8c7 command:string description:string = BotCommand;
 botCommand#c27ac8c7 command:string description:string = BotCommand;
@@ -946,12 +946,14 @@ users.userFull#3b6d152e full_user:UserFull chats:Vector<Chat> users:Vector<User>
 messages.peerSettings#6880b94d settings:PeerSettings chats:Vector<Chat> users:Vector<User> = messages.PeerSettings;
 messages.peerSettings#6880b94d settings:PeerSettings chats:Vector<Chat> users:Vector<User> = messages.PeerSettings;
 auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut;
 auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut;
 reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;
 reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;
-messageReactions#87b6e36 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactons:flags.1?Vector<MessageUserReaction> = MessageReactions;
-messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction;
-messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
+messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;
+messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
 availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;
 availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;
 messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
 messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
 messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
 messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
+messages.translateNoResult#67ca4737 = messages.TranslatedText;
+messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;
+messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;
 ---functions---
 ---functions---
 invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
 invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
 invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector<long> query:!X = X;
 invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector<long> query:!X = X;
@@ -1224,12 +1226,15 @@ messages.hideChatJoinRequest#7fe7e815 flags:# approved:flags.0?true peer:InputPe
 messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;
 messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;
 messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;
 messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;
 messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;
 messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;
-messages.sendReaction#25690ce4 flags:# peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
+messages.sendReaction#25690ce4 flags:# big:flags.1?true peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
 messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;
 messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;
 messages.getMessageReactionsList#e0ee6b77 flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = messages.MessageReactionsList;
 messages.getMessageReactionsList#e0ee6b77 flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = messages.MessageReactionsList;
 messages.setChatAvailableReactions#14050ea6 peer:InputPeer available_reactions:Vector<string> = Updates;
 messages.setChatAvailableReactions#14050ea6 peer:InputPeer available_reactions:Vector<string> = Updates;
 messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;
 messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;
 messages.setDefaultReaction#d960c4d4 reaction:string = Bool;
 messages.setDefaultReaction#d960c4d4 reaction:string = Bool;
+messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;
+messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
+messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;
 updates.getState#edd4882a = updates.State;
 updates.getState#edd4882a = updates.State;
 updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
 updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
 updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
 updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
@@ -1365,4 +1370,4 @@ stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;
 stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;
 stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;
 stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
 stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
 stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
 stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
-`;
+`;

+ 14 - 8
gramjs/tl/static/api.tl

@@ -194,7 +194,7 @@ messageActionGroupCallScheduled#b3a07661 call:InputGroupCall schedule_date:int =
 messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;
 messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;
 messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
 messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
 
 
-dialog#2c171f72 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 notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
+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;
 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;
 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;
 
 
 photoEmpty#2331b22d id:long = Photo;
 photoEmpty#2331b22d id:long = Photo;
@@ -570,7 +570,7 @@ inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
 inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
 inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
 inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
 inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
 
 
-stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?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;
+stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true gifs: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;
 
 
 messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
 messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
 messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
 messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
@@ -1311,17 +1311,20 @@ auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut
 
 
 reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;
 reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;
 
 
-messageReactions#87b6e36 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactons:flags.1?Vector<MessageUserReaction> = MessageReactions;
+messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;
 
 
-messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction;
-
-messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
+messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
 
 
 availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;
 availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;
 
 
 messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
 messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
 messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
 messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
 
 
+messages.translateNoResult#67ca4737 = messages.TranslatedText;
+messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;
+
+messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;
+
 ---functions---
 ---functions---
 
 
 invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
 invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
@@ -1600,12 +1603,15 @@ messages.hideChatJoinRequest#7fe7e815 flags:# approved:flags.0?true peer:InputPe
 messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;
 messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;
 messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;
 messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;
 messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;
 messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;
-messages.sendReaction#25690ce4 flags:# peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
+messages.sendReaction#25690ce4 flags:# big:flags.1?true peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
 messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;
 messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;
 messages.getMessageReactionsList#e0ee6b77 flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = messages.MessageReactionsList;
 messages.getMessageReactionsList#e0ee6b77 flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = messages.MessageReactionsList;
 messages.setChatAvailableReactions#14050ea6 peer:InputPeer available_reactions:Vector<string> = Updates;
 messages.setChatAvailableReactions#14050ea6 peer:InputPeer available_reactions:Vector<string> = Updates;
 messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;
 messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;
 messages.setDefaultReaction#d960c4d4 reaction:string = Bool;
 messages.setDefaultReaction#d960c4d4 reaction:string = Bool;
+messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;
+messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
+messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;
 
 
 updates.getState#edd4882a = updates.State;
 updates.getState#edd4882a = updates.State;
 updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
 updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
@@ -1754,4 +1760,4 @@ stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel
 stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
 stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
 stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
 stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
 
 
-// LAYER 137
+// LAYER 138