public static class TdApi.BotInfo extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
TdApi.AffiliateProgramInfo |
affiliateProgram
Information about the affiliate program of the bot; may be null if none.
|
TdApi.Animation |
animation
Animation shown in the chat with the bot if the chat is empty; may be null.
|
boolean |
canGetRevenueStatistics
True, if the bot's revenue statistics are available to the current user.
|
boolean |
canManageEmojiStatus
True, if the bot can manage emoji status of the current user.
|
TdApi.BotCommand[] |
commands
List of the bot commands.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.ChatAdministratorRights |
defaultChannelAdministratorRights
Default administrator rights for adding the bot to channels; may be null.
|
TdApi.ChatAdministratorRights |
defaultGroupAdministratorRights
Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
|
java.lang.String |
description
The text shown in the chat with the bot if the chat is empty.
|
TdApi.InternalLinkType |
editCommandsLink
The internal link, which can be used to edit bot commands; may be null.
|
TdApi.InternalLinkType |
editDescriptionLink
The internal link, which can be used to edit bot description; may be null.
|
TdApi.InternalLinkType |
editDescriptionMediaLink
The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null.
|
TdApi.InternalLinkType |
editSettingsLink
The internal link, which can be used to edit bot settings; may be null.
|
boolean |
hasMediaPreviews
True, if the bot has media previews.
|
TdApi.BotMenuButton |
menuButton
Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.
|
TdApi.Photo |
photo
Photo shown in the chat with the bot if the chat is empty; may be null.
|
java.lang.String |
privacyPolicyUrl
The HTTP link to the privacy policy of the bot.
|
java.lang.String |
shortDescription
The text that is shown on the bot's profile page and is sent together with the link when users share the bot.
|
int |
webAppBackgroundDarkColor
Default dark background color for bot Web Apps; -1 if not specified.
|
int |
webAppBackgroundLightColor
Default light background color for bot Web Apps; -1 if not specified.
|
int |
webAppHeaderDarkColor
Default dark header color for bot Web Apps; -1 if not specified.
|
int |
webAppHeaderLightColor
Default light header color for bot Web Apps; -1 if not specified.
|
| Constructor and Description |
|---|
BotInfo()
Contains information about a bot.
|
BotInfo(java.lang.String shortDescription,
java.lang.String description,
TdApi.Photo photo,
TdApi.Animation animation,
TdApi.BotMenuButton menuButton,
TdApi.BotCommand[] commands,
java.lang.String privacyPolicyUrl,
TdApi.ChatAdministratorRights defaultGroupAdministratorRights,
TdApi.ChatAdministratorRights defaultChannelAdministratorRights,
TdApi.AffiliateProgramInfo affiliateProgram,
int webAppBackgroundLightColor,
int webAppBackgroundDarkColor,
int webAppHeaderLightColor,
int webAppHeaderDarkColor,
boolean canGetRevenueStatistics,
boolean canManageEmojiStatus,
boolean hasMediaPreviews,
TdApi.InternalLinkType editCommandsLink,
TdApi.InternalLinkType editDescriptionLink,
TdApi.InternalLinkType editDescriptionMediaLink,
TdApi.InternalLinkType editSettingsLink)
Contains information about a bot.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String shortDescription
public java.lang.String description
public TdApi.Photo photo
public TdApi.Animation animation
public TdApi.BotMenuButton menuButton
public TdApi.BotCommand[] commands
public java.lang.String privacyPolicyUrl
public TdApi.ChatAdministratorRights defaultGroupAdministratorRights
public TdApi.ChatAdministratorRights defaultChannelAdministratorRights
public TdApi.AffiliateProgramInfo affiliateProgram
public int webAppBackgroundLightColor
public int webAppBackgroundDarkColor
public int webAppHeaderLightColor
public int webAppHeaderDarkColor
public boolean canGetRevenueStatistics
public boolean canManageEmojiStatus
public boolean hasMediaPreviews
public TdApi.InternalLinkType editCommandsLink
public TdApi.InternalLinkType editDescriptionLink
public TdApi.InternalLinkType editDescriptionMediaLink
public TdApi.InternalLinkType editSettingsLink
public static final int CONSTRUCTOR
public BotInfo()
public BotInfo(java.lang.String shortDescription,
java.lang.String description,
TdApi.Photo photo,
TdApi.Animation animation,
TdApi.BotMenuButton menuButton,
TdApi.BotCommand[] commands,
java.lang.String privacyPolicyUrl,
TdApi.ChatAdministratorRights defaultGroupAdministratorRights,
TdApi.ChatAdministratorRights defaultChannelAdministratorRights,
TdApi.AffiliateProgramInfo affiliateProgram,
int webAppBackgroundLightColor,
int webAppBackgroundDarkColor,
int webAppHeaderLightColor,
int webAppHeaderDarkColor,
boolean canGetRevenueStatistics,
boolean canManageEmojiStatus,
boolean hasMediaPreviews,
TdApi.InternalLinkType editCommandsLink,
TdApi.InternalLinkType editDescriptionLink,
TdApi.InternalLinkType editDescriptionMediaLink,
TdApi.InternalLinkType editSettingsLink)
shortDescription - The text that is shown on the bot's profile page and is sent together with the link when users share the bot.description - The text shown in the chat with the bot if the chat is empty.photo - Photo shown in the chat with the bot if the chat is empty; may be null.animation - Animation shown in the chat with the bot if the chat is empty; may be null.menuButton - 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 - List of the bot commands.privacyPolicyUrl - The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://telegram.org/privacy-tpa must be opened.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.affiliateProgram - Information about the affiliate program of the bot; may be null if none.webAppBackgroundLightColor - Default light background color for bot Web Apps; -1 if not specified.webAppBackgroundDarkColor - Default dark background color for bot Web Apps; -1 if not specified.webAppHeaderLightColor - Default light header color for bot Web Apps; -1 if not specified.webAppHeaderDarkColor - Default dark header color for bot Web Apps; -1 if not specified.canGetRevenueStatistics - True, if the bot's revenue statistics are available to the current user.canManageEmojiStatus - True, if the bot can manage emoji status of the current user.hasMediaPreviews - True, if the bot has media previews.editCommandsLink - The internal link, which can be used to edit bot commands; may be null.editDescriptionLink - The internal link, which can be used to edit bot description; may be null.editDescriptionMediaLink - The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null.editSettingsLink - The internal link, which can be used to edit bot settings; may be null.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object