mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix inline bots with photos.
This commit is contained in:
@@ -107,7 +107,8 @@ std::unique_ptr<Result> Result::create(uint64 queryId, const MTPBotInlineResult
|
||||
message = &r.vsend_message;
|
||||
} break;
|
||||
}
|
||||
bool badAttachment = (result->_photo && !result->_photo->access) || (result->_document && !result->_document->isValid());
|
||||
auto badAttachment = (result->_photo && result->_photo->full->isNull())
|
||||
|| (result->_document && !result->_document->isValid());
|
||||
|
||||
if (!message) {
|
||||
return nullptr;
|
||||
|
Reference in New Issue
Block a user