Add pushMessageContentRecurringPayment.

This commit is contained in:
levlam 2022-06-16 16:42:36 +03:00
parent 8edd406dea
commit 1cbfec9de9
3 changed files with 11 additions and 0 deletions

View File

@ -3267,6 +3267,9 @@ pushMessageContentChatJoinByLink = PushMessageContent;
//@description A new member was accepted to the chat by an administrator
pushMessageContentChatJoinByRequest = PushMessageContent;
//@description A new recurrent payment was made by the current user @amount The paid amount
pushMessageContentRecurringPayment amount:string = PushMessageContent;
//@description A forwarded messages @total_count Number of forwarded messages
pushMessageContentMessageForwards total_count:int32 = PushMessageContent;

View File

@ -2865,6 +2865,9 @@ string NotificationManager::convert_loc_key(const string &loc_key) {
if (loc_key == "MESSAGE_ROUND") {
return "MESSAGE_VIDEO_NOTE";
}
if (loc_key == "MESSAGE_RECURRING_PAY") {
return "MESSAGE_RECURRING_PAYMENT";
}
break;
case 'S':
if (loc_key == "MESSAGE_SCREENSHOT") {

View File

@ -288,6 +288,11 @@ class NotificationTypePushMessage final : public NotificationType {
return td_api::make_object<td_api::pushMessageContentPoll>(arg, false, is_pinned);
}
break;
case 'R':
if (key == "MESSAGE_RECURRING_PAYMENT") {
return td_api::make_object<td_api::pushMessageContentRecurringPayment>(arg);
}
break;
case 'S':
if (key == "MESSAGE_SECRET_PHOTO") {
return td_api::make_object<td_api::pushMessageContentPhoto>(nullptr, arg, true, false);