mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-29 13:45:49 +01:00
Update TDLib to 1.8.31.
This commit is contained in:
parent
2b0bb9207c
commit
d982389d77
2
td
2
td
@ -1 +1 @@
|
||||
Subproject commit fab354add5a257a8121a4a7f1ff6b1b9fa9a9073
|
||||
Subproject commit 8f19c751dc296cedb9a921badb7a02a8c0cb1aeb
|
@ -7011,16 +7011,20 @@ bool Client::to_bool(td::MutableSlice value) {
|
||||
td_api::object_ptr<td_api::InputMessageReplyTo> Client::get_input_message_reply_to(
|
||||
CheckedReplyParameters &&reply_parameters) {
|
||||
if (reply_parameters.reply_to_message_id > 0) {
|
||||
return make_object<td_api::inputMessageReplyToMessage>(
|
||||
if (reply_parameters.reply_in_chat_id != 0) {
|
||||
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;
|
||||
}
|
||||
|
||||
td_api::object_ptr<td_api::InputMessageReplyTo> 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<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));
|
||||
}
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user