View Source ExTDLib.Method.ToggleStoryIsPinned (ExTDLib v0.0.4)

Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_pinned == true. Returns object_ptr<Ok>.

NameTypeDescription
story_sender_chat_idstringIdentifier of the chat that posted the story.
story_idnumberIdentifier of the story.
is_pinnedboolPass true to make the story accessible after expiration; pass false to make it private.

More details on telegram's documentation.