diff --git a/django_telegrambot/__init__.py b/django_telegrambot/__init__.py index 488eae9..99e5d96 100644 --- a/django_telegrambot/__init__.py +++ b/django_telegrambot/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.2.0' -default_app_config = 'django_telegrambot.apps.DjangoTelegramBot' \ No newline at end of file +__version__ = '0.2.1' +default_app_config = 'django_telegrambot.apps.DjangoTelegramBot' diff --git a/django_telegrambot/apps.py b/django_telegrambot/apps.py index faaf4cd..4e580b3 100644 --- a/django_telegrambot/apps.py +++ b/django_telegrambot/apps.py @@ -85,7 +85,7 @@ def ready(self): bot = telegram.Bot(token=token) - DjangoTelegramBot.dispatchers.append(Dispatcher(bot, None)) + DjangoTelegramBot.dispatchers.append(Dispatcher(bot, None, workers=0)) DjangoTelegramBot.bots.append(bot) DjangoTelegramBot.bot_tokens.append(bot.token) DjangoTelegramBot.bot_usernames.append(bot.username)