NotificationType
public indirect enum NotificationType : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Contains detailed information about a notification
-
New message was received
- message: The message
Declaration
Swift
case newMessage(message: Message)
-
New secret chat was created
Declaration
Swift
case newSecretChat
-
New call was received
- callId: Call identifier
Declaration
Swift
case newCall(callId: Int32)
-
New message was received through a push notification
- messageId: The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages and as reply_to_message_id
- senderUserId: Sender of the message. Corresponding user may be inaccessible
- content: Push message content
Declaration
Swift
case newPushMessage(messageId: Int53, senderUserId: Int32, content: PushMessageContent)