diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index b7ee0b84..24edc1e2 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -1815,8 +1815,8 @@ notificationTypeNewSecretChat = NotificationType; notificationTypeNewCall call_id:int32 = NotificationType; -//@description Contains information about a notification @id Unique persistent identifier of this notification @type Notification type -notification id:int32 type:NotificationType = Notification; +//@description Contains information about a notification @id Unique persistent identifier of this notification @date Notification date @type Notification type +notification id:int32 date:int32 type:NotificationType = Notification; //@description Describes a group of notifications @id Unique persistent auto-incremented from 1 identifier of the notification group @chat_id Identifier of a chat to which all notifications in the group belong //@total_count Total number of active notifications in the group @notifications The list of active notifications diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index fe81076e..cf9ab7ab 100644 Binary files a/td/generate/scheme/td_api.tlo and b/td/generate/scheme/td_api.tlo differ diff --git a/td/telegram/Notification.h b/td/telegram/Notification.h index bae23d0a..cd7b3333 100644 --- a/td/telegram/Notification.h +++ b/td/telegram/Notification.h @@ -29,7 +29,7 @@ class Notification { inline td_api::object_ptr get_notification_object(DialogId dialog_id, const Notification ¬ification) { - return td_api::make_object(notification.notification_id.get(), + return td_api::make_object(notification.notification_id.get(), notification.date, notification.type->get_notification_type_object(dialog_id)); }