Layer 220
BotsCanSendMessage
Check whether the specified bot can send us messages
method
Users
bots.canSendMessage#1359f4e6 bot:InputUser = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
Gogram Example
// BotsCanSendMessage - positional arguments result, err := client.BotsCanSendMessage(&tg.InputUserSelf{}) if err != nil { // handle error } // result is *tg.Bool