Ypdate to layer 91.
GitOrigin-RevId: 15675ae2938bbc64dd288fce11cbd9cab1c714e3
This commit is contained in:
parent
5e446cb14e
commit
8f33e737e1
@ -54,7 +54,8 @@ inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = In
|
|||||||
inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia;
|
inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia;
|
||||||
inputMediaGame#d33f43f3 id:InputGame = InputMedia;
|
inputMediaGame#d33f43f3 id:InputGame = InputMedia;
|
||||||
inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia;
|
inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia;
|
||||||
inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia;
|
inputMediaGeoLive#ce4e82fd flags:# stopped:flags.0?true geo_point:InputGeoPoint period:flags.1?int = InputMedia;
|
||||||
|
inputMediaPoll#6b3765b poll:Poll = InputMedia;
|
||||||
|
|
||||||
inputChatPhotoEmpty#1ca48f57 = InputChatPhoto;
|
inputChatPhotoEmpty#1ca48f57 = InputChatPhoto;
|
||||||
inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto;
|
inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto;
|
||||||
@ -110,7 +111,7 @@ channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?t
|
|||||||
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#edd2a791 flags:# id:int participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int = ChatFull;
|
chatFull#edd2a791 flags:# id:int participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int = ChatFull;
|
||||||
channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?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 read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite: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 = ChatFull;
|
channelFull#1c87a71a 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_view_stats:flags.12?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: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 = 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;
|
||||||
@ -137,6 +138,7 @@ messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:str
|
|||||||
messageMediaGame#fdb19008 game:Game = MessageMedia;
|
messageMediaGame#fdb19008 game:Game = MessageMedia;
|
||||||
messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia;
|
messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia;
|
||||||
messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia;
|
messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia;
|
||||||
|
messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;
|
||||||
|
|
||||||
messageActionEmpty#b6aef7b0 = MessageAction;
|
messageActionEmpty#b6aef7b0 = MessageAction;
|
||||||
messageActionChatCreate#a6638b9a title:string users:Vector<int> = MessageAction;
|
messageActionChatCreate#a6638b9a title:string users:Vector<int> = MessageAction;
|
||||||
@ -160,7 +162,7 @@ messageActionCustomAction#fae69f56 message:string = MessageAction;
|
|||||||
messageActionBotAllowed#abe9affe domain:string = MessageAction;
|
messageActionBotAllowed#abe9affe domain:string = MessageAction;
|
||||||
messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction;
|
messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction;
|
||||||
messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction;
|
messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction;
|
||||||
messageActionContactSignUp#70ef8294 flags:# silent:flags.0?true = MessageAction;
|
messageActionContactSignUp#f3f25f76 = MessageAction;
|
||||||
|
|
||||||
dialog#e4def5db 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 = Dialog;
|
dialog#e4def5db 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 = Dialog;
|
||||||
|
|
||||||
@ -324,6 +326,7 @@ updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Up
|
|||||||
updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update;
|
updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update;
|
||||||
updateUserPinnedMessage#4c43da18 user_id:int id:int = Update;
|
updateUserPinnedMessage#4c43da18 user_id:int id:int = Update;
|
||||||
updateChatPinnedMessage#22893b26 chat_id:int id:int = Update;
|
updateChatPinnedMessage#22893b26 chat_id:int id:int = Update;
|
||||||
|
updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = 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;
|
||||||
|
|
||||||
@ -966,6 +969,18 @@ help.supportName#8c05f1c9 name:string = help.SupportName;
|
|||||||
help.userInfoEmpty#f3ae2eed = help.UserInfo;
|
help.userInfoEmpty#f3ae2eed = help.UserInfo;
|
||||||
help.userInfo#1eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo;
|
help.userInfo#1eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo;
|
||||||
|
|
||||||
|
pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer;
|
||||||
|
|
||||||
|
poll#d5529d06 id:long flags:# closed:flags.0?true question:string answers:Vector<PollAnswer> = Poll;
|
||||||
|
|
||||||
|
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true option:bytes voters:int = PollAnswerVoters;
|
||||||
|
|
||||||
|
pollResults#5755785a flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int = PollResults;
|
||||||
|
|
||||||
|
chatOnlines#f041e250 onlines:int = ChatOnlines;
|
||||||
|
|
||||||
|
statsURL#47a971e0 url:string = StatsURL;
|
||||||
|
|
||||||
---functions---
|
---functions---
|
||||||
|
|
||||||
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
||||||
@ -1122,8 +1137,8 @@ messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_p
|
|||||||
messages.setInlineBotResults#eb5ea206 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 = Bool;
|
messages.setInlineBotResults#eb5ea206 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 = Bool;
|
||||||
messages.sendInlineBotResult#b16e06fe flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string = Updates;
|
messages.sendInlineBotResult#b16e06fe flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string = Updates;
|
||||||
messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;
|
messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;
|
||||||
messages.editMessage#c000e4c8 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> geo_point:flags.13?InputGeoPoint = Updates;
|
messages.editMessage#d116f31e flags:# no_webpage:flags.1?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Updates;
|
||||||
messages.editInlineBotMessage#adc3e828 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> geo_point:flags.13?InputGeoPoint = Bool;
|
messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Bool;
|
||||||
messages.getBotCallbackAnswer#810a9fec flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes = messages.BotCallbackAnswer;
|
messages.getBotCallbackAnswer#810a9fec flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes = messages.BotCallbackAnswer;
|
||||||
messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
|
messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
|
||||||
messages.getPeerDialogs#e470bcfd peers:Vector<InputDialogPeer> = messages.PeerDialogs;
|
messages.getPeerDialogs#e470bcfd peers:Vector<InputDialogPeer> = messages.PeerDialogs;
|
||||||
@ -1164,6 +1179,10 @@ messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogP
|
|||||||
messages.getDialogUnreadMarks#22e24e22 = Vector<DialogPeer>;
|
messages.getDialogUnreadMarks#22e24e22 = Vector<DialogPeer>;
|
||||||
messages.clearAllDrafts#7e58ee9c = Bool;
|
messages.clearAllDrafts#7e58ee9c = Bool;
|
||||||
messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true peer:InputPeer id:int = Updates;
|
messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true peer:InputPeer id:int = Updates;
|
||||||
|
messages.sendVote#10ea6184 peer:InputPeer msg_id:int options:Vector<bytes> = Updates;
|
||||||
|
messages.getPollResults#73bb643b peer:InputPeer msg_id:int = Updates;
|
||||||
|
messages.getOnlines#6e2be050 peer:InputPeer = ChatOnlines;
|
||||||
|
messages.getStatsURL#83f6c0cd peer:InputPeer = StatsURL;
|
||||||
|
|
||||||
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;
|
||||||
@ -1227,7 +1246,6 @@ channels.deleteChannel#c0111fe3 channel:InputChannel = Updates;
|
|||||||
channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates;
|
channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates;
|
||||||
channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink;
|
channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink;
|
||||||
channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates;
|
channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates;
|
||||||
channels.updatePinnedMessage#a72ded52 flags:# silent:flags.0?true channel:InputChannel id:int = Updates;
|
|
||||||
channels.getAdminedPublicChannels#8d8d82d7 = messages.Chats;
|
channels.getAdminedPublicChannels#8d8d82d7 = messages.Chats;
|
||||||
channels.editBanned#bfd915cd channel:InputChannel user_id:InputUser banned_rights:ChannelBannedRights = Updates;
|
channels.editBanned#bfd915cd channel:InputChannel user_id:InputUser banned_rights:ChannelBannedRights = Updates;
|
||||||
channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector<InputUser> max_id:long min_id:long limit:int = channels.AdminLogResults;
|
channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector<InputUser> max_id:long min_id:long limit:int = channels.AdminLogResults;
|
||||||
|
Binary file not shown.
@ -81,7 +81,6 @@ tl_object_ptr<td_api::location> Location::get_location_object() const {
|
|||||||
|
|
||||||
tl_object_ptr<telegram_api::InputGeoPoint> Location::get_input_geo_point() const {
|
tl_object_ptr<telegram_api::InputGeoPoint> Location::get_input_geo_point() const {
|
||||||
if (empty()) {
|
if (empty()) {
|
||||||
LOG(ERROR) << "Location is empty";
|
|
||||||
return make_tl_object<telegram_api::inputGeoPointEmpty>();
|
return make_tl_object<telegram_api::inputGeoPointEmpty>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2037,7 +2037,9 @@ static tl_object_ptr<telegram_api::InputMedia> get_input_media(const MessageCont
|
|||||||
}
|
}
|
||||||
case MessageContentType::LiveLocation: {
|
case MessageContentType::LiveLocation: {
|
||||||
auto m = static_cast<const MessageLiveLocation *>(content);
|
auto m = static_cast<const MessageLiveLocation *>(content);
|
||||||
return make_tl_object<telegram_api::inputMediaGeoLive>(m->location.get_input_geo_point(), m->period);
|
int32 flags = telegram_api::inputMediaGeoLive::PERIOD_MASK;
|
||||||
|
return make_tl_object<telegram_api::inputMediaGeoLive>(flags, false /*ignored*/,
|
||||||
|
m->location.get_input_geo_point(), m->period);
|
||||||
}
|
}
|
||||||
case MessageContentType::Location: {
|
case MessageContentType::Location: {
|
||||||
auto m = static_cast<const MessageLocation *>(content);
|
auto m = static_cast<const MessageLocation *>(content);
|
||||||
|
@ -2194,7 +2194,6 @@ class EditMessageActor : public NetActorOnce {
|
|||||||
void send(int32 flags, DialogId dialog_id, MessageId message_id, const string &message,
|
void send(int32 flags, DialogId dialog_id, MessageId message_id, const string &message,
|
||||||
vector<tl_object_ptr<telegram_api::MessageEntity>> &&entities,
|
vector<tl_object_ptr<telegram_api::MessageEntity>> &&entities,
|
||||||
tl_object_ptr<telegram_api::InputMedia> &&input_media,
|
tl_object_ptr<telegram_api::InputMedia> &&input_media,
|
||||||
tl_object_ptr<telegram_api::InputGeoPoint> &&input_geo_point,
|
|
||||||
tl_object_ptr<telegram_api::ReplyMarkup> &&reply_markup, uint64 sequence_dispatcher_id) {
|
tl_object_ptr<telegram_api::ReplyMarkup> &&reply_markup, uint64 sequence_dispatcher_id) {
|
||||||
dialog_id_ = dialog_id;
|
dialog_id_ = dialog_id;
|
||||||
|
|
||||||
@ -2223,14 +2222,11 @@ class EditMessageActor : public NetActorOnce {
|
|||||||
if (input_media != nullptr) {
|
if (input_media != nullptr) {
|
||||||
flags |= telegram_api::messages_editMessage::MEDIA_MASK;
|
flags |= telegram_api::messages_editMessage::MEDIA_MASK;
|
||||||
}
|
}
|
||||||
if (input_geo_point != nullptr) {
|
|
||||||
flags |= telegram_api::messages_editMessage::GEO_POINT_MASK;
|
|
||||||
}
|
|
||||||
LOG(DEBUG) << "Edit message with flags " << flags;
|
LOG(DEBUG) << "Edit message with flags " << flags;
|
||||||
|
|
||||||
auto query = G()->net_query_creator().create(create_storer(telegram_api::messages_editMessage(
|
auto query = G()->net_query_creator().create(create_storer(telegram_api::messages_editMessage(
|
||||||
flags, false /*ignored*/, false /*ignored*/, std::move(input_peer), message_id.get_server_message_id().get(),
|
flags, false /*ignored*/, std::move(input_peer), message_id.get_server_message_id().get(), message,
|
||||||
message, std::move(input_media), std::move(reply_markup), std::move(entities), std::move(input_geo_point))));
|
std::move(input_media), std::move(reply_markup), std::move(entities))));
|
||||||
|
|
||||||
query->debug("send to MessagesManager::MultiSequenceDispatcher");
|
query->debug("send to MessagesManager::MultiSequenceDispatcher");
|
||||||
send_closure(td->messages_manager_->sequence_dispatcher_, &MultiSequenceDispatcher::send_with_callback,
|
send_closure(td->messages_manager_->sequence_dispatcher_, &MultiSequenceDispatcher::send_with_callback,
|
||||||
@ -2275,7 +2271,6 @@ class EditInlineMessageQuery : public Td::ResultHandler {
|
|||||||
void send(int32 flags, tl_object_ptr<telegram_api::inputBotInlineMessageID> input_bot_inline_message_id,
|
void send(int32 flags, tl_object_ptr<telegram_api::inputBotInlineMessageID> input_bot_inline_message_id,
|
||||||
const string &message, vector<tl_object_ptr<telegram_api::MessageEntity>> &&entities,
|
const string &message, vector<tl_object_ptr<telegram_api::MessageEntity>> &&entities,
|
||||||
tl_object_ptr<telegram_api::InputMedia> &&input_media,
|
tl_object_ptr<telegram_api::InputMedia> &&input_media,
|
||||||
tl_object_ptr<telegram_api::InputGeoPoint> &&input_geo_point,
|
|
||||||
tl_object_ptr<telegram_api::ReplyMarkup> &&reply_markup) {
|
tl_object_ptr<telegram_api::ReplyMarkup> &&reply_markup) {
|
||||||
CHECK(input_bot_inline_message_id != nullptr);
|
CHECK(input_bot_inline_message_id != nullptr);
|
||||||
|
|
||||||
@ -2292,20 +2287,17 @@ class EditInlineMessageQuery : public Td::ResultHandler {
|
|||||||
if (!message.empty()) {
|
if (!message.empty()) {
|
||||||
flags |= MessagesManager::SEND_MESSAGE_FLAG_HAS_MESSAGE;
|
flags |= MessagesManager::SEND_MESSAGE_FLAG_HAS_MESSAGE;
|
||||||
}
|
}
|
||||||
if (input_geo_point != nullptr) {
|
|
||||||
flags |= telegram_api::messages_editInlineBotMessage::GEO_POINT_MASK;
|
|
||||||
}
|
|
||||||
if (input_media != nullptr) {
|
if (input_media != nullptr) {
|
||||||
flags |= telegram_api::messages_editInlineBotMessage::MEDIA_MASK;
|
flags |= telegram_api::messages_editInlineBotMessage::MEDIA_MASK;
|
||||||
}
|
}
|
||||||
LOG(DEBUG) << "Edit inline message with flags " << flags;
|
LOG(DEBUG) << "Edit inline message with flags " << flags;
|
||||||
|
|
||||||
auto dc_id = DcId::internal(input_bot_inline_message_id->dc_id_);
|
auto dc_id = DcId::internal(input_bot_inline_message_id->dc_id_);
|
||||||
send_query(G()->net_query_creator().create(
|
send_query(
|
||||||
create_storer(telegram_api::messages_editInlineBotMessage(
|
G()->net_query_creator().create(create_storer(telegram_api::messages_editInlineBotMessage(
|
||||||
flags, false /*ignored*/, false /*ignored*/, std::move(input_bot_inline_message_id), message,
|
flags, false /*ignored*/, std::move(input_bot_inline_message_id), message,
|
||||||
std::move(input_media), std::move(reply_markup), std::move(entities), std::move(input_geo_point))),
|
std::move(input_media), std::move(reply_markup), std::move(entities))),
|
||||||
dc_id));
|
dc_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_result(uint64 id, BufferSlice packet) override {
|
void on_result(uint64 id, BufferSlice packet) override {
|
||||||
@ -15482,7 +15474,7 @@ void MessagesManager::on_message_media_uploaded(DialogId dialog_id, Message *m,
|
|||||||
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, 1 << 11,
|
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, 1 << 11,
|
||||||
dialog_id, message_id, caption == nullptr ? "" : caption->text,
|
dialog_id, message_id, caption == nullptr ? "" : caption->text,
|
||||||
get_input_message_entities(td_->contacts_manager_.get(), caption, "edit_message_media"),
|
get_input_message_entities(td_->contacts_manager_.get(), caption, "edit_message_media"),
|
||||||
std::move(input_media), nullptr, std::move(input_reply_markup),
|
std::move(input_media), std::move(input_reply_markup),
|
||||||
get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -16340,7 +16332,7 @@ void MessagesManager::edit_message_text(FullMessageId full_message_id,
|
|||||||
td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, flags, dialog_id,
|
td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, flags, dialog_id,
|
||||||
message_id, input_message_text.text.text,
|
message_id, input_message_text.text.text,
|
||||||
get_input_message_entities(td_->contacts_manager_.get(), input_message_text.text.entities, "edit_message_text"),
|
get_input_message_entities(td_->contacts_manager_.get(), input_message_text.text.entities, "edit_message_text"),
|
||||||
nullptr, nullptr, std::move(input_reply_markup), get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
nullptr, std::move(input_reply_markup), get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::edit_message_live_location(FullMessageId full_message_id,
|
void MessagesManager::edit_message_live_location(FullMessageId full_message_id,
|
||||||
@ -16387,12 +16379,13 @@ void MessagesManager::edit_message_live_location(FullMessageId full_message_id,
|
|||||||
|
|
||||||
int32 flags = 0;
|
int32 flags = 0;
|
||||||
if (location.empty()) {
|
if (location.empty()) {
|
||||||
flags |= telegram_api::messages_editMessage::STOP_GEO_LIVE_MASK;
|
flags |= telegram_api::inputMediaGeoLive::STOPPED_MASK;
|
||||||
}
|
}
|
||||||
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, flags, dialog_id,
|
auto input_media = telegram_api::make_object<telegram_api::inputMediaGeoLive>(flags, false /*ignored*/,
|
||||||
message_id, string(), vector<tl_object_ptr<telegram_api::MessageEntity>>(), nullptr,
|
location.get_input_geo_point(), 0);
|
||||||
location.empty() ? nullptr : location.get_input_geo_point(), std::move(input_reply_markup),
|
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, 0, dialog_id,
|
||||||
get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
message_id, string(), vector<tl_object_ptr<telegram_api::MessageEntity>>(), std::move(input_media),
|
||||||
|
std::move(input_reply_markup), get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::cancel_edit_message_media(DialogId dialog_id, Message *m, Slice error_message) {
|
void MessagesManager::cancel_edit_message_media(DialogId dialog_id, Message *m, Slice error_message) {
|
||||||
@ -16599,8 +16592,7 @@ void MessagesManager::edit_message_caption(FullMessageId full_message_id,
|
|||||||
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, 1 << 11, dialog_id,
|
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, 1 << 11, dialog_id,
|
||||||
message_id, caption.text,
|
message_id, caption.text,
|
||||||
get_input_message_entities(td_->contacts_manager_.get(), caption.entities, "edit_message_caption"),
|
get_input_message_entities(td_->contacts_manager_.get(), caption.entities, "edit_message_caption"),
|
||||||
nullptr, nullptr, std::move(input_reply_markup),
|
nullptr, std::move(input_reply_markup), get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
||||||
get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::edit_message_reply_markup(FullMessageId full_message_id,
|
void MessagesManager::edit_message_reply_markup(FullMessageId full_message_id,
|
||||||
@ -16638,7 +16630,7 @@ void MessagesManager::edit_message_reply_markup(FullMessageId full_message_id,
|
|||||||
}
|
}
|
||||||
auto input_reply_markup = get_input_reply_markup(r_new_reply_markup.ok());
|
auto input_reply_markup = get_input_reply_markup(r_new_reply_markup.ok());
|
||||||
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, 0, dialog_id,
|
send_closure(td_->create_net_actor<EditMessageActor>(std::move(promise)), &EditMessageActor::send, 0, dialog_id,
|
||||||
message_id, string(), vector<tl_object_ptr<telegram_api::MessageEntity>>(), nullptr, nullptr,
|
message_id, string(), vector<tl_object_ptr<telegram_api::MessageEntity>>(), nullptr,
|
||||||
std::move(input_reply_markup), get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
std::move(input_reply_markup), get_sequence_dispatcher_id(dialog_id, MessageContentType::None));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16683,7 +16675,7 @@ void MessagesManager::edit_inline_message_text(const string &inline_message_id,
|
|||||||
->send(flags, std::move(input_bot_inline_message_id), input_message_text.text.text,
|
->send(flags, std::move(input_bot_inline_message_id), input_message_text.text.text,
|
||||||
get_input_message_entities(td_->contacts_manager_.get(), input_message_text.text.entities,
|
get_input_message_entities(td_->contacts_manager_.get(), input_message_text.text.entities,
|
||||||
"edit_inline_message_text"),
|
"edit_inline_message_text"),
|
||||||
nullptr, nullptr, get_input_reply_markup(r_new_reply_markup.ok()));
|
nullptr, get_input_reply_markup(r_new_reply_markup.ok()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::edit_inline_message_live_location(const string &inline_message_id,
|
void MessagesManager::edit_inline_message_live_location(const string &inline_message_id,
|
||||||
@ -16711,12 +16703,13 @@ void MessagesManager::edit_inline_message_live_location(const string &inline_mes
|
|||||||
|
|
||||||
int32 flags = 0;
|
int32 flags = 0;
|
||||||
if (location.empty()) {
|
if (location.empty()) {
|
||||||
flags |= telegram_api::messages_editMessage::STOP_GEO_LIVE_MASK;
|
flags |= telegram_api::inputMediaGeoLive::STOPPED_MASK;
|
||||||
}
|
}
|
||||||
|
auto input_media = telegram_api::make_object<telegram_api::inputMediaGeoLive>(flags, false /*ignored*/,
|
||||||
|
location.get_input_geo_point(), 0);
|
||||||
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
||||||
->send(flags, std::move(input_bot_inline_message_id), "", vector<tl_object_ptr<telegram_api::MessageEntity>>(),
|
->send(0, std::move(input_bot_inline_message_id), "", vector<tl_object_ptr<telegram_api::MessageEntity>>(),
|
||||||
nullptr, location.empty() ? nullptr : location.get_input_geo_point(),
|
std::move(input_media), get_input_reply_markup(r_new_reply_markup.ok()));
|
||||||
get_input_reply_markup(r_new_reply_markup.ok()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::edit_inline_message_media(const string &inline_message_id,
|
void MessagesManager::edit_inline_message_media(const string &inline_message_id,
|
||||||
@ -16768,7 +16761,7 @@ void MessagesManager::edit_inline_message_media(const string &inline_message_id,
|
|||||||
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
||||||
->send(1 << 11, std::move(input_bot_inline_message_id), caption == nullptr ? "" : caption->text,
|
->send(1 << 11, std::move(input_bot_inline_message_id), caption == nullptr ? "" : caption->text,
|
||||||
get_input_message_entities(td_->contacts_manager_.get(), caption, "edit_inline_message_media"),
|
get_input_message_entities(td_->contacts_manager_.get(), caption, "edit_inline_message_media"),
|
||||||
std::move(input_media), nullptr, get_input_reply_markup(r_new_reply_markup.ok()));
|
std::move(input_media), get_input_reply_markup(r_new_reply_markup.ok()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::edit_inline_message_caption(const string &inline_message_id,
|
void MessagesManager::edit_inline_message_caption(const string &inline_message_id,
|
||||||
@ -16799,7 +16792,7 @@ void MessagesManager::edit_inline_message_caption(const string &inline_message_i
|
|||||||
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
||||||
->send(1 << 11, std::move(input_bot_inline_message_id), caption.text,
|
->send(1 << 11, std::move(input_bot_inline_message_id), caption.text,
|
||||||
get_input_message_entities(td_->contacts_manager_.get(), caption.entities, "edit_inline_message_caption"),
|
get_input_message_entities(td_->contacts_manager_.get(), caption.entities, "edit_inline_message_caption"),
|
||||||
nullptr, nullptr, get_input_reply_markup(r_new_reply_markup.ok()));
|
nullptr, get_input_reply_markup(r_new_reply_markup.ok()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::edit_inline_message_reply_markup(const string &inline_message_id,
|
void MessagesManager::edit_inline_message_reply_markup(const string &inline_message_id,
|
||||||
@ -16821,7 +16814,7 @@ void MessagesManager::edit_inline_message_reply_markup(const string &inline_mess
|
|||||||
|
|
||||||
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
td_->create_handler<EditInlineMessageQuery>(std::move(promise))
|
||||||
->send(0, std::move(input_bot_inline_message_id), string(), vector<tl_object_ptr<telegram_api::MessageEntity>>(),
|
->send(0, std::move(input_bot_inline_message_id), string(), vector<tl_object_ptr<telegram_api::MessageEntity>>(),
|
||||||
nullptr, nullptr, get_input_reply_markup(r_new_reply_markup.ok()));
|
nullptr, get_input_reply_markup(r_new_reply_markup.ok()));
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 MessagesManager::get_message_flags(const Message *m) {
|
int32 MessagesManager::get_message_flags(const Message *m) {
|
||||||
|
@ -1871,4 +1871,7 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateLangPack> updat
|
|||||||
|
|
||||||
// unsupported updates
|
// unsupported updates
|
||||||
|
|
||||||
|
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateMessagePoll> update, bool /*force_apply*/) {
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace td
|
} // namespace td
|
||||||
|
@ -281,6 +281,7 @@ class UpdatesManager : public Actor {
|
|||||||
void on_update(tl_object_ptr<telegram_api::updateLangPack> update, bool /*force_apply*/);
|
void on_update(tl_object_ptr<telegram_api::updateLangPack> update, bool /*force_apply*/);
|
||||||
|
|
||||||
// unsupported updates
|
// unsupported updates
|
||||||
|
void on_update(tl_object_ptr<telegram_api::updateMessagePoll> update, bool /*force_apply*/);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace td
|
} // namespace td
|
||||||
|
@ -565,6 +565,9 @@ class CliClient final : public Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static tl_object_ptr<td_api::location> as_location(string latitude, string longitude) {
|
static tl_object_ptr<td_api::location> as_location(string latitude, string longitude) {
|
||||||
|
if (trim(latitude).empty() && trim(longitude).empty()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
return make_tl_object<td_api::location>(to_double(latitude), to_double(longitude));
|
return make_tl_object<td_api::location>(to_double(latitude), to_double(longitude));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class HeaderStorer {
|
|||||||
}
|
}
|
||||||
template <class StorerT>
|
template <class StorerT>
|
||||||
void store(StorerT &storer) const {
|
void store(StorerT &storer) const {
|
||||||
constexpr int32 LAYER = 90;
|
constexpr int32 LAYER = 91;
|
||||||
|
|
||||||
using td::store;
|
using td::store;
|
||||||
// invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X;
|
// invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X;
|
||||||
|
Reference in New Issue
Block a user