can_bot_send_message()

async Client.can_bot_send_message()

Check if a bot can send messages to the user.

Usable by Users Bots
Parameters:

bot (Union[int, str]) – Bot username or ID

Returns:

Message

Example

await app.can_bot_send_message(...)