📝 Description
A simple bot for user authentication via token in the system. The bot is designed to notify users about status changes of links (blocking, unblocking, replacement, and other informational notifications).
🤖 Bots
📦 Features
- Authenticates users via a authorization key
- Stores user information in the database
- Built with pyTelegramBotAPI (telebot)
🛠 How to Run the Bot
poetry run python telegram/bot.py⚙️ How It Works
- User sends
/startto the bot. - Bot requests an authorization key.
- If the key matches
TELEGRAM_BOT_AUTH_KEY, user info is saved to database. - Bot responds with a success or failure message.
✅ Example Session
User: /start
Bot: 💡 For authorization, please enter the authorization key:
User: my-secret-key
Bot: ✅ Successfully authorized.
🚀 Welcome, John!