diff --git a/td b/td index fab354a..8f19c75 160000 --- a/td +++ b/td @@ -1 +1 @@ -Subproject commit fab354add5a257a8121a4a7f1ff6b1b9fa9a9073 +Subproject commit 8f19c751dc296cedb9a921badb7a02a8c0cb1aeb diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index aec8ce0..a1a5440 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -7011,8 +7011,12 @@ bool Client::to_bool(td::MutableSlice value) { td_api::object_ptr Client::get_input_message_reply_to( CheckedReplyParameters &&reply_parameters) { if (reply_parameters.reply_to_message_id > 0) { - return make_object( - reply_parameters.reply_in_chat_id, reply_parameters.reply_to_message_id, std::move(reply_parameters.quote)); + if (reply_parameters.reply_in_chat_id != 0) { + return make_object( + reply_parameters.reply_in_chat_id, reply_parameters.reply_to_message_id, std::move(reply_parameters.quote)); + } + return make_object(reply_parameters.reply_to_message_id, + std::move(reply_parameters.quote)); } return nullptr; } @@ -7020,7 +7024,7 @@ td_api::object_ptr Client::get_input_message_reply_ td_api::object_ptr Client::get_input_message_reply_to( InputReplyParameters &&reply_parameters) { if (reply_parameters.reply_in_chat_id.empty() && reply_parameters.reply_to_message_id > 0) { - return make_object(0, reply_parameters.reply_to_message_id, + return make_object(reply_parameters.reply_to_message_id, std::move(reply_parameters.quote)); } return nullptr;