2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Pay button and messageMediaInvoice supported.

New button type keyboardButtonBuy just shows a box with information.
WebDocument photo type is not supported yet, 'photo' is ignored.
Also HistoryMediaPtr is now implemented as a std::unique_ptr wrapper.
This commit is contained in:
John Preston
2017-03-05 16:39:10 +03:00
parent 0cc7cdd212
commit 2019c24e08
11 changed files with 584 additions and 110 deletions

View File

@@ -89,6 +89,10 @@ void activateBotCommand(const HistoryItem *msg, int row, int col) {
}
} break;
case ButtonType::Buy: {
Ui::show(Box<InformBox>(lang(lng_payments_not_supported)));
} break;
case ButtonType::Url: {
auto url = QString::fromUtf8(button->data);
auto skipConfirmation = false;