Layer 231
BotsAddUsername
Add an additional username to a bot you own.
method
bots.addUsername#3501c08a bot:InputUser username:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot |
| Username | string | Username to add |
Returns
BoolGogram Example
bot, _ := client.GetSendableUser("my_app_bot") ok, err := client.BotsAddUsername(bot, "my_app_alt_bot") if err != nil { log.Fatal(err) } fmt.Println("extra username added:", ok)