main funtions are ready

issue: ServiceRequest creates when QR code scanned
This commit is contained in:
2024-10-14 05:24:48 +09:00
parent ee254ef17f
commit f17c6b3a1a
65 changed files with 1609 additions and 327 deletions

View File

View File

@@ -0,0 +1,11 @@
# 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()