telegram api method · layer 229 · #10cf3123

bots.setBotInfo

usable by users and bots

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

definition

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

returns

Bool

errors (4)

codeerrordescription
400BOT_INVALIDThis is not a valid bot.
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 154–229 · constructor id changed 1×

idlayers
#a365df7a154–156
#10cf3123158–229