Skip to content

This script automatically creates a release template and sends it to a Telegram chat via the terminal or CI

Notifications You must be signed in to change notification settings

tanvirr007/auto-rom-post-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • 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

Setup

  1. 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
  1. 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
  1. Install dependencies by running:
pip install -r assets/requirements.txt
  1. Insert your Chat ID by type:
nano assets/config.json
  1. CHAT_ID = "-100xxxxxx"
  • Replace xxxxxx with your specific chat ID

Usage

  1. Place the image you want to post in the project folder and name it banner.png
  2. Run the script:
python bot.py
  1. Enter your bot API token when prompted by the script [only once if your API token is valid]
  2. The script will automatically send the formatted message with the image to the specified chat

Notes

  • This script sends automated posts to Telegram
  • Feel free to customize the script as needed!

Author

  • This script is created by тαиνir
  • If you find any issues or want to improve the script, feel free to open a pull request and contact me on Telegram

About

This script automatically creates a release template and sends it to a Telegram chat via the terminal or CI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages