java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.BotInfo
- Enclosing class:
- TdApi
Contains information about a bot.
-
Field Summary
Modifier and TypeFieldDescriptionList of the bot commands.static final int
Default administrator rights for adding the bot to channels; may be null.Default administrator rights for adding the bot to basic group and supergroup chats; may be null.The text shown in the chat with the bot if the chat is empty.Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.The text that is shown on the bot's profile page and is sent together with the link when users share the bot. -
Constructor Summary
ConstructorDescriptionBotInfo()
Contains information about a bot.Contains information about a bot.BotInfo
(String shareText, String description, TdApi.BotMenuButton menuButton, TdApi.BotCommand[] commands, TdApi.ChatAdministratorRights defaultGroupAdministratorRights, TdApi.ChatAdministratorRights defaultChannelAdministratorRights) Contains information about a bot. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
description
The text shown in the chat with the bot if the chat is empty. -
commands
List of the bot commands. -
defaultGroupAdministratorRights
Default administrator rights for adding the bot to basic group and supergroup chats; may be null. -
defaultChannelAdministratorRights
Default administrator rights for adding the bot to channels; may be null. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
Constructor Details
-
BotInfo
public BotInfo()Contains information about a bot. -
BotInfo
public BotInfo(String shareText, String description, TdApi.BotMenuButton menuButton, TdApi.BotCommand[] commands, TdApi.ChatAdministratorRights defaultGroupAdministratorRights, TdApi.ChatAdministratorRights defaultChannelAdministratorRights) Contains information about a bot.- Parameters:
shareText
- String The text that is shown on the bot's profile page and is sent together with the link when users share the bot.description
- String The text shown in the chat with the bot if the chat is empty.menuButton
- BotMenuButton Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.commands
- BotCommand[] List of the bot commands.defaultGroupAdministratorRights
- ChatAdministratorRights Default administrator rights for adding the bot to basic group and supergroup chats; may be null.defaultChannelAdministratorRights
- ChatAdministratorRights Default administrator rights for adding the bot to channels; may be null.
-
BotInfo
Contains information about a bot.- 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()
-