of available posts in a channel?
Just the available posts which means the posts haven't been deleted
I know four ways: - Add the bot to the channel before sending the posts. You will get an update for every post. - resond to every existing post with another post. The original posts will be contained in the reply_to_message property of the post. - Create a userbot instead of a usual bot. - Copy all links to existing posts manually using a regular telegram client. The number at the end of the link is the id.
Appreciate your help👍🌹 The problem with the solution 1, is that the channel has been posting for a long time before adding my bot to it, so basically way 1 is not possible and also about solution 4, the problem is the number of posts is too many to deal with them manually... But about the solution of using a user bot instead of an usual bot, can you please give me some more information? I don't think I know anything about it
I don't know much either. But I know it can be done using TDLib. https://core.telegram.org/tdlib But I just had another idea: Maybe it is easier to guess the ids. They're sequential starting with 1. And you can get the current last id easily. So you could try to use copyMessage on every possible id an check, if it succeeds.
Thanks, I'll check it out👍 About the second idea, I've done something similar to that and the problem with it is it takes too long, because it's simply iteration on about 5000 message_Ids which so many of them may not be available at all! You know the final goal is to delete the available posts fast enough. I've seen this being done very quickly in another bot, but I don't understand how it does it🤔 I can show you this ability of that bot of you're interested, but thanks again for your help🌹
Обсуждают сегодня