Giter Club home page Giter Club logo

tagallbot's Introduction

Tag All Bot

A telegram bot that tags all the users in a group.

Python Version Code Style

Usage:

Reply to any message with any one of the following:

  • @everyone
  • !everyone
  • @tag
  • !tag

And the bot shall tag everyone in that group.

Aditionally, Bot owner can use following commands:

  • !grant_su: Grants the replied user with "superuser" role, i.e, they can use the bot in any chat.
  • !revoke_su: Revokes the "superuser" role of the replied person.

Bot owner AND Superusers can use following commands:

  • !grant: Grants the replied user with "tag" role, i.e, they can use the bot in that particular chat.
  • !revoke: Revokes the "tag" role of the replied person.

Deploying:

Environment Variables:

Required

  • TOKEN : Bot token from BotFather.
  • OWNER_ID : Telegram user_id of owner. Get it via @userinfobot.
  • DATABASE_URL : URL of your Postgres database. (Automatic if on Heroku).
  • API_URL : URL of the deployed chatidToMembersAPI. Deploy from here: infinity-plus/chatToMembersAPI

Optional

  • WEBHOOK : Set to any value to enable webhooks, otherwise, leave empty to disable webhooks.
  • URL : URL of server for webhooks. (Use https://<appname>.herokuapp.com/ if on Heroku)
  • SUDO_USERS : Space separated list of user_ids that can use the bot everywhere.
  • DND_USERS : Space separated list of user_ids that will not be tagged by the bot.

Deploying locally or on VPS:

  • Clone the repo:
git clone https://github.com/YAIFoundation/TagAllBot.git
  • Install the requirements:
cd TagAllBot
python3 -m pip install -r requirements.txt
  • Start the Bot:
python3 -m tagall_bot

Deploy on HEROKU

Deploy

Built with

Enhanced with:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.