ChatEventAction
public indirect enum ChatEventAction : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Undocumented
-
A message was edited
- oldMessage: The original message before the edit
- newMessage: The message after it was edited
-
A message was deleted
- message: Deleted message
Declaration
Swift
case chatEventMessageDeleted(message: Message)
-
A poll in a message was stopped
- message: The message with the poll
Declaration
Swift
case chatEventPollStopped(message: Message)
-
A message was pinned
- message: Pinned message
Declaration
Swift
case chatEventMessagePinned(message: Message)
-
A message was unpinned
Declaration
Swift
case chatEventMessageUnpinned
-
A new member joined the chat
Declaration
Swift
case chatEventMemberJoined
-
A member left the chat
Declaration
Swift
case chatEventMemberLeft
-
A new chat member was invited
- userId: New member user identifier
- status: New member status
Declaration
Swift
case chatEventMemberInvited(userId: Int32, status: ChatMemberStatus)
-
A chat member has gained/lost administrator status, or the list of their administrator privileges has changed
- userId: Chat member user identifier
- oldStatus: Previous status of the chat member
- newStatus: New status of the chat member
Declaration
Swift
case chatEventMemberPromoted(userId: Int32, oldStatus: ChatMemberStatus, newStatus: ChatMemberStatus)
-
A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed
- userId: Chat member user identifier
- oldStatus: Previous status of the chat member
- newStatus: New status of the chat member
Declaration
Swift
case chatEventMemberRestricted(userId: Int32, oldStatus: ChatMemberStatus, newStatus: ChatMemberStatus)
-
The chat title was changed
- oldTitle: Previous chat title
- newTitle: New chat title
Declaration
Swift
case chatEventTitleChanged(oldTitle: String, newTitle: String)
-
The chat permissions was changed
- oldPermissions: Previous chat permissions
- newPermissions: New chat permissions
Declaration
Swift
case chatEventPermissionsChanged(oldPermissions: ChatPermissions, newPermissions: ChatPermissions)
-
The chat description was changed
- oldDescription: Previous chat description
- newDescription: New chat description
Declaration
Swift
case chatEventDescriptionChanged(oldDescription: String, newDescription: String)
-
The chat username was changed
- oldUsername: Previous chat username
- newUsername: New chat username
Declaration
Swift
case chatEventUsernameChanged(oldUsername: String, newUsername: String)
-
The chat photo was changed
- oldPhoto: Previous chat photo value; may be null
- newPhoto: New chat photo value; may be null
-
The can_invite_users permission of a supergroup chat was toggled
- canInviteUsers: New value of can_invite_users permission
Declaration
Swift
case chatEventInvitesToggled(canInviteUsers: Bool)
-
The linked chat of a supergroup was changed
- oldLinkedChatId: Previous supergroup linked chat identifier
- newLinkedChatId: New supergroup linked chat identifier
-
The slow_mode_delay setting of a supergroup was changed
- oldSlowModeDelay: Previous value of slow_mode_delay
- newSlowModeDelay: New value of slow_mode_delay
Declaration
Swift
case chatEventSlowModeDelayChanged(oldSlowModeDelay: Int32, newSlowModeDelay: Int32)
-
The sign_messages setting of a channel was toggled
- signMessages: New value of sign_messages
Declaration
Swift
case chatEventSignMessagesToggled(signMessages: Bool)
-
The supergroup sticker set was changed
- oldStickerSetId: Previous identifier of the chat sticker set; 0 if none
- newStickerSetId: New identifier of the chat sticker set; 0 if none
Declaration
-
The supergroup location was changed
- oldLocation: Previous location; may be null
- newLocation: New location; may be null
Declaration
Swift
case chatEventLocationChanged(oldLocation: ChatLocation?, newLocation: ChatLocation?)
-
The is_all_history_available setting of a supergroup was toggled
- isAllHistoryAvailable: New value of is_all_history_available
Declaration
Swift
case chatEventIsAllHistoryAvailableToggled(isAllHistoryAvailable: Bool)