can_post_story()¶
- Client.can_post_story()¶
Checks whether the current user can post a story on behalf of a chat.
Usable by Users Bots
Requires can_post_stories right for supergroup and channel chats.
- Parameters:¶
chat_id (``int`` | ``str``) – Unique identifier (int) or username (str) of the target chat.
- Returns:¶
:obj:`~pyrogram.types.CanPostStoryResult` (On success.)
Example
# Check if you can send story to chat id await app.can_post_story(chat_id)