Class TdApi.BlockMessageSenderFromReplies

  • Enclosing class:
    TdApi

    public static class TdApi.BlockMessageSenderFromReplies
    extends TdApi.Function
    Blocks an original sender of a message in the Replies chat.

    Returns Ok

    • Field Detail

      • messageId

        public long messageId
        The identifier of an incoming message in the Replies chat.
      • deleteMessage

        public boolean deleteMessage
        Pass true if the message must be deleted.
      • deleteAllMessages

        public boolean deleteAllMessages
        Pass true if all messages from the same sender must be deleted.
      • reportSpam

        public boolean reportSpam
        Pass true if the sender must be reported to the Telegram moderators.
      • CONSTRUCTOR

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

      • BlockMessageSenderFromReplies

        public BlockMessageSenderFromReplies()
        Default constructor for a function, which blocks an original sender of a message in the Replies chat.

        Returns Ok

      • BlockMessageSenderFromReplies

        public BlockMessageSenderFromReplies​(long messageId,
                                             boolean deleteMessage,
                                             boolean deleteAllMessages,
                                             boolean reportSpam)
        Creates a function, which blocks an original sender of a message in the Replies chat.

        Returns Ok

        Parameters:
        messageId - The identifier of an incoming message in the Replies chat.
        deleteMessage - Pass true if the message must be deleted.
        deleteAllMessages - Pass true if all messages from the same sender must be deleted.
        reportSpam - Pass true if the sender must be reported to the Telegram moderators.