Add Message.message_thread_id.

This commit is contained in:
levlam 2022-10-31 17:09:34 +03:00
parent 342d59a19d
commit b0fec0b09d
2 changed files with 5 additions and 0 deletions

View File

@ -1746,6 +1746,9 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
if (message_->edit_date > 0) {
object("edit_date", message_->edit_date);
}
if (message_->message_thread_id != 0) {
object("message_thread_id", as_client_message_id(message_->message_thread_id));
}
if (message_->initial_send_date > 0) {
if (message_->initial_sender_user_id != 0) {
object("forward_from", JsonUser(message_->initial_sender_user_id, client_));
@ -10343,6 +10346,7 @@ Client::FullMessageId Client::add_message(object_ptr<td_api::message> &&message,
message_info->id = message_id;
message_info->chat_id = chat_id;
message_info->message_thread_id = message->message_thread_id_;
message_info->date = message->date_;
message_info->edit_date = message->edit_date_;
message_info->media_album_id = message->media_album_id_;

View File

@ -730,6 +730,7 @@ class Client final : public WebhookActor::Callback {
int64 sender_user_id = 0;
int64 sender_chat_id = 0;
int64 chat_id = 0;
int64 message_thread_id = 0;
int32 date = 0;
int32 edit_date = 0;
int64 initial_chat_id = 0;