mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Simplified extracting of data from some MTP* responses.
This commit is contained in:
@@ -100,10 +100,7 @@ void SendBotCallbackData(
|
||||
button->requestId = 0;
|
||||
owner->requestItemRepaint(item);
|
||||
}
|
||||
const auto &data = result.match([](
|
||||
const auto &data) -> const MTPDmessages_botCallbackAnswer& {
|
||||
return data;
|
||||
});
|
||||
const auto &data = result.data();
|
||||
const auto message = data.vmessage()
|
||||
? qs(*data.vmessage())
|
||||
: QString();
|
||||
|
Reference in New Issue
Block a user