mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix sending bot commands from autocomplete.
This commit is contained in:
parent
c3b0e6c503
commit
c98a3825a5
1 changed files with 2 additions and 1 deletions
|
@ -3430,7 +3430,8 @@ void HistoryWidget::sendBotCommand(
|
|||
|
||||
bool lastKeyboardUsed = (_keyboard->forMsgId() == FullMsgId(_channel, _history->lastKeyboardId)) && (_keyboard->forMsgId() == FullMsgId(_channel, replyTo));
|
||||
|
||||
const auto toSend = replyTo
|
||||
// 'bot' may be nullptr in case of sending from FieldAutocomplete.
|
||||
const auto toSend = (replyTo || !bot)
|
||||
? cmd
|
||||
: HistoryView::WrapBotCommandInChat(_peer, cmd, bot);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue