bots.canSendMessage #
Check whether the specified bot can send us messages¶
Layer 223
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.canSendMessage#1359f4e6 bot:InputUser = Bool; Parameters #
| Name | Type | Description |
|---|---|---|
| bot | InputUser | The bot |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |