This Telegram bot manages subscriptions and provides functionalities like adding subscribers, removing subscribers, listing all subscribers, and sending subscription expiry notifications.
- Start Command: Greets the user.
- Add Subscriber: Allows users to subscribe to the service and records their chat ID, username, and subscription date.
- Remove Subscriber: Enables users to unsubscribe from the service.
- List Subscribers: Provides a list of all subscribers with their details.
- Subscription Notifications: Sends reminders about subscription expirations two days before the expiry date.
pip install -r requirements.txt
- Create a new bot using BotFather.
- Replace the
TOKEN
variable in themain.py
file with the token provided by BotFather. - Run the bot using the following command:
python bot.py
This project is licensed under the MIT License. See the LICENSE file for more information.