diff --git a/Telegram/SourceFiles/calls/group/calls_group_common.cpp b/Telegram/SourceFiles/calls/group/calls_group_common.cpp index 82ca38f25a..dfd48d3203 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_common.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_common.cpp @@ -282,7 +282,8 @@ void ShowConferenceCallLinkBox( MTP_flags(Flag::f_reset_invite_hash), call->input(), MTPBool(), // join_muted - MTPBool()) // messages_enabled + MTPBool(), // messages_enabled + MTPlong()) // send_paid_messages_stars ).done([=](const MTPUpdates &result) { call->session().api().applyUpdates(result); ShowConferenceCallLinkBox(show, call, args); diff --git a/Telegram/SourceFiles/calls/group/calls_group_messages.cpp b/Telegram/SourceFiles/calls/group/calls_group_messages.cpp index 21befa7698..c80787c76b 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_messages.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_messages.cpp @@ -74,9 +74,11 @@ void Messages::send(TextWithTags text) { if (!_call->conference()) { _api->request(MTPphone_SendGroupCallMessage( + MTP_flags(0), _call->inputCall(), MTP_long(randomId), - serialized + serialized, + MTPlong() // allow_paid_stars )).done([=](const MTPBool &, const MTP::Response &response) { sent(randomId, response); }).fail([=](const MTP::Error &, const MTP::Response &response) { diff --git a/Telegram/SourceFiles/calls/group/calls_group_settings.cpp b/Telegram/SourceFiles/calls/group/calls_group_settings.cpp index 7b77968d5f..40999692dd 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_settings.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_settings.cpp @@ -86,7 +86,8 @@ void SaveCallJoinMuted( MTP_flags(Flag::f_join_muted), call->input(), MTP_bool(joinMuted), - MTPBool() // messages_enabled + MTPBool(), // messages_enabled + MTPlong() // send_paid_messages_stars )).send(); } @@ -108,7 +109,8 @@ void SaveCallMessagesEnabled( MTP_flags(Flag::f_messages_enabled), call->input(), MTPBool(), // join_muted - MTP_bool(messagesEnabled) + MTP_bool(messagesEnabled), + MTPlong() // send_paid_messages_stars )).send(); } diff --git a/Telegram/SourceFiles/mtproto/scheme/api.tl b/Telegram/SourceFiles/mtproto/scheme/api.tl index 15eb50a195..7e5d416add 100644 --- a/Telegram/SourceFiles/mtproto/scheme/api.tl +++ b/Telegram/SourceFiles/mtproto/scheme/api.tl @@ -443,7 +443,7 @@ updateGroupCallChainBlocks#a477288f call:InputGroupCall sub_chain_id:int blocks: updateReadMonoForumInbox#77b0e372 channel_id:long saved_peer_id:Peer read_max_id:int = Update; updateReadMonoForumOutbox#a4a79376 channel_id:long saved_peer_id:Peer read_max_id:int = Update; updateMonoForumNoPaidException#9f812b08 flags:# exception:flags.0?true channel_id:long saved_peer_id:Peer = Update; -updateGroupCallMessage#78c314e0 call:InputGroupCall from_id:Peer random_id:long message:TextWithEntities = Update; +updateGroupCallMessage#c68910b6 flags:# call:InputGroupCall from_id:Peer random_id:long message:TextWithEntities paid_message_stars:flags.0?long = Update; updateGroupCallEncryptedMessage#c957a766 call:InputGroupCall from_id:Peer encrypted_message:bytes = Update; updatePinnedForumTopic#683b2c52 flags:# pinned:flags.0?true peer:Peer topic_id:int = Update; updatePinnedForumTopics#def143d0 flags:# peer:Peer order:flags.0?Vector = Update; @@ -2700,7 +2700,7 @@ phone.joinGroupCall#8fb53057 flags:# muted:flags.0?true video_stopped:flags.2?tr phone.leaveGroupCall#500377f9 call:InputGroupCall source:int = Updates; phone.inviteToGroupCall#7b393160 call:InputGroupCall users:Vector = Updates; phone.discardGroupCall#7a777135 call:InputGroupCall = Updates; -phone.toggleGroupCallSettings#e9723804 flags:# reset_invite_hash:flags.1?true call:InputGroupCall join_muted:flags.0?Bool messages_enabled:flags.2?Bool = Updates; +phone.toggleGroupCallSettings#974392f2 flags:# reset_invite_hash:flags.1?true call:InputGroupCall join_muted:flags.0?Bool messages_enabled:flags.2?Bool send_paid_messages_stars:flags.3?long = Updates; phone.getGroupCall#41845db call:InputGroupCall limit:int = phone.GroupCall; phone.getGroupParticipants#c558d8ab call:InputGroupCall ids:Vector sources:Vector offset:string limit:int = phone.GroupParticipants; phone.checkGroupCall#b59cf977 call:InputGroupCall sources:Vector = Vector; @@ -2723,7 +2723,7 @@ phone.sendConferenceCallBroadcast#c6701900 call:InputGroupCall block:bytes = Upd phone.inviteConferenceCallParticipant#bcf22685 flags:# video:flags.0?true call:InputGroupCall user_id:InputUser = Updates; phone.declineConferenceCallInvite#3c479971 msg_id:int = Updates; phone.getGroupCallChainBlocks#ee9f88a6 call:InputGroupCall sub_chain_id:int offset:int limit:int = Updates; -phone.sendGroupCallMessage#87893014 call:InputGroupCall random_id:long message:TextWithEntities = Bool; +phone.sendGroupCallMessage#7e9b9c0d flags:# call:InputGroupCall random_id:long message:TextWithEntities allow_paid_stars:flags.0?long = Bool; phone.sendGroupCallEncryptedMessage#e5afa56d call:InputGroupCall encrypted_message:bytes = Bool; langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference;