- Enclosing class:
- TdApi
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 Summary
Modifier and TypeFieldDescriptionlong
Identifier of the bot.long
Identifier of the target chat.static final int
A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking). -
Constructor Summary
ConstructorDescriptionInvites a bot to a chat (if it is not yet a member) and sends it the /start command.SendBotStartMessage
(long botUserId, long chatId, String parameter) Invites a bot to a chat (if it is not yet a member) and sends it the /start command.SendBotStartMessage
(DataInput input) -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
botUserId
public long botUserIdIdentifier of the bot. -
chatId
public long chatIdIdentifier of the target chat. -
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- See Also:
-
-
Constructor Details
-
SendBotStartMessage
public SendBotStartMessage()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
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
- long Identifier of the bot.chatId
- long Identifier of the target chat.parameter
- String A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking).
-
SendBotStartMessage
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-