tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

How to get "Posted Stories" for a user? #2753

Closed rnd4222 closed 9 months ago

rnd4222 commented 9 months ago

In a Telegram Desktop, when I open user info window, there is a "N posts" link which opens "Posted Stories" windows. This stories doesn't seems to be returned neither by GetChatArchivedStories nor GetChatActiveStories. How do I get that?

levlam commented 9 months ago

Stories that are available after expiration date are called "pinned" in API, so you need to call getChatPinnedStories for this.

rnd4222 commented 9 months ago

Thanks! That worked.