- Python 3.6 or higher The required Python packages are:
- requests: For making HTTP requests to the Telegram API
- pytz: Allows accurate and cross platform timezone calculations using Python 2.4 or higher
- Create a Telegram bot and get your bot API token:
- Go to BotFather on Telegram and follow the instructions to create a new bot
- Save the API token that BotFather gives you
- Add that bot to specific chat
- Clone this repository and navigate to project folder:
git clone -b Matrixx https://github.com/tanvirr007/auto-rom-post-bot.git && cd auto-rom-post-bot
- Install dependencies by running:
pip install -r assets/requirements.txt
- Insert your Chat ID by type:
nano assets/config.json
- CHAT_ID = "-100xxxxxx"
- Replace xxxxxx with your specific chat ID
- Place the image you want to post in the project folder and name it banner.png
- Run the script:
python bot.py
- Enter your bot API token when prompted by the script [only once if your API token is valid]
- The script will automatically send the formatted message with the image to the specified chat
- This script sends automated posts to Telegram
- Feel free to customize the script as needed!