Class TdApi.InternalLinkTypeBotStartInGroup

  • Enclosing class:
    TdApi

    public static class TdApi.InternalLinkTypeBotStartInGroup
    extends TdApi.InternalLinkType
    The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
    • Field Detail

      • botUsername

        public String botUsername
        Username of the bot.
      • startParameter

        public String startParameter
        The parameter to be passed to sendBotStartMessage.
      • CONSTRUCTOR

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

      • InternalLinkTypeBotStartInGroup

        public InternalLinkTypeBotStartInGroup()
        The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
      • InternalLinkTypeBotStartInGroup

        public InternalLinkTypeBotStartInGroup​(String botUsername,
                                               String startParameter)
        The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
        Parameters:
        botUsername - Username of the bot.
        startParameter - The parameter to be passed to sendBotStartMessage.