Class TdApi.ChangeChatReportSpamState

  • Enclosing class:
    TdApi

    public static class TdApi.ChangeChatReportSpamState
    extends TdApi.Function
    Used to let the server know whether a chat is spam or not. Can be used only if ChatReportSpamState.canReportSpam is true. After this request, ChatReportSpamState.canReportSpam becomes false forever.

    Returns Ok

    • Field Summary

      Fields 
      Modifier and Type Field Description
      long chatId
      Chat identifier.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean isSpamChat
      If true, the chat will be reported as spam; otherwise it will be marked as not spam.
    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • isSpamChat

        public boolean isSpamChat
        If true, the chat will be reported as spam; otherwise it will be marked as not spam.
      • CONSTRUCTOR

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

      • ChangeChatReportSpamState

        public ChangeChatReportSpamState()
        Default constructor.
      • ChangeChatReportSpamState

        public ChangeChatReportSpamState​(long chatId,
                                         boolean isSpamChat)
        Constructor for initialization of all fields.
        Parameters:
        chatId - Chat identifier.
        isSpamChat - If true, the chat will be reported as spam; otherwise it will be marked as not spam.