Telegram- Contact -ukussa-server-bot Guide
Enable and start:
[Unit] Description=Telegram Contact Bot for Ukussa Server After=network.target [Service] User=root WorkingDirectory=/var/telegram-ukussa-bot ExecStart=/usr/bin/python3 /var/telegram-ukussa-bot/bot.py Restart=always Telegram- Contact -ukussa-server-bot
async def handle_contact(update: Update, context: ContextTypes.DEFAULT_TYPE): contact = update.message.contact user_id = update.effective_user.id phone = contact.phone_number first_name = contact.first_name last_name = contact.last_name or "" or route the contact UkussaServerDB.save_contact(user_id
systemctl enable ukussa-bot.service systemctl start ukussa-bot.service Because the keyword implies a server-based bot, monitoring is crucial. You can link ukussa to Grafana or simply tail the log: Telegram- Contact -ukussa-server-bot
[Install] WantedBy=multi-user.target
# Server-side action: Store, validate, or route the contact UkussaServerDB.save_contact(user_id, phone, f"first_name last_name")