Support paid files-with-comment and polls.

This commit is contained in:
John Preston
2025-02-20 14:55:34 +04:00
parent 3633c19208
commit 101d626d4f
5 changed files with 136 additions and 27 deletions
+5
View File
@@ -577,6 +577,11 @@ void ApiWrap::sendMessageFail(
if (show) {
show->showToast(tr::lng_error_schedule_limit(tr::now));
}
} else if (error.startsWith(u"ALLOW_PAYMENT_REQUIRED_"_q)) {
if (show) {
show->showToast(
u"Payment requirements changed. Please, try again."_q);
}
}
if (const auto item = _session->data().message(itemId)) {
Assert(randomId != 0);