Class TdApi.SendBotStartMessage

  • Enclosing class:
    TdApi

    public static class TdApi.SendBotStartMessage
    extends TdApi.Function
    Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.

    Returns Message

    • Field Detail

      • botUserId

        public long botUserId
        Identifier of the bot.
      • chatId

        public long chatId
        Identifier of the target chat.
      • parameter

        public String parameter
        A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking).
      • CONSTRUCTOR

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

      • SendBotStartMessage

        public SendBotStartMessage()
        Default constructor for a function, which invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.

        Returns Message

      • SendBotStartMessage

        public SendBotStartMessage​(long botUserId,
                                   long chatId,
                                   String parameter)
        Creates a function, which invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.

        Returns Message

        Parameters:
        botUserId - Identifier of the bot.
        chatId - Identifier of the target chat.
        parameter - A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking).