bots.setBotInfo #

Set localized name, about text and description of a bot (or of the current account, if called by a bot).

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.setBotInfo#10cf3123 flags:# bot:flags.2?InputUser lang_code:string name:flags.3?string about:flags.0?string description:flags.1?string = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
botflags.2?InputUserIf called by a user, must contain the peer of a bot we own.
lang_codestringLanguage code, if left empty update the fallback about text and description
nameflags.3?stringNew bot name
aboutflags.0?stringNew about text
descriptionflags.1?stringNew description

Result #

Bool

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
400USER_BOT_INVALIDUser accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.