mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Bundle silent and scheduled to Api::SendOptions.
This commit is contained in:
@@ -113,11 +113,11 @@ void activateBotCommand(
|
||||
const auto history = msg->history();
|
||||
Ui::show(Box<ConfirmBox>(tr::lng_bot_share_phone(tr::now), tr::lng_bot_share_phone_confirm(tr::now), [=] {
|
||||
Ui::showPeerHistory(history, ShowAtTheEndMsgId);
|
||||
auto options = ApiWrap::SendOptions(history);
|
||||
options.replyTo = msgId;
|
||||
auto action = Api::SendAction(history);
|
||||
action.replyTo = msgId;
|
||||
history->session().api().shareContact(
|
||||
history->session().user(),
|
||||
options);
|
||||
action);
|
||||
}));
|
||||
} break;
|
||||
|
||||
|
Reference in New Issue
Block a user