mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme on layer 151.
This commit is contained in:
@@ -1164,7 +1164,10 @@ auto HtmlWriter::Wrap::pushMessage(
|
||||
}
|
||||
return serviceFrom + " changed topic " + parts.join(',');
|
||||
}, [&](const ActionSuggestProfilePhoto &data) {
|
||||
return (serviceFrom + " suggests to use this photo");
|
||||
return serviceFrom + " suggests to use this photo";
|
||||
}, [&](const ActionAttachMenuBotAllowed &data) {
|
||||
return "You allowed this bot to message you "
|
||||
"when you added it in the attachment menu."_q;
|
||||
}, [](v::null_t) { return QByteArray(); });
|
||||
|
||||
if (!serviceText.isEmpty()) {
|
||||
|
@@ -577,6 +577,9 @@ QByteArray SerializeMessage(
|
||||
pushActor();
|
||||
pushAction("suggest_profile_photo");
|
||||
pushPhoto(data.photo.image);
|
||||
}, [&](const ActionAttachMenuBotAllowed &data) {
|
||||
pushActor();
|
||||
pushAction("attach_menu_bot_allowed");
|
||||
}, [](v::null_t) {});
|
||||
|
||||
if (v::is_null(message.action.content)) {
|
||||
|
Reference in New Issue
Block a user