Class TdApi.InputMessageText

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean clearDraft
      True, if a chat message draft should be deleted.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean disableWebPagePreview
      True, if rich web page previews for URLs in the message text should be disabled.
      TdApi.FormattedText text
      Formatted text to be sent.
    • Field Detail

      • text

        public TdApi.FormattedText text
        Formatted text to be sent. Only Bold, Italic, Code, Pre, PreCode and TextUrl entities are allowed to be specified manually.
      • disableWebPagePreview

        public boolean disableWebPagePreview
        True, if rich web page previews for URLs in the message text should be disabled.
      • clearDraft

        public boolean clearDraft
        True, if a chat message draft should be deleted.
      • CONSTRUCTOR

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

      • InputMessageText

        public InputMessageText()
        Default constructor.
      • InputMessageText

        public InputMessageText​(TdApi.FormattedText text,
                                boolean disableWebPagePreview,
                                boolean clearDraft)
        Constructor for initialization of all fields.
        Parameters:
        text - Formatted text to be sent. Only Bold, Italic, Code, Pre, PreCode and TextUrl entities are allowed to be specified manually.
        disableWebPagePreview - True, if rich web page previews for URLs in the message text should be disabled.
        clearDraft - True, if a chat message draft should be deleted.