Update API scheme on layer 176.
This commit is contained in:
		
							parent
							
								
									c513906996
								
							
						
					
					
						commit
						e05eb63476
					
				
					 7 changed files with 42 additions and 24 deletions
				
			
		| 
						 | 
					@ -85,7 +85,7 @@ void Polls::create(
 | 
				
			||||||
			MTPVector<MTPMessageEntity>(),
 | 
								MTPVector<MTPMessageEntity>(),
 | 
				
			||||||
			MTP_int(action.options.scheduled),
 | 
								MTP_int(action.options.scheduled),
 | 
				
			||||||
			(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
								(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
			MTPstring() // quick_reply_shortcut
 | 
								MTPInputQuickReplyShortcut()
 | 
				
			||||||
		), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
							), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
				
			||||||
		if (clearCloudDraft) {
 | 
							if (clearCloudDraft) {
 | 
				
			||||||
			history->finishSavingCloudDraft(
 | 
								history->finishSavingCloudDraft(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -162,7 +162,7 @@ void SendExistingMedia(
 | 
				
			||||||
				sentEntities,
 | 
									sentEntities,
 | 
				
			||||||
				MTP_int(message.action.options.scheduled),
 | 
									MTP_int(message.action.options.scheduled),
 | 
				
			||||||
				(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
									(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
				MTPstring() // quick_reply_shortcut
 | 
									MTPInputQuickReplyShortcut()
 | 
				
			||||||
			), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
								), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
				
			||||||
		}, [=](const MTP::Error &error, const MTP::Response &response) {
 | 
							}, [=](const MTP::Error &error, const MTP::Response &response) {
 | 
				
			||||||
			if (error.code() == 400
 | 
								if (error.code() == 400
 | 
				
			||||||
| 
						 | 
					@ -327,7 +327,7 @@ bool SendDice(MessageToSend &message) {
 | 
				
			||||||
			MTP_vector<MTPMessageEntity>(),
 | 
								MTP_vector<MTPMessageEntity>(),
 | 
				
			||||||
			MTP_int(message.action.options.scheduled),
 | 
								MTP_int(message.action.options.scheduled),
 | 
				
			||||||
			(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
								(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
			MTPstring() // quick_reply_shortcut
 | 
								MTPInputQuickReplyShortcut()
 | 
				
			||||||
		), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
							), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
				
			||||||
	}, [=](const MTP::Error &error, const MTP::Response &response) {
 | 
						}, [=](const MTP::Error &error, const MTP::Response &response) {
 | 
				
			||||||
		api->sendMessageFail(error, peer, randomId, newId);
 | 
							api->sendMessageFail(error, peer, randomId, newId);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3265,7 +3265,7 @@ void ApiWrap::forwardMessages(
 | 
				
			||||||
				MTP_int(topMsgId),
 | 
									MTP_int(topMsgId),
 | 
				
			||||||
				MTP_int(action.options.scheduled),
 | 
									MTP_int(action.options.scheduled),
 | 
				
			||||||
				(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
									(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
				MTPstring() // quick_reply_shortcut
 | 
									MTPInputQuickReplyShortcut()
 | 
				
			||||||
			)).done([=](const MTPUpdates &result) {
 | 
								)).done([=](const MTPUpdates &result) {
 | 
				
			||||||
				applyUpdates(result);
 | 
									applyUpdates(result);
 | 
				
			||||||
				if (shared && !--shared->requestsLeft) {
 | 
									if (shared && !--shared->requestsLeft) {
 | 
				
			||||||
| 
						 | 
					@ -3781,7 +3781,7 @@ void ApiWrap::sendMessage(MessageToSend &&message) {
 | 
				
			||||||
					sentEntities,
 | 
										sentEntities,
 | 
				
			||||||
					MTP_int(message.action.options.scheduled),
 | 
										MTP_int(message.action.options.scheduled),
 | 
				
			||||||
					(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
										(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
					MTPstring() // quick_reply_shortcut
 | 
										MTPInputQuickReplyShortcut()
 | 
				
			||||||
				), done, fail);
 | 
									), done, fail);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			histories.sendPreparedMessage(
 | 
								histories.sendPreparedMessage(
 | 
				
			||||||
| 
						 | 
					@ -3798,7 +3798,7 @@ void ApiWrap::sendMessage(MessageToSend &&message) {
 | 
				
			||||||
					sentEntities,
 | 
										sentEntities,
 | 
				
			||||||
					MTP_int(action.options.scheduled),
 | 
										MTP_int(action.options.scheduled),
 | 
				
			||||||
					(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
										(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
					MTPstring() // quick_reply_shortcut
 | 
										MTPInputQuickReplyShortcut()
 | 
				
			||||||
				), done, fail);
 | 
									), done, fail);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		isFirst = false;
 | 
							isFirst = false;
 | 
				
			||||||
| 
						 | 
					@ -3932,7 +3932,7 @@ void ApiWrap::sendInlineResult(
 | 
				
			||||||
			MTP_string(data->getId()),
 | 
								MTP_string(data->getId()),
 | 
				
			||||||
			MTP_int(action.options.scheduled),
 | 
								MTP_int(action.options.scheduled),
 | 
				
			||||||
			(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
								(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
			MTPstring() // quick_reply_shortcut
 | 
								MTPInputQuickReplyShortcut()
 | 
				
			||||||
		), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
							), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
				
			||||||
		history->finishSavingCloudDraft(
 | 
							history->finishSavingCloudDraft(
 | 
				
			||||||
			topicRootId,
 | 
								topicRootId,
 | 
				
			||||||
| 
						 | 
					@ -4081,7 +4081,7 @@ void ApiWrap::sendMediaWithRandomId(
 | 
				
			||||||
			sentEntities,
 | 
								sentEntities,
 | 
				
			||||||
			MTP_int(options.scheduled),
 | 
								MTP_int(options.scheduled),
 | 
				
			||||||
			(options.sendAs ? options.sendAs->input : MTP_inputPeerEmpty()),
 | 
								(options.sendAs ? options.sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
			MTPstring() // quick_reply_shortcut
 | 
								MTPInputQuickReplyShortcut()
 | 
				
			||||||
		), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
							), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
				
			||||||
		if (done) done(true);
 | 
							if (done) done(true);
 | 
				
			||||||
		if (updateRecentStickers) {
 | 
							if (updateRecentStickers) {
 | 
				
			||||||
| 
						 | 
					@ -4180,7 +4180,7 @@ void ApiWrap::sendAlbumIfReady(not_null<SendingAlbum*> album) {
 | 
				
			||||||
			MTP_vector<MTPInputSingleMedia>(medias),
 | 
								MTP_vector<MTPInputSingleMedia>(medias),
 | 
				
			||||||
			MTP_int(album->options.scheduled),
 | 
								MTP_int(album->options.scheduled),
 | 
				
			||||||
			(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
								(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
 | 
				
			||||||
			MTPstring() // quick_reply_shortcut
 | 
								MTPInputQuickReplyShortcut()
 | 
				
			||||||
		), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
							), [=](const MTPUpdates &result, const MTP::Response &response) {
 | 
				
			||||||
		_sendingAlbums.remove(groupId);
 | 
							_sendingAlbums.remove(groupId);
 | 
				
			||||||
	}, [=](const MTP::Error &error, const MTP::Response &response) {
 | 
						}, [=](const MTP::Error &error, const MTP::Response &response) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1559,7 +1559,7 @@ ShareBox::SubmitCallback ShareBox::DefaultForwardCallback(
 | 
				
			||||||
						MTP_int(topMsgId),
 | 
											MTP_int(topMsgId),
 | 
				
			||||||
						MTP_int(options.scheduled),
 | 
											MTP_int(options.scheduled),
 | 
				
			||||||
						MTP_inputPeerEmpty(), // send_as
 | 
											MTP_inputPeerEmpty(), // send_as
 | 
				
			||||||
						MTPstring() // quick_reply_shortcut
 | 
											MTPInputQuickReplyShortcut()
 | 
				
			||||||
				)).done([=](const MTPUpdates &updates, mtpRequestId reqId) {
 | 
									)).done([=](const MTPUpdates &updates, mtpRequestId reqId) {
 | 
				
			||||||
					threadHistory->session().api().applyUpdates(updates);
 | 
										threadHistory->session().api().applyUpdates(updates);
 | 
				
			||||||
					state->requests.remove(reqId);
 | 
										state->requests.remove(reqId);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -155,7 +155,7 @@ namespace Media::Stories {
 | 
				
			||||||
					MTPVector<MTPMessageEntity>(),
 | 
										MTPVector<MTPMessageEntity>(),
 | 
				
			||||||
					MTP_int(action.options.scheduled),
 | 
										MTP_int(action.options.scheduled),
 | 
				
			||||||
					MTP_inputPeerEmpty(),
 | 
										MTP_inputPeerEmpty(),
 | 
				
			||||||
					MTPstring() // quick_reply_shortcut
 | 
										MTPInputQuickReplyShortcut()
 | 
				
			||||||
				), [=](
 | 
									), [=](
 | 
				
			||||||
						const MTPUpdates &result,
 | 
											const MTPUpdates &result,
 | 
				
			||||||
						const MTP::Response &response) {
 | 
											const MTP::Response &response) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -227,7 +227,7 @@ inputReportReasonFake#f5ddd6e7 = ReportReason;
 | 
				
			||||||
inputReportReasonIllegalDrugs#a8eb2be = ReportReason;
 | 
					inputReportReasonIllegalDrugs#a8eb2be = ReportReason;
 | 
				
			||||||
inputReportReasonPersonalDetails#9ec7863d = ReportReason;
 | 
					inputReportReasonPersonalDetails#9ec7863d = ReportReason;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
userFull#e218d7f0 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector<PremiumGiftOption> wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation = UserFull;
 | 
					userFull#22ff3e85 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector<PremiumGiftOption> wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage = UserFull;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
contact#145ade0b user_id:long mutual:Bool = Contact;
 | 
					contact#145ade0b user_id:long mutual:Bool = Contact;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -403,8 +403,8 @@ updateSavedDialogPinned#aeaf9e74 flags:# pinned:flags.0?true peer:DialogPeer = U
 | 
				
			||||||
updatePinnedSavedDialogs#686c85a6 flags:# order:flags.0?Vector<DialogPeer> = Update;
 | 
					updatePinnedSavedDialogs#686c85a6 flags:# order:flags.0?Vector<DialogPeer> = Update;
 | 
				
			||||||
updateSavedReactionTags#39c67432 = Update;
 | 
					updateSavedReactionTags#39c67432 = Update;
 | 
				
			||||||
updateSmsJob#f16269d4 job_id:string = Update;
 | 
					updateSmsJob#f16269d4 job_id:string = Update;
 | 
				
			||||||
updateQuickReplies#dc3b36d quick_replies:Vector<messages.QuickReply> = Update;
 | 
					updateQuickReplies#f9470ab2 quick_replies:Vector<QuickReply> = Update;
 | 
				
			||||||
updateNewQuickReply#ad62c98d quick_reply:messages.QuickReply = Update;
 | 
					updateNewQuickReply#f53da717 quick_reply:QuickReply = Update;
 | 
				
			||||||
updateDeleteQuickReply#53e6f1ec shortcut_id:int = Update;
 | 
					updateDeleteQuickReply#53e6f1ec shortcut_id:int = Update;
 | 
				
			||||||
updateQuickReplyMessage#3e050d0f message:Message = Update;
 | 
					updateQuickReplyMessage#3e050d0f message:Message = Update;
 | 
				
			||||||
updateDeleteQuickReplyMessages#566fe7cd shortcut_id:int messages:Vector<int> = Update;
 | 
					updateDeleteQuickReplyMessages#566fe7cd shortcut_id:int messages:Vector<int> = Update;
 | 
				
			||||||
| 
						 | 
					@ -1669,16 +1669,31 @@ businessWeeklyOpen#120b1ab9 start_minute:int end_minute:int = BusinessWeeklyOpen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector<BusinessWeeklyOpen> = BusinessWorkHours;
 | 
					businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector<BusinessWeeklyOpen> = BusinessWorkHours;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
businessLocation#be2bf843 geo_point:GeoPoint address:string = BusinessLocation;
 | 
					businessLocation#ac5c1af7 flags:# geo_point:flags.0?GeoPoint address:string = BusinessLocation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					businessAwayMessageScheduleAlways#c9b9e2b9 = BusinessAwayMessageSchedule;
 | 
				
			||||||
 | 
					businessAwayMessageScheduleOutsideWorkHours#c3f2f501 = BusinessAwayMessageSchedule;
 | 
				
			||||||
 | 
					businessAwayMessageScheduleCustom#cc4d9ecc start_date:int end_date:int = BusinessAwayMessageSchedule;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					inputBusinessGreetingMessage#7d4a3609 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true shortcut_id:int users:flags.4?Vector<InputUser> no_activity_days:int = InputBusinessGreetingMessage;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					businessGreetingMessage#a098d54c flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true shortcut_id:int users:flags.4?Vector<long> no_activity_days:int = BusinessGreetingMessage;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					inputBusinessAwayMessage#ce6fda48 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true shortcut_id:int schedule:BusinessAwayMessageSchedule users:flags.4?Vector<InputUser> = InputBusinessAwayMessage;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					businessAwayMessage#9acd7a15 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true shortcut_id:int schedule:BusinessAwayMessageSchedule users:flags.4?Vector<long> = BusinessAwayMessage;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
timezone#ff9289f5 id:string name:string utc_offset:int = Timezone;
 | 
					timezone#ff9289f5 id:string name:string utc_offset:int = Timezone;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
help.timezonesListNotModified#970708cc = help.TimezonesList;
 | 
					help.timezonesListNotModified#970708cc = help.TimezonesList;
 | 
				
			||||||
help.timezonesList#7b74ed71 timezones:Vector<Timezone> hash:int = help.TimezonesList;
 | 
					help.timezonesList#7b74ed71 timezones:Vector<Timezone> hash:int = help.TimezonesList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
messages.quickReply#940ebc72 shortcut_id:int shortcut:string top_message:int count:int = messages.QuickReply;
 | 
					quickReply#697102b shortcut_id:int shortcut:string top_message:int count:int = QuickReply;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
messages.quickReplies#7cd69880 quick_replies:Vector<messages.QuickReply> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.QuickReplies;
 | 
					inputQuickReplyShortcut#24596d41 shortcut:string = InputQuickReplyShortcut;
 | 
				
			||||||
 | 
					inputQuickReplyShortcutId#1190cf1 shortcut_id:int = InputQuickReplyShortcut;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					messages.quickReplies#c68d6695 quick_replies:Vector<QuickReply> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.QuickReplies;
 | 
				
			||||||
messages.quickRepliesNotModified#5f91eb5b = messages.QuickReplies;
 | 
					messages.quickRepliesNotModified#5f91eb5b = messages.QuickReplies;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---functions---
 | 
					---functions---
 | 
				
			||||||
| 
						 | 
					@ -1807,7 +1822,9 @@ account.getDefaultBackgroundEmojis#a60ab9ce hash:long = EmojiList;
 | 
				
			||||||
account.getChannelDefaultEmojiStatuses#7727a7d5 hash:long = account.EmojiStatuses;
 | 
					account.getChannelDefaultEmojiStatuses#7727a7d5 hash:long = account.EmojiStatuses;
 | 
				
			||||||
account.getChannelRestrictedStatusEmojis#35a9e0d5 hash:long = EmojiList;
 | 
					account.getChannelRestrictedStatusEmojis#35a9e0d5 hash:long = EmojiList;
 | 
				
			||||||
account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool;
 | 
					account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool;
 | 
				
			||||||
account.updateBusinessLocation#3dfd3b56 flags:# geo_point:flags.0?InputGeoPoint address:flags.0?string = Bool;
 | 
					account.updateBusinessLocation#9e6b131a flags:# geo_point:flags.1?InputGeoPoint address:flags.0?string = Bool;
 | 
				
			||||||
 | 
					account.updateBusinessGreetingMessage#66cdafc4 flags:# message:flags.0?InputBusinessGreetingMessage = Bool;
 | 
				
			||||||
 | 
					account.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
 | 
					users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
 | 
				
			||||||
users.getFullUser#b60f5918 id:InputUser = users.UserFull;
 | 
					users.getFullUser#b60f5918 id:InputUser = users.UserFull;
 | 
				
			||||||
| 
						 | 
					@ -1849,9 +1866,9 @@ messages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?t
 | 
				
			||||||
messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector<int> = messages.AffectedMessages;
 | 
					messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector<int> = messages.AffectedMessages;
 | 
				
			||||||
messages.receivedMessages#5a954c0 max_id:int = Vector<ReceivedNotifyMessage>;
 | 
					messages.receivedMessages#5a954c0 max_id:int = Vector<ReceivedNotifyMessage>;
 | 
				
			||||||
messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;
 | 
					messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;
 | 
				
			||||||
messages.sendMessage#6854c960 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?string = Updates;
 | 
					messages.sendMessage#dff8042c flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;
 | 
				
			||||||
messages.sendMedia#ff5ff75d flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?string = Updates;
 | 
					messages.sendMedia#7bd66041 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;
 | 
				
			||||||
messages.forwardMessages#d5ae95ce flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?string = Updates;
 | 
					messages.forwardMessages#d5039208 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;
 | 
				
			||||||
messages.reportSpam#cf1592db peer:InputPeer = Bool;
 | 
					messages.reportSpam#cf1592db peer:InputPeer = Bool;
 | 
				
			||||||
messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings;
 | 
					messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings;
 | 
				
			||||||
messages.report#8953ab4e peer:InputPeer id:Vector<int> reason:ReportReason message:string = Bool;
 | 
					messages.report#8953ab4e peer:InputPeer id:Vector<int> reason:ReportReason message:string = Bool;
 | 
				
			||||||
| 
						 | 
					@ -1894,7 +1911,7 @@ messages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs;
 | 
				
			||||||
messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool;
 | 
					messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool;
 | 
				
			||||||
messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults;
 | 
					messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults;
 | 
				
			||||||
messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector<InputBotInlineResult> cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool;
 | 
					messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector<InputBotInlineResult> cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool;
 | 
				
			||||||
messages.sendInlineBotResult#e7bda5b7 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?string = Updates;
 | 
					messages.sendInlineBotResult#3ebee86a flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;
 | 
				
			||||||
messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;
 | 
					messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;
 | 
				
			||||||
messages.editMessage#dfd14005 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.15?int quick_reply_shortcut_id:flags.17?int = Updates;
 | 
					messages.editMessage#dfd14005 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.15?int quick_reply_shortcut_id:flags.17?int = Updates;
 | 
				
			||||||
messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Bool;
 | 
					messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Bool;
 | 
				
			||||||
| 
						 | 
					@ -1929,7 +1946,7 @@ messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;
 | 
				
			||||||
messages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
 | 
					messages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
 | 
				
			||||||
messages.readMentions#36e5bf4d flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory;
 | 
					messages.readMentions#36e5bf4d flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory;
 | 
				
			||||||
messages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages;
 | 
					messages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages;
 | 
				
			||||||
messages.sendMultiMedia#87262568 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?string = Updates;
 | 
					messages.sendMultiMedia#c964709 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;
 | 
				
			||||||
messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;
 | 
					messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;
 | 
				
			||||||
messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets;
 | 
					messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets;
 | 
				
			||||||
messages.getSplitRanges#1cff7e08 = Vector<MessageRange>;
 | 
					messages.getSplitRanges#1cff7e08 = Vector<MessageRange>;
 | 
				
			||||||
| 
						 | 
					@ -2042,6 +2059,7 @@ messages.getQuickReplies#d483f2a8 hash:long = messages.QuickReplies;
 | 
				
			||||||
messages.reorderQuickReplies#60331907 order:Vector<int> = Bool;
 | 
					messages.reorderQuickReplies#60331907 order:Vector<int> = Bool;
 | 
				
			||||||
messages.checkQuickReplyShortcut#f1d0fbd3 shortcut:string = Bool;
 | 
					messages.checkQuickReplyShortcut#f1d0fbd3 shortcut:string = Bool;
 | 
				
			||||||
messages.editQuickReplyShortcut#5c003cef shortcut_id:int shortcut:string = Bool;
 | 
					messages.editQuickReplyShortcut#5c003cef shortcut_id:int shortcut:string = Bool;
 | 
				
			||||||
 | 
					messages.deleteQuickReplyShortcut#3cc04740 shortcut_id:int = Bool;
 | 
				
			||||||
messages.getQuickReplyMessages#94a495c3 flags:# shortcut_id:int id:flags.0?Vector<int> hash:long = messages.Messages;
 | 
					messages.getQuickReplyMessages#94a495c3 flags:# shortcut_id:int id:flags.0?Vector<int> hash:long = messages.Messages;
 | 
				
			||||||
messages.sendQuickReplyMessages#33153ad4 peer:InputPeer shortcut_id:int = Updates;
 | 
					messages.sendQuickReplyMessages#33153ad4 peer:InputPeer shortcut_id:int = Updates;
 | 
				
			||||||
messages.deleteQuickReplyMessages#e105e910 shortcut_id:int id:Vector<int> = Updates;
 | 
					messages.deleteQuickReplyMessages#e105e910 shortcut_id:int id:Vector<int> = Updates;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -133,7 +133,7 @@ void ShareBotGame(
 | 
				
			||||||
			MTPVector<MTPMessageEntity>(),
 | 
								MTPVector<MTPMessageEntity>(),
 | 
				
			||||||
			MTP_int(0), // schedule_date
 | 
								MTP_int(0), // schedule_date
 | 
				
			||||||
			MTPInputPeer(), // send_as
 | 
								MTPInputPeer(), // send_as
 | 
				
			||||||
			MTPstring() // quick_reply_shortcut
 | 
								MTPInputQuickReplyShortcut()
 | 
				
			||||||
		), [=](const MTPUpdates &, const MTP::Response &) {
 | 
							), [=](const MTPUpdates &, const MTP::Response &) {
 | 
				
			||||||
	}, [=](const MTP::Error &error, const MTP::Response &) {
 | 
						}, [=](const MTP::Error &error, const MTP::Response &) {
 | 
				
			||||||
		history->session().api().sendMessageFail(error, history->peer);
 | 
							history->session().api().sendMessageFail(error, history->peer);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue