mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Update API scheme on layer 140.
This commit is contained in:
@@ -1130,6 +1130,12 @@ ServiceAction ParseServiceAction(
|
||||
};
|
||||
}, [&](const MTPDmessageActionChatJoinedByRequest &data) {
|
||||
result.content = ActionChatJoinedByRequest();
|
||||
}, [&](const MTPDmessageActionWebViewDataSentMe &data) {
|
||||
// Should not be in user inbox.
|
||||
}, [&](const MTPDmessageActionWebViewDataSent &data) {
|
||||
auto content = ActionWebViewDataSent();
|
||||
content.text = ParseString(data.vtext());
|
||||
result.content = content;
|
||||
}, [](const MTPDmessageActionEmpty &data) {});
|
||||
return result;
|
||||
}
|
||||
|
@@ -482,6 +482,10 @@ struct ActionSetChatTheme {
|
||||
struct ActionChatJoinedByRequest {
|
||||
};
|
||||
|
||||
struct ActionWebViewDataSent {
|
||||
Utf8String text;
|
||||
};
|
||||
|
||||
struct ServiceAction {
|
||||
std::variant<
|
||||
v::null_t,
|
||||
@@ -512,7 +516,8 @@ struct ServiceAction {
|
||||
ActionSetMessagesTTL,
|
||||
ActionGroupCallScheduled,
|
||||
ActionSetChatTheme,
|
||||
ActionChatJoinedByRequest> content;
|
||||
ActionChatJoinedByRequest,
|
||||
ActionWebViewDataSent> content;
|
||||
};
|
||||
|
||||
ServiceAction ParseServiceAction(
|
||||
|
Reference in New Issue
Block a user