2
0
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:
John Preston
2022-12-16 07:41:36 +04:00
parent 833a259234
commit ca0b34dcf0
9 changed files with 36 additions and 9 deletions

View File

@@ -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()) {

View File

@@ -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)) {