Skip to content

Lightweight and efficient feedback bot for Telegram, designed with simplicity in mind and no database required. Perfect for IT professionals looking for a hassle-free solution.

License

Notifications You must be signed in to change notification settings

adam-kad/feedbackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Feedback Bot

English Russian

Feedback Bot is a Telegram bot designed to provide feedback and assistance. This bot is built using Python and the pytelegrambotapi library. You are welcome to contribute and help improve this bot. Visit our GitHub page for more details.

User Chat Screenshot Admin Chat Screenshot

About the Bot

This bot does not use a database; instead, I aimed to make the bot as simple as possible for use. For adding users to the blacklist, I used a JSON file, but you can customize this as needed. The bot supports both polling and webhook modes.

Requirements

  • Python 3.11+
  • Poetry for dependency management
  • pytelegrambotapi library

Installation

  1. Clone the repository:

    git clone https://github.com/adam-kad/feedbackbot.git
    cd feedbackbot
  2. Install Poetry:

    Follow the instructions on the Poetry installation page.

  3. Install dependencies:

    poetry install

Configuration

  1. Set up your Telegram bot:

    • Create a new bot using BotFather and obtain your bot token.

    • Create a file named .env in the feedbackbot/config directory and add your bot token and other configuration settings:

      TELEGRAM_BOT_TOKEN=your_bot_token_here
      TELEGRAM_WEBHOOK_URL=https://your-webhook-url-here
      TELEGRAM_WEBHOOK_PORT=8000
      TELEGRAM_GROUP_ID=-2323434
  2. Configure webhook (optional):

    • If you are developing locally and want to use webhooks, you need to expose your local server to the internet. You can use ngrok for this purpose. Download and install ngrok, then run:

      ngrok http 8000
    • Use the generated ngrok URL as your TELEGRAM_WEBHOOK_URL and TELEGRAM_WEBHOOK_PORT in the .env file.

Usage

  1. Run the bot in polling mode:

    poetry run python -m bot.main
  2. Run the bot in webhook mode:

    poetry run python -m bot.main --webhook

Contributing

We invite you to contribute and help make this bot better.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Best regards, Feedback Bot

About

Lightweight and efficient feedback bot for Telegram, designed with simplicity in mind and no database required. Perfect for IT professionals looking for a hassle-free solution.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages