Update TDLib to 1.8.31.

This commit is contained in:
levlam 2024-06-11 21:42:50 +03:00
parent 2b0bb9207c
commit d982389d77
2 changed files with 8 additions and 4 deletions

2
td

@ -1 +1 @@
Subproject commit fab354add5a257a8121a4a7f1ff6b1b9fa9a9073 Subproject commit 8f19c751dc296cedb9a921badb7a02a8c0cb1aeb

View File

@ -7011,8 +7011,12 @@ bool Client::to_bool(td::MutableSlice value) {
td_api::object_ptr<td_api::InputMessageReplyTo> Client::get_input_message_reply_to( td_api::object_ptr<td_api::InputMessageReplyTo> Client::get_input_message_reply_to(
CheckedReplyParameters &&reply_parameters) { CheckedReplyParameters &&reply_parameters) {
if (reply_parameters.reply_to_message_id > 0) { if (reply_parameters.reply_to_message_id > 0) {
return make_object<td_api::inputMessageReplyToMessage>( if (reply_parameters.reply_in_chat_id != 0) {
reply_parameters.reply_in_chat_id, reply_parameters.reply_to_message_id, std::move(reply_parameters.quote)); return make_object<td_api::inputMessageReplyToExternalMessage>(
reply_parameters.reply_in_chat_id, reply_parameters.reply_to_message_id, std::move(reply_parameters.quote));
}
return make_object<td_api::inputMessageReplyToMessage>(reply_parameters.reply_to_message_id,
std::move(reply_parameters.quote));
} }
return nullptr; return nullptr;
} }
@ -7020,7 +7024,7 @@ td_api::object_ptr<td_api::InputMessageReplyTo> Client::get_input_message_reply_
td_api::object_ptr<td_api::InputMessageReplyTo> Client::get_input_message_reply_to( td_api::object_ptr<td_api::InputMessageReplyTo> Client::get_input_message_reply_to(
InputReplyParameters &&reply_parameters) { InputReplyParameters &&reply_parameters) {
if (reply_parameters.reply_in_chat_id.empty() && reply_parameters.reply_to_message_id > 0) { if (reply_parameters.reply_in_chat_id.empty() && reply_parameters.reply_to_message_id > 0) {
return make_object<td_api::inputMessageReplyToMessage>(0, reply_parameters.reply_to_message_id, return make_object<td_api::inputMessageReplyToMessage>(reply_parameters.reply_to_message_id,
std::move(reply_parameters.quote)); std::move(reply_parameters.quote));
} }
return nullptr; return nullptr;