A custom rom post bot for Telegram.

Overview

Rom Poster Bot

A simple Post Bot written in Python using pyTelegramBotAPI to post rom updates to telegram whenever you need. Made by lazy peep for lazy peeps.

How to use

1. Filling up config

Fork the repo and make a file named config.env by using sample_config.env and fill up all the vars

Main Configs

  • BRAND: Device brand name
  • DEVICE_NAME: Device name
  • CODENAME: Device codename
  • MAINTAINER_USERNAME: Telegram username without @
  • SUPPORT_GROUP: Telegram group username without @

Rom Configs

  • ROM_NAME: Rom name
  • ROM_VERSION: Rom version
  • ANDROID_VERSION: Rom android version
  • SOURCE_CHANGELOG_URL: URL of rom source changelog
  • BANNER_URL: Telegraph URL of your rom banner/photo
  • BUILD_DATE: Rom build date
  • BUILD_TYPE: Rom build type (Official/Unofficial)
  • XDA_POST: XDA post URL of rom
  • DOWNLOAD_URL: Download URL of rom
  • MD5: MD5 checksum of rom
  • HASHTAGS: Hashtags for rom post

Optional Configs

  • STICKER_ID: Telegram sticker ID (If added, the bot first sends sticker then the rom post)
  • CUSTOM_MESSAGE: Custom message to add at the end of rom post

2. Adding secrets

After filling up config go to your repo settings > secrets > new repository secret, then you need to add two secrets

  • BOT_TOKEN: Telegram bot token
  • CHAT_ID: Telegram group/channel chat ID where the rom needs to be posted
    Note: Bot should be added in the group/channel where the rom needs to be posted

3. Adding changelog and notes

After filling up repository secrets the add the following things

  • Device side changelog in changelog.txt file
  • Notes for the rom users in notes.txt file

4. Running the bot

After adding changelog and notes the last thing that remains is to run the bot.
We use Github Actions to run the bot

  • Actions will automatically run after modifying changelog.txt and the rom will be posted
  • You can also run the bot but going to actions > Rom Poster Bot Runner > workflow-dispatch and tap on run
    Note: After posting the bot pins the message too
Owner
Prajwal
Learner
Prajwal
Univerity-student oriented (lithuanian) discord bot

Univerity-student oriented (lithuanian) discord bot

3 Nov 30, 2021
Ever wanted a dashboard for making your antispam? This is it.

Ever wanted a dashboard for making your antispam? This is it.

Skelmis 1 Oct 27, 2021
ETL python utilizando API do Spotify

Processo de ETL com Python e Airflow usando API do Spotify Sobre Projeto de ETL(Extract, Transform e Load) utilizando Python com API do Spotify e Airf

Leonardo 10 Mar 16, 2022
This is a unofficial library for making bots in rubika.

rubika this is a unofficial library for making bots in rubika using this library you can make your own0 rubika bot and control that those bots that ma

Bahman 50 Jan 02, 2023
A Phyton script working for stream twits from twitter by tweepy to mongoDB

twitter-to-mongo A python script that uses the Tweepy library to pull Tweets with specific keywords from Twitter's Streaming API, and then stores the

3 Feb 03, 2022
Enumerate Microsoft 365 Groups in a tenant with their metadata

Enumerate Microsoft 365 Groups in a tenant with their metadata Description The all_groups.py script allows to enumerate all Microsoft 365 Groups in a

Clément Notin 46 Dec 26, 2022
A Python implementation of a discord bot that acts as a server scanner similar to Copenheimer.

Bad Copenheimer A Python impelentation of a discord bot that acts as a server scanner. This is a discord bot that will scan ip adresses to see if they

pilot1782 69 Dec 16, 2022
A Pluggable And Powerful Telegram Manager Bot

FRIDAY-USERBOT 🇮🇳 A Powerful, Smart And Simple Userbot In Pyrogram. Support 🚑 Inspiration & Credits Userge-X Userge Pokurt Pyrogram Code Owners Chs

DevsExpo 371 Mar 26, 2022
💬 Send iMessages using Python through the Shortcuts app.

py-imessage-shortcuts Send iMessages using Python through the Shortcuts app. Requires macOS Monterey (macOS 12) or later. Compatible with Apple Silico

Kevin Schaich 10 Nov 30, 2022
Simple Telegram webscrap bot

webscrap-bot Simple Telegram webscrap bot Configs TOKEN - Get bot token from @BotFather API_ID - From my.telegram.org API_HASH - From my.telegram.org

lokaman chendekar 10 Oct 21, 2022
Report-snapchat - Report Snapchat acc with python

report-snapchat Report Snapchat acc Report users on Snapchat about the tool : 4

17 Dec 01, 2022
A python api to get info on covid-19

A python api to get info on covid-19

roof 2 Sep 18, 2022
A twitter bot that simply replies with a beautiful screenshot of the tweet, powered by beautify.dhravya.dev

Poet this! Replies with a beautiful screenshot of the tweet, powered by poet.so Installation git clone https://github.com/dhravya/poet-this.git cd po

Dhravya Shah 30 Dec 04, 2022
A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha.

Emoji-Captcha-Bot A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha. About API: Using api.abirhasan.wtf/captc

Abir Hasan 52 Dec 11, 2022
A simple Telegram bot that can add caption to any media on your channel

Channel Auto Caption This bot can add a caption for any media/document sent to a channel. Just deploy bot and add bot as admin to a channel. Deploy to

22 Nov 14, 2022
A powerful discord bot for forming team.

Discord_SquadBot A powerful discord bot for forming team. Pre-requirement Python 3.7 and latest Discord.py module is required. Installation guideline

Jacky Yu 2 Jan 29, 2022
Simple Discord bot for the Collectez community.

Harvey - Discord Bot Simple Discord bot for the Collectez community. Features Ping the current status of Collectez's Teztools node. Steal emojis from

delintkhaum 1 Dec 26, 2021
A simple python script for rclone. Use multiple Google Service Accounts and cycle through them.

About GSAclone GSAclone is a simple python script for rclone, written with the purpose of using multiple Google service accounts on Google Drive and "

Shiro39 6 Feb 25, 2022
Python library wrapping and enhancing the Invenio RDM REST API.

Iridium The metal Iridium is used to refine and enhance metal alloys. Similarly, this package provides an enhanced coating around the Invenio RDM APIs

Materials Data Science and Informatics 2 Mar 29, 2022