java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InternalLinkType
it.tdlight.jni.TdApi.InternalLinkTypeAttachmentMenuBot
- Enclosing class:
- TdApi
The link is a link to an attachment
menu bot to be opened in the specified
or a chosen chat. Process given
targetChat to open the chat. Then,
call searchPublicChat with the given
bot username, check that the user is
a bot and can be added to attachment
menu. Then, use getAttachmentMenuBot
to receive information about the bot.
If the bot isn't added to attachment
menu, then user needs to confirm adding
the bot to attachment menu. If user
confirms adding, then use
toggleBotIsAddedToAttachmentMenu to
add it. If the attachment menu bot
can't be used in the opened chat,
show an error to the user. If the bot
is added to attachment menu and can
be used in the chat, then use openWebApp
with the given URL.
-
Field Summary
Modifier and TypeFieldDescriptionUsername of the bot.static final int
Target chat to be opened.URL to be passed to openWebApp. -
Constructor Summary
ConstructorDescriptionThe link is a link to an attachment menu bot to be opened in the specified or a chosen chat.InternalLinkTypeAttachmentMenuBot
(TdApi.TargetChat targetChat, String botUsername, String url) The link is a link to an attachment menu bot to be opened in the specified or a chosen chat.The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
targetChat
Target chat to be opened. -
botUsername
Username of the bot. -
url
URL to be passed to openWebApp. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
InternalLinkTypeAttachmentMenuBot
public InternalLinkTypeAttachmentMenuBot()The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given targetChat to open the chat. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to attachment menu, then user needs to confirm adding the bot to attachment menu. If user confirms adding, then use toggleBotIsAddedToAttachmentMenu to add it. If the attachment menu bot can't be used in the opened chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp with the given URL. -
InternalLinkTypeAttachmentMenuBot
public InternalLinkTypeAttachmentMenuBot(TdApi.TargetChat targetChat, String botUsername, String url) The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given targetChat to open the chat. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to attachment menu, then user needs to confirm adding the bot to attachment menu. If user confirms adding, then use toggleBotIsAddedToAttachmentMenu to add it. If the attachment menu bot can't be used in the opened chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp with the given URL.- Parameters:
targetChat
- TargetChat Target chat to be opened.botUsername
- String Username of the bot.url
- String URL to be passed to openWebApp.
-
InternalLinkTypeAttachmentMenuBot
The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given targetChat to open the chat. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to attachment menu, then user needs to confirm adding the bot to attachment menu. If user confirms adding, then use toggleBotIsAddedToAttachmentMenu to add it. If the attachment menu bot can't be used in the opened chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp with the given URL.- 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()
-