Class TdApi.ReportChat

  • Enclosing class:
    TdApi

    public static class TdApi.ReportChat
    extends TdApi.Function
    Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported.

    Returns Ok

    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • messageIds

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

        public String text
        Additional report details; 0-1024 characters.
      • 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 for a function, which reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported.

        Returns Ok

      • ReportChat

        public ReportChat​(long chatId,
                          long[] messageIds,
                          TdApi.ChatReportReason reason,
                          String text)
        Creates a function, which reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.canBeReported.

        Returns Ok

        Parameters:
        chatId - Chat identifier.
        messageIds - Identifiers of reported messages, if any.
        reason - The reason for reporting the chat.
        text - Additional report details; 0-1024 characters.