Skip to content

Empower users with a customizable menu experience on Telegram. Built with Django, this bot lets users create, edit, and organize menu items tailored to their needs. Simplify navigation and enhance engagement with personalized features, all within the Telegram interface.

License

Notifications You must be signed in to change notification settings

tyrohansen/django_telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Telegram Service

This Django project is a Telegram service that allows users to interact with a Telegram bot through a Django-based web application. The project integrates with the Telegram Bot API to send and receive messages, enabling seamless communication between users and the bot.

Features

  • Telegram Bot Integration: Connects to the Telegram Bot API to send and receive messages.
  • Web Interface: Provides a Django-based web interface for users to interact with the Telegram bot.
  • User Authentication: Supports user authentication to ensure secure access to the service.
  • Message Logging: Logs messages exchanged between users and the bot for analytics and debugging purposes.

Requirements

  • Python 3.x
  • Django
  • Django REST Framework

Installation

  1. Clone the repository:

    git clone https://github.com/tyrohansen/django_telegram_bot
  2. Navigate to the project directory:

    cd django_telegram_bot
  3. Install dependencies:

    pip install -r requirements.txt
  4. Configure your Telegram bot:

    • Create a new bot using the BotFather on Telegram.
    • Obtain the bot token.
    • Update the TELEGRAM_TOKEN variable in .env with your bot token.
  5. Apply migrations:

    python manage.py migrate
  6. Run the development server:

    python manage.py runserver
  7. Access the web interface at http://127.0.0.1:8000/.

Usage

  1. Register/Login to the web interface using your credentials.
  2. Start a conversation with your Telegram bot by searching for its username on Telegram.
  3. Interact with the bot through the web interface.
  4. Messages exchanged between users and the bot will be logged for analysis.

Configuration

  • TELEGRAM_TOKEN: Token provided by the BotFather for accessing the Telegram Bot API.
  • DEBUG: Set to True for development, False for production.
  • Additional Django settings can be configured in .env as per project requirements.

Contributing

Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.

License

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

About

Empower users with a customizable menu experience on Telegram. Built with Django, this bot lets users create, edit, and organize menu items tailored to their needs. Simplify navigation and enhance engagement with personalized features, all within the Telegram interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages