- Enclosing class:
- TdApi
Sets the text shown on a bot's
profile page and sent together with
the link when users share the bot.
Can be called only if userTypeBot.canBeEdited == true.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the target bot.static final int
A two-letter ISO 639-1 language code.New bot's short description on the specified language. -
Constructor Summary
ConstructorDescriptionSets the text shown on a bot's profile page and sent together with the link when users share the bot.SetBotInfoShortDescription
(long botUserId, String languageCode, String shortDescription) Sets the text shown on a bot's profile page and sent together with the link when users share the bot.Sets the text shown on a bot's profile page and sent together with the link when users share the bot. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
botUserId
public long botUserIdIdentifier 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
SetBotInfoShortDescription
public SetBotInfoShortDescription()Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.canBeEdited == true. ReturnsOk
-
SetBotInfoShortDescription
Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.canBeEdited == true. ReturnsOk
- Parameters:
botUserId
- long Identifier of the target bot.languageCode
- String 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
- String New bot's short description on the specified language.
-
SetBotInfoShortDescription
Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.canBeEdited == true. ReturnsOk
- 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()
-