1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Fix type annotation in TelegramBot

This commit is contained in:
Steffo 2019-03-15 14:49:08 +01:00
parent 07af7d0c6b
commit 836ac46261

View file

@ -6,7 +6,7 @@ from ..utils import asyncify, Call, Command
class TelegramBot: class TelegramBot:
def __init__(self, api_key: str, commands: typing.List[Command], *, missing_command: Command=NullCommand): def __init__(self, api_key: str, commands: typing.List[typing.Type[Command]], *, missing_command: Command=NullCommand):
self.bot = telegram.Bot(api_key) self.bot = telegram.Bot(api_key)
self.should_run = False self.should_run = False
self.offset = -100 self.offset = -100