Class TdApi.SendBotStartMessage
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Message>
dev.voroby.springframework.telegram.client.TdApi.SendBotStartMessage
- Enclosing class:
- TdApi
Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right. 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
Identifier uniquely determining type of the object.A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking). -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right.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; requires canInviteUsers member right. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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; requires canInviteUsers member right. 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
Creates a function, which invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right. 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).
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-