public static class TdApi.SetBotInfoShortDescription extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
Identifier of the target bot.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
languageCode
A two-letter ISO 639-1 language code.
|
java.lang.String |
shortDescription
New bot's short description on the specified language.
|
| Constructor and Description |
|---|
SetBotInfoShortDescription()
Default constructor for a function, which sets the text shown on a bot's profile page and sent together with the link when users share the bot.
|
SetBotInfoShortDescription(long botUserId,
java.lang.String languageCode,
java.lang.String shortDescription)
Creates a function, which sets the text shown on a bot's profile page and sent together with the link when users share the bot.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long botUserId
public java.lang.String languageCode
public java.lang.String shortDescription
public static final int CONSTRUCTOR
public SetBotInfoShortDescription()
Returns Ok
public SetBotInfoShortDescription(long botUserId,
java.lang.String languageCode,
java.lang.String shortDescription)
Returns Ok
botUserId - Identifier of the target bot.languageCode - A two-letter ISO 639-1 language code. If empty, the short description will be shown to all users for whose languages there is no dedicated description.shortDescription - New bot's short description on the specified language.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object