Layer 231
AccountConfirmBotConnection
Confirm a pending bot connection for the current account.
method
account.confirmBotConnection#67ed1f68 bot_id:InputUser = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| BotId | InputUser | The bot whose connection to the account should be confirmed |
Returns
BoolGogram Example
bot, _ := client.GetSendableUser("gogrambot") ok, err := client.AccountConfirmBotConnection(bot) if err != nil { log.Fatal(err) } fmt.Println("bot connection confirmed:", ok)