mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
bot description displayed in message history, bot commands are highlighted and sent by click
This commit is contained in:
@@ -1016,6 +1016,12 @@ void MainWidget::stopAnimActive() {
|
||||
history.stopAnimActive();
|
||||
}
|
||||
|
||||
void MainWidget::sendBotCommand(const QString &cmd) {
|
||||
if (history.peer()) {
|
||||
sendMessage(App::history(history.peer()->id), cmd, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWidget::searchMessages(const QString &query) {
|
||||
App::wnd()->hideMediaview();
|
||||
dialogs.searchMessages(query);
|
||||
|
Reference in New Issue
Block a user