2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Moved utils for sending bot commands to separated file.

This commit is contained in:
23rd
2021-07-26 23:06:14 +03:00
parent 05f1caf944
commit 34cac3092f
13 changed files with 111 additions and 72 deletions

View File

@@ -827,12 +827,8 @@ crl::time MainWidget::highlightStartTime(not_null<const HistoryItem*> item) cons
return _history->highlightStartTime(item);
}
void MainWidget::sendBotCommand(
not_null<PeerData*> peer,
UserData *bot,
const QString &cmd,
MsgId replyTo) {
_history->sendBotCommand(peer, bot, cmd, replyTo);
void MainWidget::sendBotCommand(Bot::SendCommandRequest request) {
_history->sendBotCommand(request);
}
void MainWidget::hideSingleUseKeyboard(PeerData *peer, MsgId replyTo) {