mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-03 10:15:31 +01:00
Implement message_thread_id
This commit is contained in:
parent
aa82ba8cca
commit
cda2030584
@ -1620,6 +1620,9 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
|
|||||||
if (message_->media_album_id != 0) {
|
if (message_->media_album_id != 0) {
|
||||||
object("media_group_id", td::to_string(message_->media_album_id));
|
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()) {
|
switch (message_->content->get_id()) {
|
||||||
case td_api::messageText::ID: {
|
case td_api::messageText::ID: {
|
||||||
auto message_text = static_cast<const td_api::messageText *>(message_->content.get());
|
auto message_text = static_cast<const td_api::messageText *>(message_->content.get());
|
||||||
|
@ -725,6 +725,7 @@ class Client : public WebhookActor::Callback {
|
|||||||
td::string initial_sender_name;
|
td::string initial_sender_name;
|
||||||
td::string author_signature;
|
td::string author_signature;
|
||||||
int64 reply_to_message_id = 0;
|
int64 reply_to_message_id = 0;
|
||||||
|
int64 message_thread_id = 0;
|
||||||
int64 media_album_id = 0;
|
int64 media_album_id = 0;
|
||||||
int32 via_bot_user_id = 0;
|
int32 via_bot_user_id = 0;
|
||||||
object_ptr<td_api::MessageContent> content;
|
object_ptr<td_api::MessageContent> content;
|
||||||
|
Loading…
Reference in New Issue
Block a user