bots.toggleUsername #

Activate or deactivate a purchased fragment.com username associated to a bot we own.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.toggleUsername#53ca973 bot:InputUser username:string active:Bool = Bool;

Parameters #

NameTypeDescription
botInputUserThe bot
usernamestringUsername
activeBoolWhether to activate or deactivate it

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
400USERNAME_NOT_MODIFIEDThe username was not modified.