Class TdApi.GetChatSponsoredMessage

  • Enclosing class:
    TdApi

    public static class TdApi.GetChatSponsoredMessage
    extends TdApi.Function
    Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat.

    Returns SponsoredMessage

    • Field Detail

      • chatId

        public long chatId
        Identifier of the chat.
      • CONSTRUCTOR

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

      • GetChatSponsoredMessage

        public GetChatSponsoredMessage()
        Default constructor for a function, which returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat.

        Returns SponsoredMessage

      • GetChatSponsoredMessage

        public GetChatSponsoredMessage​(long chatId)
        Creates a function, which returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat.

        Returns SponsoredMessage

        Parameters:
        chatId - Identifier of the chat.