stories.canSendStory #

Check whether we can post stories as the specified peer.

Layer 223

stories.canSendStoryCount#c387c04e count_remains:int = stories.CanSendStoryCount;
---functions---
stories.canSendStory#30eb63f0 peer:InputPeer = stories.CanSendStoryCount;

Parameters #

NameTypeDescription
peerInputPeerThe peer from which we wish to post stories.

Result #

stories.CanSendStoryCount

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOOSTS_REQUIREDThe specified channel must first be boosted by its users in order to perform this action.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PEER_ID_INVALIDThe provided peer id is invalid.
400PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.
400STORIES_TOO_MUCHYou have hit the maximum active stories limit as specified by the story_expiring_limit_* client configuration parameters: you should buy a Premium subscription, delete an active story, or wait for the oldest story to expire.
400STORY_SEND_FLOOD_MONTHLY_%dYou've hit the monthly story limit as specified by the stories_sent_monthly_limit_* client configuration parameters: wait %d seconds before posting a new story.
400STORY_SEND_FLOOD_WEEKLY_%dYou've hit the weekly story limit as specified by the stories_sent_weekly_limit_* client configuration parameters: wait for %d seconds before posting a new story.

Channel and supergroup boosts #

Telegram Premium users can grant their favorite channels and supergroups additional features like the ability to post stories by giving them boosts.

Client configuration #

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

Telegram Premium #

Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.