ReportChat
public struct ReportChat : Codable, Equatable, TDFunction
Reports a chat to the Telegram moderators. Supported only for supergroups, channels, or private chats with bots, since other chats can’t be checked by moderators, or when the report is done from the chat action bar
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
Chat identifier
Declaration
Swift
public let chatId: Int53
-
The reason for reporting the chat
Declaration
Swift
public let reason: ChatReportReason
-
Identifiers of reported messages, if any
Declaration
Swift
public let messageIds: [Int53]
-
Reports a chat to the Telegram moderators. Supported only for supergroups, channels, or private chats with bots, since other chats can’t be checked by moderators, or when the report is done from the chat action bar
Declaration
Swift
public init(chatId: Int53, reason: ChatReportReason, messageIds: [Int53])
Parameters
chatId
Chat identifier
reason
The reason for reporting the chat
messageIds
Identifiers of reported messages, if any