can_post_stories()

Client.can_post_stories()

Check whether we can post stories as the specified chat.

Usable by Users Bots
Parameters:

chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

Returns:

int – On success, count of remaining stories that can be posted is returned.

Example

# Check if you can send story to chat id
await app.can_post_stories(chat_id)