Skip to content

SteliosGee/telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot: Subscription Management

This Telegram bot manages subscriptions and provides functionalities like adding subscribers, removing subscribers, listing all subscribers, and sending subscription expiry notifications.

Features

  1. Start Command: Greets the user.
  2. Add Subscriber: Allows users to subscribe to the service and records their chat ID, username, and subscription date.
  3. Remove Subscriber: Enables users to unsubscribe from the service.
  4. List Subscribers: Provides a list of all subscribers with their details.
  5. Subscription Notifications: Sends reminders about subscription expirations two days before the expiry date.

Installation

pip install -r requirements.txt

Usage

  1. Create a new bot using BotFather.
  2. Replace the TOKEN variable in the main.py file with the token provided by BotFather.
  3. Run the bot using the following command:
python bot.py

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages