mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix type annotation in TelegramBot
This commit is contained in:
parent
07af7d0c6b
commit
836ac46261
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ from ..utils import asyncify, Call, Command
|
|||
|
||||
|
||||
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.should_run = False
|
||||
self.offset = -100
|
||||
|
|
Loading…
Reference in a new issue