public static class TdApi.SetBotName 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 |
name
New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty.
|
| Constructor and Description |
|---|
SetBotName()
Default constructor for a function, which sets the name of a bot.
|
SetBotName(long botUserId,
java.lang.String languageCode,
java.lang.String name)
Creates a function, which sets the name of a 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 name
public static final int CONSTRUCTOR
public SetBotName()
Returns Ok
public SetBotName(long botUserId,
java.lang.String languageCode,
java.lang.String name)
Returns Ok
botUserId - Identifier of the target bot.languageCode - A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name.name - New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object