Coder Social home page Coder Social logo

support-bot's Introduction

support-bot

Telegram bot that helps to admins to communicate with subscribers. It forwards messages from subscribers to admin's chat and sends answers to user from admins.

User's chat:

Users' view

Admins' chat:

Admins' view

Usage

Configuration

Edit config.ini file before running the bot.

Necessary:

  • token is your telegram bot's token.
  • support-chat-id is id of chat with admin(-s). If you want to use it in private chat write id of your account.

All messages are editable, you can find them in config file too.

Proxy

You can use https proxy for bot.

Change proxy to yes and write your address in proxy-server.

proxy-server: https://server_address:port

Receiving types

You can filter user's files types. Write in forward-types necessary types from telegram bot API.

Running

pip install -r requirements.txt  # installs deps

python main.py

Usage of bot

Every message from users forwards to admin's chat.

Admin answers by replying to the message with a question.

User can be blocked by /block in reply. Unblocking is possible as well with /unblock.

support-bot's People

Contributors

igoose1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

support-bot's Issues

Proxy in bot

Add setting in config.ini for using proxy for bot.
In some regions this feature is very necessary.

telebot can use proxy himself. Only 1 or 2 lines of code can be written.

Blocking users

Add function to block spammers.
The main problem is finding a good database for saving blocked users' id.

Support sending files, images

Hello. Tell me, does the bot support sending files, images? I didn’t understand, when the administrator answers the client through the bot, the client will display as if the bot answered him. Right?

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.