Add is_bot_start_message flag.
GitOrigin-RevId: 02725fba5857f1e8212b998eaf3c33006382fddb
This commit is contained in:
parent
d7be30f658
commit
611878f098
@ -3611,6 +3611,7 @@ void MessagesManager::Message::store(StorerT &storer) const {
|
|||||||
STORE_FLAG(has_forward_sender_name);
|
STORE_FLAG(has_forward_sender_name);
|
||||||
STORE_FLAG(has_send_error_code);
|
STORE_FLAG(has_send_error_code);
|
||||||
STORE_FLAG(hide_via_bot);
|
STORE_FLAG(hide_via_bot);
|
||||||
|
STORE_FLAG(is_bot_start_message);
|
||||||
END_STORE_FLAGS();
|
END_STORE_FLAGS();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3745,6 +3746,7 @@ void MessagesManager::Message::parse(ParserT &parser) {
|
|||||||
PARSE_FLAG(has_forward_sender_name);
|
PARSE_FLAG(has_forward_sender_name);
|
||||||
PARSE_FLAG(has_send_error_code);
|
PARSE_FLAG(has_send_error_code);
|
||||||
PARSE_FLAG(hide_via_bot);
|
PARSE_FLAG(hide_via_bot);
|
||||||
|
PARSE_FLAG(is_bot_start_message);
|
||||||
END_PARSE_FLAGS();
|
END_PARSE_FLAGS();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16958,6 +16960,7 @@ Result<MessageId> MessagesManager::send_bot_start_message(UserId bot_user_id, Di
|
|||||||
Message *m = get_message_to_send(d, MessageId(), false, false,
|
Message *m = get_message_to_send(d, MessageId(), false, false,
|
||||||
create_text_message_content(text, std::move(text_entities), WebPageId()),
|
create_text_message_content(text, std::move(text_entities), WebPageId()),
|
||||||
&need_update_dialog_pos);
|
&need_update_dialog_pos);
|
||||||
|
m->is_bot_start_message = true;
|
||||||
|
|
||||||
send_update_new_message(d, m);
|
send_update_new_message(d, m);
|
||||||
if (need_update_dialog_pos) {
|
if (need_update_dialog_pos) {
|
||||||
|
@ -882,6 +882,7 @@ class MessagesManager : public Actor {
|
|||||||
bool clear_draft = false; // for send_message
|
bool clear_draft = false; // for send_message
|
||||||
bool in_game_share = false; // for send_message
|
bool in_game_share = false; // for send_message
|
||||||
bool hide_via_bot = false; // for resend_message
|
bool hide_via_bot = false; // for resend_message
|
||||||
|
bool is_bot_start_message = false; // for resend_message
|
||||||
|
|
||||||
bool have_previous = false;
|
bool have_previous = false;
|
||||||
bool have_next = false;
|
bool have_next = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user