diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 1fa6da010..b5490ca36 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -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; diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 15f17662d..f70c92f16 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -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") { diff --git a/td/telegram/NotificationType.cpp b/td/telegram/NotificationType.cpp index c4d0b310f..2c39dff36 100644 --- a/td/telegram/NotificationType.cpp +++ b/td/telegram/NotificationType.cpp @@ -288,6 +288,11 @@ class NotificationTypePushMessage final : public NotificationType { return td_api::make_object(arg, false, is_pinned); } break; + case 'R': + if (key == "MESSAGE_RECURRING_PAYMENT") { + return td_api::make_object(arg); + } + break; case 'S': if (key == "MESSAGE_SECRET_PHOTO") { return td_api::make_object(nullptr, arg, true, false);