Class TdApi.ReportChat

  • Enclosing class:
    TdApi

    public static class TdApi.ReportChat
    extends TdApi.Function
    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.

    Returns Ok

    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • messageIds

        public long[] messageIds
        Identifiers of reported messages, if any.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReportChat

        public ReportChat()
        Default constructor.
      • ReportChat

        public ReportChat​(long chatId,
                          TdApi.ChatReportReason reason,
                          long[] messageIds)
        Constructor for initialization of all fields.
        Parameters:
        chatId - Chat identifier.
        reason - The reason for reporting the chat.
        messageIds - Identifiers of reported messages, if any.