Files
trevor f17c6b3a1a main funtions are ready
issue: ServiceRequest creates when QR code scanned
2024-10-14 05:24:48 +09:00

11 lines
386 B
Python

# comunication/management/commands/start_telegram_bot.py
from django.core.management.base import BaseCommand
from comunication.telegram_bot import TelegramBot
class Command(BaseCommand):
help = 'Starts the Telegram bot'
def handle(self, *args, **kwargs):
bot = TelegramBot()
self.stdout.write('Starting Telegram bot polling...')
bot.start_bot_polling()