telegram api method · layer 229 · #10cf3123
bots.setBotInfo
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
bot | InputUser | If called by a user, must contain the peer of a bot we own. |
lang_code | string | Language code, if left empty update the fallback about text and description |
name | string | New bot name |
about | string | New about text |
description | string | New description |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | USER_BOT_INVALID | User 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. |
| 401 | AUTH_KEY_UNREGISTERED | The 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×
| id | layers |
|---|---|
| #a365df7a | 154–156 |
| #10cf3123 | 158–229 |