telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

add Story / Stories feature support

Open Geczy opened this issue 2 years ago • 11 comments

allow adding stories programmatically

Geczy avatar Aug 08 '23 13:08 Geczy

That will be a very useful feature

vinicius73 avatar Aug 17 '23 21:08 vinicius73

Bots can't be added to contacts, so currently no users will be able to see stories sent by bots in their story feeds anyway.

levlam avatar Aug 17 '23 22:08 levlam

It’s for self bots

Geczy avatar Aug 18 '23 02:08 Geczy

"self bots" can already do anything a user can, included sending and seeing stories

RememberTheAir avatar Aug 18 '23 06:08 RememberTheAir

"self bots" can already do anything a user can, included sending and sending and seeing stories

okay, show me the code where self bots can send and see stories? the point was having a telegram api library that i can use in my apps, not to have to reverse engineer and send the protobuff calls myself

Geczy avatar Aug 18 '23 11:08 Geczy

not to have to reverse engineer and send the protobuff calls myself

All official Telegram apps are open-source, so there is no need to reverse engineer anything. Also, none of them use protobuf.

levlam avatar Aug 18 '23 12:08 levlam

Sweet On Aug 18, 2023 at 8:09 AM -0400, Aliaksei Levin @.***>, wrote:

not to have to reverse engineer and send the protobuff calls myself All official Telegram apps are open-source, so there is no need to reverse engineer anything. Also, none of them use protobuf. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Geczy avatar Aug 18 '23 12:08 Geczy

"self bots" can already do anything a user can, included sending and sending and seeing stories

okay, show me the code where self bots can send and see stories? the point was having a telegram api library that i can use in my apps, not to have to reverse engineer and send the protobuff calls myself

did you find a way to do it?

ars-h avatar Aug 23 '23 06:08 ars-h

For reference, this is tdlib's tl schema, which lists all available methods that can be used by any client using the users API (including "self bots") (CTRL+F "stories", or the stories.* namespace). It's up to whoever maintains the framework you're using (tdlib, pyrogram, whatever) to update it and expose the related methods to use the new functions and types.

Bots can't be added to contacts, so currently no users will be able to see stories sent by bots in their story feeds anyway.

From this answer I assume that bot accounts are not forbidden from publishing stories so I guess one could update the bot api so it exposed the methods to publish stories, but nobody would be able to see them, right?

RememberTheAir avatar Aug 23 '23 08:08 RememberTheAir

From this answer I assume that bot accounts are not forbidden from publishing stories so I guess one could update the bot api so it exposed the methods to publish stories, but nobody would be able to see them, right?

Bots can't publish stories, because it is useless now.

levlam avatar Aug 23 '23 08:08 levlam

Ayo how to pyrogram to upload stories on user account

spiral009 avatar Sep 29 '23 14:09 spiral009