Telegram setup
It will be necessary to create and setup a bot to manipulate all the files in an archive chat.
Bot
- Start a chat with BotFather
- Send the following message:
/newbot
- Choose a name
- Choose a unique username that we are going to reference with
<BOT_USERNAME>
- If the creation successes, BotFather will send you a message with the bot token, that we are going to reference with
<BOT_TOKEN>
Archive chat
- Create a group chat named
Archive
- Make the Archive group chat as a topic chat by editing the following settings:
Group info -> Edit group, Topics toggle is off -> Topics toggle to on
- Open Telegram Web K version
- Open:
Archive group chat -> General topic
- Copy the chat ID in the browser URL. We are going to reference it with
<GROUP_ARCHIVE>
- Add the bot
<BOT_USERNAME>
into the Archive group - Give administrator privilege to the bot:
Edit group -> Administrators -> Add Administrator, choose the bot -> Save