2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Game bot confirmations added.

This commit is contained in:
John Preston
2016-09-15 22:15:49 +03:00
parent 578cf4ed61
commit 6d2fc5c642
11 changed files with 4316 additions and 4167 deletions

View File

@@ -55,7 +55,7 @@ void activateBotCommand(const HistoryItem *msg, int row, int col) {
const HistoryMessageReplyMarkup::Button *button = nullptr;
if (auto markup = msg->Get<HistoryMessageReplyMarkup>()) {
if (row < markup->rows.size()) {
const auto &buttonRow(markup->rows.at(row));
auto &buttonRow = markup->rows[row];
if (col < buttonRow.size()) {
button = &buttonRow.at(col);
}
@@ -81,7 +81,7 @@ void activateBotCommand(const HistoryItem *msg, int row, int col) {
case ButtonType::Url: {
auto url = QString::fromUtf8(button->data);
UrlClickHandler(url).onClick(Qt::LeftButton);
HiddenUrlClickHandler(url).onClick(Qt::LeftButton);
} break;
case ButtonType::RequestLocation: {