This is a multi-purpose Telegram bot that provides various functionalities including:
- Renaming Telegram files into different formats
- Converting files into video format
- Supporting custom captions and permanent thumbnails
- Enforcing subscription to a targeted chat
You can easily deploy the bot to Heroku by clicking the button below:
To deploy the bot on your own server, follow these steps:
- Clone this repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt
. - Obtain the following credentials:
TG_BOT_TOKEN
: Your Bot Token obtained from @BotFather.UPDATE_CHANNEL
: A channel username (without @) used for ForceSubscribe.APP_ID
andAPI_HASH
: Obtain these from Telegram's website or @UseTGXBot.
- Set up these credentials in your environment variables or directly in the code.
- Run the bot script using
python3 bot.py
.
For any issues or questions related to the bot, feel free to open an issue on GitHub or reach out to the maintainer.