Implement message_thread_id

This commit is contained in:
Andrea Cavalli 2021-01-06 11:16:32 +01:00
parent aa82ba8cca
commit cda2030584
2 changed files with 4 additions and 0 deletions

View File

@ -1620,6 +1620,9 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
if (message_->media_album_id != 0) {
object("media_group_id", td::to_string(message_->media_album_id));
}
if (message_->message_thread_id != 0) {
object("message_thread_id", td::to_string(message_->message_thread_id));
}
switch (message_->content->get_id()) {
case td_api::messageText::ID: {
auto message_text = static_cast<const td_api::messageText *>(message_->content.get());

View File

@ -725,6 +725,7 @@ class Client : public WebhookActor::Callback {
td::string initial_sender_name;
td::string author_signature;
int64 reply_to_message_id = 0;
int64 message_thread_id = 0;
int64 media_album_id = 0;
int32 via_bot_user_id = 0;
object_ptr<td_api::MessageContent> content;