Add pushMessageContentPremiumGiftCode.
This commit is contained in:
parent
580e856f44
commit
ce5f63c5aa
|
@ -4782,6 +4782,9 @@ pushMessageContentPhoto photo:photo caption:string is_secret:Bool is_pinned:Bool
|
|||
//@is_pinned True, if the message is a pinned message with the specified content
|
||||
pushMessageContentPoll question:string is_regular:Bool is_pinned:Bool = PushMessageContent;
|
||||
|
||||
//@description A message with a Telegram Premium gift code created for the user @month_count Number of month the Telegram Premium subscription will be active after code activation
|
||||
pushMessageContentPremiumGiftCode month_count:int32 = PushMessageContent;
|
||||
|
||||
//@description A screenshot of a message in the chat has been taken
|
||||
pushMessageContentScreenshotTaken = PushMessageContent;
|
||||
|
||||
|
|
|
@ -2887,6 +2887,9 @@ string NotificationManager::convert_loc_key(const string &loc_key) {
|
|||
if (loc_key == "MESSAGE_GIF") {
|
||||
return "MESSAGE_ANIMATION";
|
||||
}
|
||||
if (loc_key == "MESSAGE_GIFTCODE") {
|
||||
return "MESSAGE_GIFTCODE";
|
||||
}
|
||||
break;
|
||||
case 'H':
|
||||
if (loc_key == "PINNED_PHOTO") {
|
||||
|
|
|
@ -254,6 +254,10 @@ class NotificationTypePushMessage final : public NotificationType {
|
|||
}
|
||||
return td_api::make_object<td_api::pushMessageContentGameScore>(title, score, is_pinned);
|
||||
}
|
||||
if (key == "MESSAGE_GIFTCODE") {
|
||||
int32 month_count = to_integer<int32>(arg);
|
||||
return td_api::make_object<td_api::pushMessageContentPremiumGiftCode>(month_count);
|
||||
}
|
||||
break;
|
||||
case 'I':
|
||||
if (key == "MESSAGE_INVOICE") {
|
||||
|
|
Loading…
Reference in New Issue
Block a user