# type: ignore from django.core.management.base import BaseCommand, CommandError from django.contrib.auth.models import User from tgbot.tasks import start_polling class Command(BaseCommand): help = f'Start polling updates from Telegram' def handle(self, *args, **options): self.stdout.write("Bot starting polling updates from Telegram") start_polling.apply()