Skip to content

Commit

Permalink
Fix default bot and dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
JungDev authored Jul 29, 2016
1 parent fe3c057 commit 02e7518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_telegrambot/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DjangoTelegramBot(AppConfig):
@classmethod
def getDispatcher(cls, id = None, safe=True):
if id == None:
return dispatchers[0]
return cls.dispatchers[0]
else:
try:
index = cls.bot_tokens.index(id)
Expand All @@ -39,7 +39,7 @@ def getDispatcher(cls, id = None, safe=True):
@classmethod
def getBot(cls, id = None, safe = True):
if id == None:
return bots[0]
return cls.bots[0]
else:
try:
index = cls.bot_tokens.index(id)
Expand Down

0 comments on commit 02e7518

Please sign in to comment.