Update layer to 124.
This commit is contained in:
parent
143846f09b
commit
642a9a9efb
@ -4419,6 +4419,43 @@ importMessages chat_id:int53 message_file:InputFile attached_files:vector<InputF
|
|||||||
//@description Replaces current permanent invite link for a chat with a new permanent invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right @chat_id Chat identifier
|
//@description Replaces current permanent invite link for a chat with a new permanent invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right @chat_id Chat identifier
|
||||||
replacePermanentChatInviteLink chat_id:int53 = ChatInviteLink;
|
replacePermanentChatInviteLink chat_id:int53 = ChatInviteLink;
|
||||||
|
|
||||||
|
//@description Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@expire_date Point in time (Unix timestamp) when the link will expire; pass 0 if never
|
||||||
|
//@member_limit Maximum number of chat members that can join the chat by the link simultaneously; 0-100000; pass 0 if not limited
|
||||||
|
createChatInviteLink chat_id:int53 expire_date:int32 member_limit:int32 = ChatInviteLink;
|
||||||
|
|
||||||
|
//@description Edits a non-permanent invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@invite_link Invite link to be edited
|
||||||
|
//@expire_date Point in time (Unix timestamp) when the link will expire; pass 0 if never
|
||||||
|
//@member_limit Maximum number of chat members that can join the chat by the link simultaneously; 0-100000; pass 0 if not limited
|
||||||
|
editChatInviteLink chat_id:int53 invite_link:string expire_date:int32 member_limit:int32 = ChatInviteLink;
|
||||||
|
|
||||||
|
//@description Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@administrator_user_id User identifier of a chat administrator
|
||||||
|
//@is_revoked Pass true if revoked links needs to be returned instead of active or expired
|
||||||
|
//@offset_date Creation date of an invite link starting after which to return invite links; use 0 to get results from the beginning
|
||||||
|
//@offset_invite_link Invite link starting after which to return invite links; use empty string to get results from the beginning
|
||||||
|
//@limit Maximum number of invite links to return
|
||||||
|
getChatInviteLinks chat_id:int53 administrator_user_id:int32 is_revoked:Bool offset_date:int32 offset_invite_link:string limit:int32 = ChatInviteLinks;
|
||||||
|
|
||||||
|
//@description Returns chat members joined a chat by an invite link. Requires administrator privileges and can_invite_users right in the chat @chat_id Chat identifier @invite_link Invite link for which to return chat members
|
||||||
|
//@offset_member A chat member from which to return next chat members; use null to get results from the beginning @limit Maximum number of chat members to return
|
||||||
|
getChatInviteLinkMembers chat_id:int53 invite_link:string offset_member:chatInviteLinkMember limit:int32 = ChatInviteLinkMembers;
|
||||||
|
|
||||||
|
//@description Revokes a non-permanent invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@invite_link Invite link to be revoked
|
||||||
|
revokeChatInviteLink chat_id:int53 invite_link:string = ChatInviteLink;
|
||||||
|
|
||||||
|
//@description Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat @chat_id Chat identifier @invite_link Invite link to revoke
|
||||||
|
deleteRevokedChatInviteLink chat_id:int53 invite_link:string = Ok;
|
||||||
|
|
||||||
|
//@description Deletes all revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat @chat_id Chat identifier
|
||||||
|
deleteAllRevokedChatInviteLinks chat_id:int53 = Ok;
|
||||||
|
|
||||||
//@description Checks the validity of an invite link for a chat and returns information about the corresponding chat @invite_link Invite link to be checked; must begin with "https://t.me/joinchat/", "https://telegram.me/joinchat/", or "https://telegram.dog/joinchat/"
|
//@description Checks the validity of an invite link for a chat and returns information about the corresponding chat @invite_link Invite link to be checked; must begin with "https://t.me/joinchat/", "https://telegram.me/joinchat/", or "https://telegram.dog/joinchat/"
|
||||||
checkChatInviteLink invite_link:string = ChatInviteLinkInfo;
|
checkChatInviteLink invite_link:string = ChatInviteLinkInfo;
|
||||||
|
|
||||||
|
Binary file not shown.
@ -111,11 +111,11 @@ userStatusLastMonth#77ebc742 = UserStatus;
|
|||||||
chatEmpty#9ba2d800 id:int = Chat;
|
chatEmpty#9ba2d800 id:int = Chat;
|
||||||
chat#3bda1bde flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;
|
chat#3bda1bde flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;
|
||||||
chatForbidden#7328bdb id:int title:string = Chat;
|
chatForbidden#7328bdb id:int title:string = Chat;
|
||||||
channel#d31a961e flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int = Chat;
|
channel#d31a961e flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int = Chat;
|
||||||
channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat;
|
channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat;
|
||||||
|
|
||||||
chatFull#f3474af6 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall = ChatFull;
|
chatFull#f06c4018 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int = ChatFull;
|
||||||
channelFull#7a7de4f7 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall = ChatFull;
|
channelFull#2548c037 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> = ChatFull;
|
||||||
|
|
||||||
chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant;
|
chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant;
|
||||||
chatParticipantCreator#da13538a user_id:int = ChatParticipant;
|
chatParticipantCreator#da13538a user_id:int = ChatParticipant;
|
||||||
@ -128,8 +128,8 @@ chatPhotoEmpty#37c1011c = ChatPhoto;
|
|||||||
chatPhoto#d20b9f3c flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation dc_id:int = ChatPhoto;
|
chatPhoto#d20b9f3c flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation dc_id:int = ChatPhoto;
|
||||||
|
|
||||||
messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message;
|
messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message;
|
||||||
message#58ae39c9 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> = Message;
|
message#bce383d2 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
|
||||||
messageService#286fa604 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction = Message;
|
messageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message;
|
||||||
|
|
||||||
messageMediaEmpty#3ded6320 = MessageMedia;
|
messageMediaEmpty#3ded6320 = MessageMedia;
|
||||||
messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;
|
messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;
|
||||||
@ -171,6 +171,7 @@ messageActionContactSignUp#f3f25f76 = MessageAction;
|
|||||||
messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction;
|
messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction;
|
||||||
messageActionGroupCall#7a0d7f42 flags:# call:InputGroupCall duration:flags.0?int = MessageAction;
|
messageActionGroupCall#7a0d7f42 flags:# call:InputGroupCall duration:flags.0?int = MessageAction;
|
||||||
messageActionInviteToGroupCall#76b9f11a call:InputGroupCall users:Vector<int> = MessageAction;
|
messageActionInviteToGroupCall#76b9f11a call:InputGroupCall users:Vector<int> = MessageAction;
|
||||||
|
messageActionSetMessagesTTL#aa1afbfd period:int = 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#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;
|
||||||
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;
|
||||||
@ -213,12 +214,12 @@ inputReportReasonSpam#58dbcab8 = ReportReason;
|
|||||||
inputReportReasonViolence#1e22c78d = ReportReason;
|
inputReportReasonViolence#1e22c78d = ReportReason;
|
||||||
inputReportReasonPornography#2e59d922 = ReportReason;
|
inputReportReasonPornography#2e59d922 = ReportReason;
|
||||||
inputReportReasonChildAbuse#adf44ee3 = ReportReason;
|
inputReportReasonChildAbuse#adf44ee3 = ReportReason;
|
||||||
inputReportReasonOther#e1746d0a text:string = ReportReason;
|
inputReportReasonOther#c1e4a2b1 = ReportReason;
|
||||||
inputReportReasonCopyright#9b89f93a = ReportReason;
|
inputReportReasonCopyright#9b89f93a = ReportReason;
|
||||||
inputReportReasonGeoIrrelevant#dbd4feed = ReportReason;
|
inputReportReasonGeoIrrelevant#dbd4feed = ReportReason;
|
||||||
inputReportReasonFake#f5ddd6e7 = ReportReason;
|
inputReportReasonFake#f5ddd6e7 = ReportReason;
|
||||||
|
|
||||||
userFull#edf17c12 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 user:User 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 = UserFull;
|
userFull#139a9a77 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 user:User 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 = UserFull;
|
||||||
|
|
||||||
contact#f911c994 user_id:int mutual:Bool = Contact;
|
contact#f911c994 user_id:int mutual:Bool = Contact;
|
||||||
|
|
||||||
@ -345,7 +346,6 @@ updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update;
|
|||||||
updateDialogFilterOrder#a5d72105 order:Vector<int> = Update;
|
updateDialogFilterOrder#a5d72105 order:Vector<int> = Update;
|
||||||
updateDialogFilters#3504914f = Update;
|
updateDialogFilters#3504914f = Update;
|
||||||
updatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update;
|
updatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update;
|
||||||
updateChannelParticipant#65d2b464 flags:# channel_id:int date:int user_id:int prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant qts:int = Update;
|
|
||||||
updateChannelMessageForwards#6e8a84df channel_id:int id:int forwards:int = Update;
|
updateChannelMessageForwards#6e8a84df channel_id:int id:int forwards:int = Update;
|
||||||
updateReadChannelDiscussionInbox#1cc7de54 flags:# channel_id:int top_msg_id:int read_max_id:int broadcast_id:flags.0?int broadcast_post:flags.0?int = Update;
|
updateReadChannelDiscussionInbox#1cc7de54 flags:# channel_id:int top_msg_id:int read_max_id:int broadcast_id:flags.0?int broadcast_post:flags.0?int = Update;
|
||||||
updateReadChannelDiscussionOutbox#4638a26c channel_id:int top_msg_id:int read_max_id:int = Update;
|
updateReadChannelDiscussionOutbox#4638a26c channel_id:int top_msg_id:int read_max_id:int = Update;
|
||||||
@ -356,6 +356,10 @@ updatePinnedChannelMessages#8588878b flags:# pinned:flags.0?true channel_id:int
|
|||||||
updateChat#1330a196 chat_id:int = Update;
|
updateChat#1330a196 chat_id:int = Update;
|
||||||
updateGroupCallParticipants#f2ebdb4e call:InputGroupCall participants:Vector<GroupCallParticipant> version:int = Update;
|
updateGroupCallParticipants#f2ebdb4e call:InputGroupCall participants:Vector<GroupCallParticipant> version:int = Update;
|
||||||
updateGroupCall#a45eb99b chat_id:int call:GroupCall = Update;
|
updateGroupCall#a45eb99b chat_id:int call:GroupCall = Update;
|
||||||
|
updatePeerHistoryTTL#bb9bb9a5 flags:# peer:Peer ttl_period:flags.0?int = Update;
|
||||||
|
updateChatParticipant#439b2b39 flags:# chat_id:int date:int user_id:int prev_participant:flags.0?ChatParticipant new_participant:flags.1?ChatParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
|
||||||
|
updateChannelParticipant#961adf2 flags:# channel_id:int date:int user_id:int prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
|
||||||
|
updateBotStopped#7f9488a user_id:int date:int stopped:Bool qts:int = Update;
|
||||||
|
|
||||||
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
|
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
|
||||||
|
|
||||||
@ -365,12 +369,12 @@ updates.differenceSlice#a8fb1981 new_messages:Vector<Message> new_encrypted_mess
|
|||||||
updates.differenceTooLong#4afe8f6d pts:int = updates.Difference;
|
updates.differenceTooLong#4afe8f6d pts:int = updates.Difference;
|
||||||
|
|
||||||
updatesTooLong#e317af7e = Updates;
|
updatesTooLong#e317af7e = Updates;
|
||||||
updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
|
updateShortMessage#faeff833 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
|
||||||
updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
|
updateShortChatMessage#1157b858 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
|
||||||
updateShort#78d4dec1 update:Update date:int = Updates;
|
updateShort#78d4dec1 update:Update date:int = Updates;
|
||||||
updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
|
updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
|
||||||
updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
|
updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
|
||||||
updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
|
updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
|
||||||
|
|
||||||
photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos;
|
photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos;
|
||||||
photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos;
|
photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos;
|
||||||
@ -873,12 +877,18 @@ channelAdminLogEventActionDiscardGroupCall#db9f9140 call:InputGroupCall = Channe
|
|||||||
channelAdminLogEventActionParticipantMute#f92424d2 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
channelAdminLogEventActionParticipantMute#f92424d2 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionParticipantUnmute#e64429c0 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
channelAdminLogEventActionParticipantUnmute#e64429c0 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionToggleGroupCallSetting#56d6a247 join_muted:Bool = ChannelAdminLogEventAction;
|
channelAdminLogEventActionToggleGroupCallSetting#56d6a247 join_muted:Bool = ChannelAdminLogEventAction;
|
||||||
|
channelAdminLogEventActionParticipantJoinByInvite#5cdada77 invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
|
channelAdminLogEventActionExportedInviteDelete#5a50fca4 invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
|
channelAdminLogEventActionExportedInviteRevoke#410a134e invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
|
channelAdminLogEventActionExportedInviteEdit#e90ebb59 prev_invite:ExportedChatInvite new_invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
|
channelAdminLogEventActionParticipantVolume#3e7f6847 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
||||||
|
channelAdminLogEventActionChangeHistoryTTL#6e941a38 prev_value:int new_value:int = ChannelAdminLogEventAction;
|
||||||
|
|
||||||
channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent;
|
channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent;
|
||||||
|
|
||||||
channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults;
|
channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults;
|
||||||
|
|
||||||
channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true = ChannelAdminLogEventsFilter;
|
channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true invites:flags.15?true = ChannelAdminLogEventsFilter;
|
||||||
|
|
||||||
popularContact#5ce14175 client_id:long importers:int = PopularContact;
|
popularContact#5ce14175 client_id:long importers:int = PopularContact;
|
||||||
|
|
||||||
@ -1036,7 +1046,7 @@ chatOnlines#f041e250 onlines:int = ChatOnlines;
|
|||||||
|
|
||||||
statsURL#47a971e0 url:string = StatsURL;
|
statsURL#47a971e0 url:string = StatsURL;
|
||||||
|
|
||||||
chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true = ChatAdminRights;
|
chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true = ChatAdminRights;
|
||||||
|
|
||||||
chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true until_date:int = ChatBannedRights;
|
chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true until_date:int = ChatBannedRights;
|
||||||
|
|
||||||
@ -1201,6 +1211,21 @@ messages.historyImportParsed#5e0fb7b9 flags:# pm:flags.0?true group:flags.1?true
|
|||||||
|
|
||||||
messages.affectedFoundMessages#ef8d3e6c pts:int pts_count:int offset:int messages:Vector<int> = messages.AffectedFoundMessages;
|
messages.affectedFoundMessages#ef8d3e6c pts:int pts_count:int offset:int messages:Vector<int> = messages.AffectedFoundMessages;
|
||||||
|
|
||||||
|
chatInviteImporter#1e3e6680 user_id:int date:int = ChatInviteImporter;
|
||||||
|
|
||||||
|
messages.exportedChatInvites#bdc62dcc count:int invites:Vector<ExportedChatInvite> users:Vector<User> = messages.ExportedChatInvites;
|
||||||
|
|
||||||
|
messages.exportedChatInvite#1871be50 invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
|
||||||
|
messages.exportedChatInviteReplaced#222600ef invite:ExportedChatInvite new_invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
|
||||||
|
|
||||||
|
messages.chatInviteImporters#81b6b00a count:int importers:Vector<ChatInviteImporter> users:Vector<User> = messages.ChatInviteImporters;
|
||||||
|
|
||||||
|
chatAdminWithInvites#dfd2330f admin_id:int invites_count:int revoked_invites_count:int = ChatAdminWithInvites;
|
||||||
|
|
||||||
|
messages.chatAdminsWithInvites#b69b72d7 admins:Vector<ChatAdminWithInvites> users:Vector<User> = messages.ChatAdminsWithInvites;
|
||||||
|
|
||||||
|
messages.checkedHistoryImportPeer#a24de717 confirm_text:string = messages.CheckedHistoryImportPeer;
|
||||||
|
|
||||||
---functions---
|
---functions---
|
||||||
|
|
||||||
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
||||||
@ -1238,7 +1263,7 @@ account.resetNotifySettings#db7e1747 = Bool;
|
|||||||
account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;
|
account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;
|
||||||
account.updateStatus#6628562c offline:Bool = Bool;
|
account.updateStatus#6628562c offline:Bool = Bool;
|
||||||
account.getWallPapers#aabb1763 hash:int = account.WallPapers;
|
account.getWallPapers#aabb1763 hash:int = account.WallPapers;
|
||||||
account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool;
|
account.reportPeer#c5ba3d86 peer:InputPeer reason:ReportReason message:string = Bool;
|
||||||
account.checkUsername#2714d86c username:string = Bool;
|
account.checkUsername#2714d86c username:string = Bool;
|
||||||
account.updateUsername#3e0bdd7c username:string = User;
|
account.updateUsername#3e0bdd7c username:string = User;
|
||||||
account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;
|
account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;
|
||||||
@ -1297,6 +1322,7 @@ account.getContentSettings#8b9b4dae = account.ContentSettings;
|
|||||||
account.getMultiWallPapers#65ad71dc wallpapers:Vector<InputWallPaper> = Vector<WallPaper>;
|
account.getMultiWallPapers#65ad71dc wallpapers:Vector<InputWallPaper> = Vector<WallPaper>;
|
||||||
account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;
|
account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;
|
||||||
account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;
|
account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;
|
||||||
|
account.reportProfilePhoto#fa8cc6f5 peer:InputPeer photo_id:InputPhoto reason:ReportReason message:string = Bool;
|
||||||
|
|
||||||
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
|
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
|
||||||
users.getFullUser#ca30a5b1 id:InputUser = UserFull;
|
users.getFullUser#ca30a5b1 id:InputUser = UserFull;
|
||||||
@ -1337,7 +1363,7 @@ messages.sendMedia#3491eba9 flags:# silent:flags.5?true background:flags.6?true
|
|||||||
messages.forwardMessages#d9fee60e flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int = Updates;
|
messages.forwardMessages#d9fee60e flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int = Updates;
|
||||||
messages.reportSpam#cf1592db peer:InputPeer = Bool;
|
messages.reportSpam#cf1592db peer:InputPeer = Bool;
|
||||||
messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings;
|
messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings;
|
||||||
messages.report#bd82b658 peer:InputPeer id:Vector<int> reason:ReportReason = Bool;
|
messages.report#8953ab4e peer:InputPeer id:Vector<int> reason:ReportReason message:string = Bool;
|
||||||
messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;
|
messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;
|
||||||
messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull;
|
messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull;
|
||||||
messages.editChatTitle#dc452855 chat_id:int title:string = Updates;
|
messages.editChatTitle#dc452855 chat_id:int title:string = Updates;
|
||||||
@ -1360,7 +1386,7 @@ messages.readMessageContents#36a73f77 id:Vector<int> = messages.AffectedMessages
|
|||||||
messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers;
|
messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers;
|
||||||
messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers;
|
messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers;
|
||||||
messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector<MessageEntity> = MessageMedia;
|
messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector<MessageEntity> = MessageMedia;
|
||||||
messages.exportChatInvite#df7534c peer:InputPeer = ExportedChatInvite;
|
messages.exportChatInvite#14b9bcd7 flags:# legacy_revoke_permanent:flags.2?true peer:InputPeer expire_date:flags.0?int usage_limit:flags.1?int = ExportedChatInvite;
|
||||||
messages.checkChatInvite#3eadb1bb hash:string = ChatInvite;
|
messages.checkChatInvite#3eadb1bb hash:string = ChatInvite;
|
||||||
messages.importChatInvite#6c50051c hash:string = Updates;
|
messages.importChatInvite#6c50051c hash:string = Updates;
|
||||||
messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet;
|
messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet;
|
||||||
@ -1456,6 +1482,15 @@ messages.checkHistoryImport#43fe19f3 import_head:string = messages.HistoryImport
|
|||||||
messages.initHistoryImport#34090c3b peer:InputPeer file:InputFile media_count:int = messages.HistoryImport;
|
messages.initHistoryImport#34090c3b peer:InputPeer file:InputFile media_count:int = messages.HistoryImport;
|
||||||
messages.uploadImportedMedia#2a862092 peer:InputPeer import_id:long file_name:string media:InputMedia = MessageMedia;
|
messages.uploadImportedMedia#2a862092 peer:InputPeer import_id:long file_name:string media:InputMedia = MessageMedia;
|
||||||
messages.startHistoryImport#b43df344 peer:InputPeer import_id:long = Bool;
|
messages.startHistoryImport#b43df344 peer:InputPeer import_id:long = Bool;
|
||||||
|
messages.getExportedChatInvites#a2b5a3f6 flags:# revoked:flags.3?true peer:InputPeer admin_id:InputUser offset_date:flags.2?int offset_link:flags.2?string limit:int = messages.ExportedChatInvites;
|
||||||
|
messages.getExportedChatInvite#73746f5c peer:InputPeer link:string = messages.ExportedChatInvite;
|
||||||
|
messages.editExportedChatInvite#2e4ffbe flags:# revoked:flags.2?true peer:InputPeer link:string expire_date:flags.0?int usage_limit:flags.1?int = messages.ExportedChatInvite;
|
||||||
|
messages.deleteRevokedExportedChatInvites#56987bd5 peer:InputPeer admin_id:InputUser = Bool;
|
||||||
|
messages.deleteExportedChatInvite#d464a42b peer:InputPeer link:string = Bool;
|
||||||
|
messages.getAdminsWithInvites#3920e6ef peer:InputPeer = messages.ChatAdminsWithInvites;
|
||||||
|
messages.getChatInviteImporters#26fb7289 peer:InputPeer link:string offset_date:int offset_user:InputUser limit:int = messages.ChatInviteImporters;
|
||||||
|
messages.setHistoryTTL#b80e5fe4 peer:InputPeer period:int = Updates;
|
||||||
|
messages.checkHistoryImportPeer#5dc60f03 peer:InputPeer = messages.CheckedHistoryImportPeer;
|
||||||
|
|
||||||
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;
|
||||||
@ -1495,7 +1530,7 @@ help.getUserInfo#38a08d3 user_id:InputUser = help.UserInfo;
|
|||||||
help.editUserInfo#66b91b70 user_id:InputUser message:string entities:Vector<MessageEntity> = help.UserInfo;
|
help.editUserInfo#66b91b70 user_id:InputUser message:string entities:Vector<MessageEntity> = help.UserInfo;
|
||||||
help.getPromoData#c0977421 = help.PromoData;
|
help.getPromoData#c0977421 = help.PromoData;
|
||||||
help.hidePromoData#1e251c95 peer:InputPeer = Bool;
|
help.hidePromoData#1e251c95 peer:InputPeer = Bool;
|
||||||
help.dismissSuggestion#77fa99f suggestion:string = Bool;
|
help.dismissSuggestion#f50dbaa1 peer:InputPeer suggestion:string = Bool;
|
||||||
help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList;
|
help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList;
|
||||||
|
|
||||||
channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;
|
channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;
|
||||||
@ -1533,6 +1568,7 @@ channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:In
|
|||||||
channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool;
|
channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool;
|
||||||
channels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates;
|
channels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates;
|
||||||
channels.getInactiveChannels#11e831ee = messages.InactiveChats;
|
channels.getInactiveChannels#11e831ee = messages.InactiveChats;
|
||||||
|
channels.convertToGigagroup#b290c69 channel:InputChannel = Updates;
|
||||||
|
|
||||||
bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;
|
bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;
|
||||||
bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;
|
bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;
|
||||||
|
Binary file not shown.
@ -1097,7 +1097,8 @@ void ConfigManager::dismiss_suggested_action(SuggestedAction suggested_action, P
|
|||||||
queries.push_back(std::move(promise));
|
queries.push_back(std::move(promise));
|
||||||
if (queries.size() == 1) {
|
if (queries.size() == 1) {
|
||||||
G()->net_query_dispatcher().dispatch_with_callback(
|
G()->net_query_dispatcher().dispatch_with_callback(
|
||||||
G()->net_query_creator().create(telegram_api::help_dismissSuggestion(action_str)),
|
G()->net_query_creator().create(
|
||||||
|
telegram_api::help_dismissSuggestion(make_tl_object<telegram_api::inputPeerEmpty>(), action_str)),
|
||||||
actor_shared(this, 100 + static_cast<int32>(suggested_action)));
|
actor_shared(this, 100 + static_cast<int32>(suggested_action)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1582,9 +1582,7 @@ class ExportChatInviteLinkQuery : public Td::ResultHandler {
|
|||||||
if (input_peer == nullptr) {
|
if (input_peer == nullptr) {
|
||||||
return on_error(0, Status::Error(400, "Can't access the chat"));
|
return on_error(0, Status::Error(400, "Can't access the chat"));
|
||||||
}
|
}
|
||||||
CHECK(is_permanent);
|
|
||||||
|
|
||||||
/*
|
|
||||||
int32 flags = 0;
|
int32 flags = 0;
|
||||||
if (expire_date > 0) {
|
if (expire_date > 0) {
|
||||||
flags |= telegram_api::messages_exportChatInvite::EXPIRE_DATE_MASK;
|
flags |= telegram_api::messages_exportChatInvite::EXPIRE_DATE_MASK;
|
||||||
@ -1595,11 +1593,9 @@ class ExportChatInviteLinkQuery : public Td::ResultHandler {
|
|||||||
if (is_permanent) {
|
if (is_permanent) {
|
||||||
flags |= telegram_api::messages_exportChatInvite::LEGACY_REVOKE_PERMANENT_MASK;
|
flags |= telegram_api::messages_exportChatInvite::LEGACY_REVOKE_PERMANENT_MASK;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
send_query(G()->net_query_creator().create(telegram_api::messages_exportChatInvite(std::move(input_peer))));
|
send_query(G()->net_query_creator().create(telegram_api::messages_exportChatInvite(
|
||||||
// send_query(G()->net_query_creator().create(telegram_api::messages_exportChatInvite(
|
flags, false /*ignored*/, std::move(input_peer), expire_date, usage_limit)));
|
||||||
// flags, false /*ignored*/, std::move(input_peer), expire_date, usage_limit)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_result(uint64 id, BufferSlice packet) override {
|
void on_result(uint64 id, BufferSlice packet) override {
|
||||||
@ -1629,7 +1625,7 @@ class ExportChatInviteLinkQuery : public Td::ResultHandler {
|
|||||||
promise_.set_error(std::move(status));
|
promise_.set_error(std::move(status));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
class EditChatInviteLinkQuery : public Td::ResultHandler {
|
class EditChatInviteLinkQuery : public Td::ResultHandler {
|
||||||
Promise<td_api::object_ptr<td_api::chatInviteLink>> promise_;
|
Promise<td_api::object_ptr<td_api::chatInviteLink>> promise_;
|
||||||
DialogId dialog_id_;
|
DialogId dialog_id_;
|
||||||
@ -1661,7 +1657,7 @@ class EditChatInviteLinkQuery : public Td::ResultHandler {
|
|||||||
return on_error(id, result_ptr.move_as_error());
|
return on_error(id, result_ptr.move_as_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = result_ptr.move_as_ok();
|
auto result = move_tl_object_as<telegram_api::messages_exportedChatInvite>(result_ptr.move_as_ok());
|
||||||
LOG(INFO) << "Receive result for ExportChatInviteQuery: " << to_string(result);
|
LOG(INFO) << "Receive result for ExportChatInviteQuery: " << to_string(result);
|
||||||
|
|
||||||
td->contacts_manager_->on_get_users(std::move(result->users_), "EditChatInviteLinkQuery");
|
td->contacts_manager_->on_get_users(std::move(result->users_), "EditChatInviteLinkQuery");
|
||||||
@ -1697,11 +1693,9 @@ class GetExportedChatInvitesQuery : public Td::ResultHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto input_user = td->contacts_manager_->get_input_user(administrator_user_id);
|
auto input_user = td->contacts_manager_->get_input_user(administrator_user_id);
|
||||||
|
CHECK(input_user != nullptr);
|
||||||
|
|
||||||
int32 flags = 0;
|
int32 flags = 0;
|
||||||
if (input_user != nullptr) {
|
|
||||||
flags |= telegram_api::messages_getExportedChatInvites::ADMIN_ID_MASK;
|
|
||||||
}
|
|
||||||
if (!offset_invite_link.empty() || offset_date != 0) {
|
if (!offset_invite_link.empty() || offset_date != 0) {
|
||||||
flags |= telegram_api::messages_getExportedChatInvites::OFFSET_DATE_MASK;
|
flags |= telegram_api::messages_getExportedChatInvites::OFFSET_DATE_MASK;
|
||||||
flags |= telegram_api::messages_getExportedChatInvites::OFFSET_LINK_MASK;
|
flags |= telegram_api::messages_getExportedChatInvites::OFFSET_LINK_MASK;
|
||||||
@ -1859,8 +1853,8 @@ class DeleteRevokedExportedChatInvitesQuery : public Td::ResultHandler {
|
|||||||
return on_error(0, Status::Error(400, "Can't access the chat"));
|
return on_error(0, Status::Error(400, "Can't access the chat"));
|
||||||
}
|
}
|
||||||
|
|
||||||
send_query(G()->net_query_creator().create(
|
send_query(G()->net_query_creator().create(telegram_api::messages_deleteRevokedExportedChatInvites(
|
||||||
telegram_api::messages_deleteRevokedExportedChatInvites(std::move(input_peer))));
|
std::move(input_peer), make_tl_object<telegram_api::inputUserSelf>())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_result(uint64 id, BufferSlice packet) override {
|
void on_result(uint64 id, BufferSlice packet) override {
|
||||||
@ -1877,7 +1871,7 @@ class DeleteRevokedExportedChatInvitesQuery : public Td::ResultHandler {
|
|||||||
promise_.set_error(std::move(status));
|
promise_.set_error(std::move(status));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
class CheckDialogInviteLinkQuery : public Td::ResultHandler {
|
class CheckDialogInviteLinkQuery : public Td::ResultHandler {
|
||||||
Promise<Unit> promise_;
|
Promise<Unit> promise_;
|
||||||
string invite_link_;
|
string invite_link_;
|
||||||
@ -6881,7 +6875,7 @@ void ContactsManager::export_dialog_invite_link_impl(DialogId dialog_id, int32 e
|
|||||||
td_->create_handler<ExportChatInviteLinkQuery>(std::move(promise))
|
td_->create_handler<ExportChatInviteLinkQuery>(std::move(promise))
|
||||||
->send(dialog_id, expire_date, usage_limit, is_permanent);
|
->send(dialog_id, expire_date, usage_limit, is_permanent);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
void ContactsManager::edit_dialog_invite_link(DialogId dialog_id, const string &invite_link, int32 expire_date,
|
void ContactsManager::edit_dialog_invite_link(DialogId dialog_id, const string &invite_link, int32 expire_date,
|
||||||
int32 usage_limit, bool is_revoked,
|
int32 usage_limit, bool is_revoked,
|
||||||
Promise<td_api::object_ptr<td_api::chatInviteLink>> &&promise) {
|
Promise<td_api::object_ptr<td_api::chatInviteLink>> &&promise) {
|
||||||
@ -6900,7 +6894,7 @@ void ContactsManager::get_dialog_invite_links(DialogId dialog_id, UserId adminis
|
|||||||
Promise<td_api::object_ptr<td_api::chatInviteLinks>> &&promise) {
|
Promise<td_api::object_ptr<td_api::chatInviteLinks>> &&promise) {
|
||||||
TRY_STATUS_PROMISE(promise, can_manage_dialog_invite_links(dialog_id));
|
TRY_STATUS_PROMISE(promise, can_manage_dialog_invite_links(dialog_id));
|
||||||
|
|
||||||
if (administrator_user_id != UserId() && !have_input_user(administrator_user_id)) {
|
if (!have_input_user(administrator_user_id)) {
|
||||||
return promise.set_error(Status::Error(400, "Administrator user not found"));
|
return promise.set_error(Status::Error(400, "Administrator user not found"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6944,7 +6938,7 @@ void ContactsManager::delete_all_revoked_dialog_invite_links(DialogId dialog_id,
|
|||||||
|
|
||||||
td_->create_handler<DeleteRevokedExportedChatInvitesQuery>(std::move(promise))->send(dialog_id);
|
td_->create_handler<DeleteRevokedExportedChatInvitesQuery>(std::move(promise))->send(dialog_id);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
void ContactsManager::check_dialog_invite_link(const string &invite_link, Promise<Unit> &&promise) const {
|
void ContactsManager::check_dialog_invite_link(const string &invite_link, Promise<Unit> &&promise) const {
|
||||||
if (invite_link_infos_.count(invite_link) > 0) {
|
if (invite_link_infos_.count(invite_link) > 0) {
|
||||||
return promise.set_value(Unit());
|
return promise.set_value(Unit());
|
||||||
|
@ -385,7 +385,7 @@ class ContactsManager : public Actor {
|
|||||||
|
|
||||||
void export_dialog_invite_link(DialogId dialog_id, int32 expire_date, int32 usage_limit, bool is_permanent,
|
void export_dialog_invite_link(DialogId dialog_id, int32 expire_date, int32 usage_limit, bool is_permanent,
|
||||||
Promise<td_api::object_ptr<td_api::chatInviteLink>> &&promise);
|
Promise<td_api::object_ptr<td_api::chatInviteLink>> &&promise);
|
||||||
/*
|
|
||||||
void edit_dialog_invite_link(DialogId dialog_id, const string &link, int32 expire_date, int32 usage_limit,
|
void edit_dialog_invite_link(DialogId dialog_id, const string &link, int32 expire_date, int32 usage_limit,
|
||||||
bool is_revoked, Promise<td_api::object_ptr<td_api::chatInviteLink>> &&promise);
|
bool is_revoked, Promise<td_api::object_ptr<td_api::chatInviteLink>> &&promise);
|
||||||
|
|
||||||
@ -400,7 +400,7 @@ class ContactsManager : public Actor {
|
|||||||
void delete_revoked_dialog_invite_link(DialogId dialog_id, const string &invite_link, Promise<Unit> &&promise);
|
void delete_revoked_dialog_invite_link(DialogId dialog_id, const string &invite_link, Promise<Unit> &&promise);
|
||||||
|
|
||||||
void delete_all_revoked_dialog_invite_links(DialogId dialog_id, Promise<Unit> &&promise);
|
void delete_all_revoked_dialog_invite_links(DialogId dialog_id, Promise<Unit> &&promise);
|
||||||
*/
|
|
||||||
void check_dialog_invite_link(const string &invite_link, Promise<Unit> &&promise) const;
|
void check_dialog_invite_link(const string &invite_link, Promise<Unit> &&promise) const;
|
||||||
|
|
||||||
void import_dialog_invite_link(const string &invite_link, Promise<DialogId> &&promise);
|
void import_dialog_invite_link(const string &invite_link, Promise<DialogId> &&promise);
|
||||||
|
@ -171,7 +171,7 @@ tl_object_ptr<telegram_api::chatAdminRights> DialogParticipantStatus::get_chat_a
|
|||||||
LOG(INFO) << "Create chat admin rights " << flags;
|
LOG(INFO) << "Create chat admin rights " << flags;
|
||||||
return make_tl_object<telegram_api::chatAdminRights>(
|
return make_tl_object<telegram_api::chatAdminRights>(
|
||||||
flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/,
|
flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/,
|
||||||
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/);
|
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
tl_object_ptr<telegram_api::chatBannedRights> DialogParticipantStatus::get_chat_banned_rights() const {
|
tl_object_ptr<telegram_api::chatBannedRights> DialogParticipantStatus::get_chat_banned_rights() const {
|
||||||
|
@ -2805,16 +2805,19 @@ class SendMessageActor : public NetActorOnce {
|
|||||||
std::move(sent_message->entities_));
|
std::move(sent_message->entities_));
|
||||||
|
|
||||||
auto message_id = MessageId(ServerMessageId(sent_message->id_));
|
auto message_id = MessageId(ServerMessageId(sent_message->id_));
|
||||||
|
auto ttl_period = (sent_message->flags_ & telegram_api::updateShortSentMessage::TTL_PERIOD_MASK) != 0
|
||||||
|
? sent_message->ttl_period_
|
||||||
|
: 0;
|
||||||
|
auto update = make_tl_object<updateSentMessage>(random_id_, message_id, sent_message->date_, ttl_period);
|
||||||
if (dialog_id_.get_type() == DialogType::Channel) {
|
if (dialog_id_.get_type() == DialogType::Channel) {
|
||||||
td->messages_manager_->add_pending_channel_update(
|
td->messages_manager_->add_pending_channel_update(dialog_id_, std::move(update), sent_message->pts_,
|
||||||
dialog_id_, make_tl_object<updateSentMessage>(random_id_, message_id, sent_message->date_),
|
sent_message->pts_count_, Promise<Unit>(),
|
||||||
sent_message->pts_, sent_message->pts_count_, Promise<Unit>(), "send message actor");
|
"send message actor");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
td->updates_manager_->add_pending_pts_update(
|
td->updates_manager_->add_pending_pts_update(std::move(update), sent_message->pts_, sent_message->pts_count_,
|
||||||
make_tl_object<updateSentMessage>(random_id_, message_id, sent_message->date_), sent_message->pts_,
|
Promise<Unit>(), "send message actor");
|
||||||
sent_message->pts_count_, Promise<Unit>(), "send message actor");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_error(uint64 id, Status status) override {
|
void on_error(uint64 id, Status status) override {
|
||||||
@ -4354,10 +4357,11 @@ class ReportPeerQuery : public Td::ResultHandler {
|
|||||||
|
|
||||||
if (message_ids.empty()) {
|
if (message_ids.empty()) {
|
||||||
send_query(G()->net_query_creator().create(
|
send_query(G()->net_query_creator().create(
|
||||||
telegram_api::account_reportPeer(std::move(input_peer), std::move(report_reason))));
|
telegram_api::account_reportPeer(std::move(input_peer), std::move(report_reason), string())));
|
||||||
} else {
|
} else {
|
||||||
send_query(G()->net_query_creator().create(telegram_api::messages_report(
|
send_query(G()->net_query_creator().create(
|
||||||
std::move(input_peer), MessagesManager::get_server_message_ids(message_ids), std::move(report_reason))));
|
telegram_api::messages_report(std::move(input_peer), MessagesManager::get_server_message_ids(message_ids),
|
||||||
|
std::move(report_reason), string())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6385,7 +6389,8 @@ void MessagesManager::skip_old_pending_pts_update(tl_object_ptr<telegram_api::Up
|
|||||||
if (new_pts == old_pts) { // otherwise message can be already deleted
|
if (new_pts == old_pts) { // otherwise message can be already deleted
|
||||||
// apply sent message anyway
|
// apply sent message anyway
|
||||||
on_send_message_success(update_sent_message->random_id_, update_sent_message->message_id_,
|
on_send_message_success(update_sent_message->random_id_, update_sent_message->message_id_,
|
||||||
update_sent_message->date_, FileId(), "process old updateSentMessage");
|
update_sent_message->date_, update_sent_message->ttl_period_, FileId(),
|
||||||
|
"process old updateSentMessage");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
LOG(ERROR) << "Receive awaited sent " << update_sent_message->message_id_ << " from " << source << " with pts "
|
LOG(ERROR) << "Receive awaited sent " << update_sent_message->message_id_ << " from " << source << " with pts "
|
||||||
@ -7241,7 +7246,8 @@ void MessagesManager::add_pending_channel_update(DialogId dialog_id, tl_object_p
|
|||||||
if (being_sent_messages_.count(update_sent_message->random_id_) > 0) {
|
if (being_sent_messages_.count(update_sent_message->random_id_) > 0) {
|
||||||
// apply sent channel message
|
// apply sent channel message
|
||||||
on_send_message_success(update_sent_message->random_id_, update_sent_message->message_id_,
|
on_send_message_success(update_sent_message->random_id_, update_sent_message->message_id_,
|
||||||
update_sent_message->date_, FileId(), "process old updateSentChannelMessage");
|
update_sent_message->date_, update_sent_message->ttl_period_, FileId(),
|
||||||
|
"process old updateSentChannelMessage");
|
||||||
promise.set_value(Unit());
|
promise.set_value(Unit());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -7314,10 +7320,11 @@ void MessagesManager::process_pts_update(tl_object_ptr<telegram_api::Update> &&u
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case updateSentMessage::ID: {
|
case updateSentMessage::ID: {
|
||||||
auto send_message_success_update = move_tl_object_as<updateSentMessage>(update);
|
auto update_sent_message = move_tl_object_as<updateSentMessage>(update);
|
||||||
LOG(INFO) << "Process updateSentMessage " << send_message_success_update->random_id_;
|
LOG(INFO) << "Process updateSentMessage " << update_sent_message->random_id_;
|
||||||
on_send_message_success(send_message_success_update->random_id_, send_message_success_update->message_id_,
|
on_send_message_success(update_sent_message->random_id_, update_sent_message->message_id_,
|
||||||
send_message_success_update->date_, FileId(), "process updateSentMessage");
|
update_sent_message->date_, update_sent_message->ttl_period_, FileId(),
|
||||||
|
"process updateSentMessage");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case telegram_api::updateReadMessagesContents::ID: {
|
case telegram_api::updateReadMessagesContents::ID: {
|
||||||
@ -7388,10 +7395,11 @@ void MessagesManager::process_channel_update(tl_object_ptr<telegram_api::Update>
|
|||||||
LOG(INFO) << "Process dummyUpdate";
|
LOG(INFO) << "Process dummyUpdate";
|
||||||
break;
|
break;
|
||||||
case updateSentMessage::ID: {
|
case updateSentMessage::ID: {
|
||||||
auto send_message_success_update = move_tl_object_as<updateSentMessage>(update);
|
auto update_sent_message = move_tl_object_as<updateSentMessage>(update);
|
||||||
LOG(INFO) << "Process updateSentMessage " << send_message_success_update->random_id_;
|
LOG(INFO) << "Process updateSentMessage " << update_sent_message->random_id_;
|
||||||
on_send_message_success(send_message_success_update->random_id_, send_message_success_update->message_id_,
|
on_send_message_success(update_sent_message->random_id_, update_sent_message->message_id_,
|
||||||
send_message_success_update->date_, FileId(), "process updateSentChannelMessage");
|
update_sent_message->date_, update_sent_message->ttl_period_, FileId(),
|
||||||
|
"process updateSentChannelMessage");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case telegram_api::updateNewChannelMessage::ID: {
|
case telegram_api::updateNewChannelMessage::ID: {
|
||||||
@ -8187,7 +8195,7 @@ void MessagesManager::report_dialog(DialogId dialog_id, const tl_object_ptr<td_a
|
|||||||
return promise.set_error(Status::Error(400, "Text must be encoded in UTF-8"));
|
return promise.set_error(Status::Error(400, "Text must be encoded in UTF-8"));
|
||||||
}
|
}
|
||||||
|
|
||||||
report_reason = make_tl_object<telegram_api::inputReportReasonOther>(text);
|
report_reason = make_tl_object<telegram_api::inputReportReasonOther>();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@ -12607,7 +12615,7 @@ void MessagesManager::on_send_secret_message_success(int64 random_id, MessageId
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
on_send_message_success(random_id, message_id, date, new_file_id, "process send_secret_message_success");
|
on_send_message_success(random_id, message_id, date, 0, new_file_id, "process send_secret_message_success");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::delete_secret_messages(SecretChatId secret_chat_id, std::vector<int64> random_ids,
|
void MessagesManager::delete_secret_messages(SecretChatId secret_chat_id, std::vector<int64> random_ids,
|
||||||
@ -28453,7 +28461,7 @@ void MessagesManager::check_send_message_result(int64 random_id, DialogId dialog
|
|||||||
}
|
}
|
||||||
|
|
||||||
FullMessageId MessagesManager::on_send_message_success(int64 random_id, MessageId new_message_id, int32 date,
|
FullMessageId MessagesManager::on_send_message_success(int64 random_id, MessageId new_message_id, int32 date,
|
||||||
FileId new_file_id, const char *source) {
|
int32 ttl_period, FileId new_file_id, const char *source) {
|
||||||
CHECK(source != nullptr);
|
CHECK(source != nullptr);
|
||||||
// do not try to run getDifference from this function
|
// do not try to run getDifference from this function
|
||||||
if (DROP_SEND_MESSAGE_UPDATES) {
|
if (DROP_SEND_MESSAGE_UPDATES) {
|
||||||
@ -30876,7 +30884,7 @@ tl_object_ptr<telegram_api::channelAdminLogEventsFilter> MessagesManager::get_ch
|
|||||||
return make_tl_object<telegram_api::channelAdminLogEventsFilter>(
|
return make_tl_object<telegram_api::channelAdminLogEventsFilter>(
|
||||||
flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/,
|
flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/,
|
||||||
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/,
|
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/,
|
||||||
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/);
|
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
int64 MessagesManager::get_dialog_event_log(DialogId dialog_id, const string &query, int64 from_event_id, int32 limit,
|
int64 MessagesManager::get_dialog_event_log(DialogId dialog_id, const string &query, int64 from_event_id, int32 limit,
|
||||||
|
@ -799,8 +799,8 @@ class MessagesManager : public Actor {
|
|||||||
void check_send_message_result(int64 random_id, DialogId dialog_id, const telegram_api::Updates *updates_ptr,
|
void check_send_message_result(int64 random_id, DialogId dialog_id, const telegram_api::Updates *updates_ptr,
|
||||||
const char *source);
|
const char *source);
|
||||||
|
|
||||||
FullMessageId on_send_message_success(int64 random_id, MessageId new_message_id, int32 date, FileId new_file_id,
|
FullMessageId on_send_message_success(int64 random_id, MessageId new_message_id, int32 date, int32 ttl_period,
|
||||||
const char *source);
|
FileId new_file_id, const char *source);
|
||||||
|
|
||||||
void on_send_message_file_part_missing(int64 random_id, int bad_part);
|
void on_send_message_file_part_missing(int64 random_id, int bad_part);
|
||||||
|
|
||||||
|
@ -6308,7 +6308,7 @@ void Td::on_request(uint64 id, const td_api::replacePermanentChatInviteLink &req
|
|||||||
CREATE_REQUEST_PROMISE();
|
CREATE_REQUEST_PROMISE();
|
||||||
contacts_manager_->export_dialog_invite_link(DialogId(request.chat_id_), 0, 0, true, std::move(promise));
|
contacts_manager_->export_dialog_invite_link(DialogId(request.chat_id_), 0, 0, true, std::move(promise));
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
void Td::on_request(uint64 id, const td_api::createChatInviteLink &request) {
|
void Td::on_request(uint64 id, const td_api::createChatInviteLink &request) {
|
||||||
CREATE_REQUEST_PROMISE();
|
CREATE_REQUEST_PROMISE();
|
||||||
contacts_manager_->export_dialog_invite_link(DialogId(request.chat_id_), request.expire_date_, request.member_limit_,
|
contacts_manager_->export_dialog_invite_link(DialogId(request.chat_id_), request.expire_date_, request.member_limit_,
|
||||||
@ -6356,7 +6356,7 @@ void Td::on_request(uint64 id, const td_api::deleteAllRevokedChatInviteLinks &re
|
|||||||
CREATE_OK_REQUEST_PROMISE();
|
CREATE_OK_REQUEST_PROMISE();
|
||||||
contacts_manager_->delete_all_revoked_dialog_invite_links(DialogId(request.chat_id_), std::move(promise));
|
contacts_manager_->delete_all_revoked_dialog_invite_links(DialogId(request.chat_id_), std::move(promise));
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
void Td::on_request(uint64 id, td_api::checkChatInviteLink &request) {
|
void Td::on_request(uint64 id, td_api::checkChatInviteLink &request) {
|
||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CLEAN_INPUT_STRING(request.invite_link_);
|
CLEAN_INPUT_STRING(request.invite_link_);
|
||||||
|
@ -793,7 +793,7 @@ class Td final : public NetQueryCallback {
|
|||||||
void on_request(uint64 id, td_api::getChatAdministrators &request);
|
void on_request(uint64 id, td_api::getChatAdministrators &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::replacePermanentChatInviteLink &request);
|
void on_request(uint64 id, const td_api::replacePermanentChatInviteLink &request);
|
||||||
/*
|
|
||||||
void on_request(uint64 id, const td_api::createChatInviteLink &request);
|
void on_request(uint64 id, const td_api::createChatInviteLink &request);
|
||||||
|
|
||||||
void on_request(uint64 id, td_api::editChatInviteLink &request);
|
void on_request(uint64 id, td_api::editChatInviteLink &request);
|
||||||
@ -807,7 +807,7 @@ class Td final : public NetQueryCallback {
|
|||||||
void on_request(uint64 id, td_api::deleteRevokedChatInviteLink &request);
|
void on_request(uint64 id, td_api::deleteRevokedChatInviteLink &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::deleteAllRevokedChatInviteLinks &request);
|
void on_request(uint64 id, const td_api::deleteAllRevokedChatInviteLinks &request);
|
||||||
*/
|
|
||||||
void on_request(uint64 id, td_api::checkChatInviteLink &request);
|
void on_request(uint64 id, td_api::checkChatInviteLink &request);
|
||||||
|
|
||||||
void on_request(uint64 id, td_api::joinChatByInviteLink &request);
|
void on_request(uint64 id, td_api::joinChatByInviteLink &request);
|
||||||
|
@ -788,7 +788,8 @@ void UpdatesManager::on_get_updates(tl_object_ptr<telegram_api::Updates> &&updat
|
|||||||
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, update->id_,
|
false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, update->id_,
|
||||||
make_tl_object<telegram_api::peerUser>(from_id), make_tl_object<telegram_api::peerUser>(update->user_id_),
|
make_tl_object<telegram_api::peerUser>(from_id), make_tl_object<telegram_api::peerUser>(update->user_id_),
|
||||||
std::move(update->fwd_from_), update->via_bot_id_, std::move(update->reply_to_), update->date_,
|
std::move(update->fwd_from_), update->via_bot_id_, std::move(update->reply_to_), update->date_,
|
||||||
update->message_, nullptr, nullptr, std::move(update->entities_), 0, 0, nullptr, 0, string(), 0, Auto());
|
update->message_, nullptr, nullptr, std::move(update->entities_), 0, 0, nullptr, 0, string(), 0, Auto(),
|
||||||
|
update->ttl_period_);
|
||||||
on_pending_update(
|
on_pending_update(
|
||||||
make_tl_object<telegram_api::updateNewMessage>(std::move(message), update->pts_, update->pts_count_), 0,
|
make_tl_object<telegram_api::updateNewMessage>(std::move(message), update->pts_, update->pts_count_), 0,
|
||||||
std::move(promise), "telegram_api::updatesShortMessage");
|
std::move(promise), "telegram_api::updatesShortMessage");
|
||||||
@ -812,7 +813,7 @@ void UpdatesManager::on_get_updates(tl_object_ptr<telegram_api::Updates> &&updat
|
|||||||
make_tl_object<telegram_api::peerUser>(update->from_id_),
|
make_tl_object<telegram_api::peerUser>(update->from_id_),
|
||||||
make_tl_object<telegram_api::peerChat>(update->chat_id_), std::move(update->fwd_from_), update->via_bot_id_,
|
make_tl_object<telegram_api::peerChat>(update->chat_id_), std::move(update->fwd_from_), update->via_bot_id_,
|
||||||
std::move(update->reply_to_), update->date_, update->message_, nullptr, nullptr, std::move(update->entities_),
|
std::move(update->reply_to_), update->date_, update->message_, nullptr, nullptr, std::move(update->entities_),
|
||||||
0, 0, nullptr, 0, string(), 0, Auto());
|
0, 0, nullptr, 0, string(), 0, Auto(), update->ttl_period_);
|
||||||
on_pending_update(
|
on_pending_update(
|
||||||
make_tl_object<telegram_api::updateNewMessage>(std::move(message), update->pts_, update->pts_count_), 0,
|
make_tl_object<telegram_api::updateNewMessage>(std::move(message), update->pts_, update->pts_count_), 0,
|
||||||
std::move(promise), "telegram_api::updatesShortChatMessage");
|
std::move(promise), "telegram_api::updatesShortChatMessage");
|
||||||
@ -2845,8 +2846,20 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateChannelParticip
|
|||||||
|
|
||||||
// unsupported updates
|
// unsupported updates
|
||||||
|
|
||||||
|
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateBotStopped> update, Promise<Unit> &&promise) {
|
||||||
|
promise.set_value(Unit());
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateChatParticipant> update, Promise<Unit> &&promise) {
|
||||||
|
promise.set_value(Unit());
|
||||||
|
}
|
||||||
|
|
||||||
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateTheme> update, Promise<Unit> &&promise) {
|
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateTheme> update, Promise<Unit> &&promise) {
|
||||||
promise.set_value(Unit());
|
promise.set_value(Unit());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updatePeerHistoryTTL> update, Promise<Unit> &&promise) {
|
||||||
|
promise.set_value(Unit());
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace td
|
} // namespace td
|
||||||
|
@ -59,9 +59,10 @@ class updateSentMessage : public telegram_api::Update {
|
|||||||
int64 random_id_;
|
int64 random_id_;
|
||||||
MessageId message_id_;
|
MessageId message_id_;
|
||||||
int32 date_;
|
int32 date_;
|
||||||
|
int32 ttl_period_;
|
||||||
|
|
||||||
updateSentMessage(int64 random_id, MessageId message_id, int32 date)
|
updateSentMessage(int64 random_id, MessageId message_id, int32 date, int32 ttl_period)
|
||||||
: random_id_(random_id), message_id_(message_id), date_(date) {
|
: random_id_(random_id), message_id_(message_id), date_(date), ttl_period_(ttl_period) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr int32 ID = 1234567890;
|
static constexpr int32 ID = 1234567890;
|
||||||
@ -82,6 +83,7 @@ class updateSentMessage : public telegram_api::Update {
|
|||||||
s.store_field("random_id", random_id_);
|
s.store_field("random_id", random_id_);
|
||||||
s.store_field("message_id", message_id_.get());
|
s.store_field("message_id", message_id_.get());
|
||||||
s.store_field("date", date_);
|
s.store_field("date", date_);
|
||||||
|
s.store_field("ttl_period", ttl_period_);
|
||||||
s.store_class_end();
|
s.store_class_end();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -452,7 +454,13 @@ class UpdatesManager : public Actor {
|
|||||||
|
|
||||||
// unsupported updates
|
// unsupported updates
|
||||||
|
|
||||||
|
void on_update(tl_object_ptr<telegram_api::updateBotStopped> update, Promise<Unit> &&promise);
|
||||||
|
|
||||||
|
void on_update(tl_object_ptr<telegram_api::updateChatParticipant> update, Promise<Unit> &&promise);
|
||||||
|
|
||||||
void on_update(tl_object_ptr<telegram_api::updateTheme> update, Promise<Unit> &&promise);
|
void on_update(tl_object_ptr<telegram_api::updateTheme> update, Promise<Unit> &&promise);
|
||||||
|
|
||||||
|
void on_update(tl_object_ptr<telegram_api::updatePeerHistoryTTL> update, Promise<Unit> &&promise);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace td
|
} // namespace td
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
|
||||||
constexpr int32 MTPROTO_LAYER = 123;
|
constexpr int32 MTPROTO_LAYER = 124;
|
||||||
|
|
||||||
enum class Version : int32 {
|
enum class Version : int32 {
|
||||||
Initial, // 0
|
Initial, // 0
|
||||||
|
@ -2696,7 +2696,6 @@ class CliClient final : public Actor {
|
|||||||
} else if (op == "rpcil") {
|
} else if (op == "rpcil") {
|
||||||
string chat_id = args;
|
string chat_id = args;
|
||||||
send_request(td_api::make_object<td_api::replacePermanentChatInviteLink>(as_chat_id(chat_id)));
|
send_request(td_api::make_object<td_api::replacePermanentChatInviteLink>(as_chat_id(chat_id)));
|
||||||
/*
|
|
||||||
} else if (op == "ccilt") {
|
} else if (op == "ccilt") {
|
||||||
string chat_id;
|
string chat_id;
|
||||||
int32 expire_date;
|
int32 expire_date;
|
||||||
@ -2744,7 +2743,6 @@ class CliClient final : public Actor {
|
|||||||
} else if (op == "darcil") {
|
} else if (op == "darcil") {
|
||||||
string chat_id = args;
|
string chat_id = args;
|
||||||
send_request(td_api::make_object<td_api::deleteAllRevokedChatInviteLinks>(as_chat_id(chat_id)));
|
send_request(td_api::make_object<td_api::deleteAllRevokedChatInviteLinks>(as_chat_id(chat_id)));
|
||||||
*/
|
|
||||||
} else if (op == "ccil") {
|
} else if (op == "ccil") {
|
||||||
send_request(td_api::make_object<td_api::checkChatInviteLink>(args));
|
send_request(td_api::make_object<td_api::checkChatInviteLink>(args));
|
||||||
} else if (op == "jcbil") {
|
} else if (op == "jcbil") {
|
||||||
|
Loading…
Reference in New Issue
Block a user