mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix parameter name to fit
This commit is contained in:
parent
8045ad56ea
commit
91d0877c61
@ -8,7 +8,8 @@ from telebot.asyncio_storage import StateRedisStorage,StateMemoryStorage,StatePi
|
||||
# new feature for states.
|
||||
from telebot.asyncio_handler_backends import State, StatesGroup
|
||||
|
||||
bot = AsyncTeleBot('TOKEN')
|
||||
# default state storage is statememorystorage
|
||||
bot = AsyncTeleBot('TOKEN', states_storage=StateMemoryStorage())
|
||||
|
||||
|
||||
# Just create different statesgroup
|
||||
|
@ -164,7 +164,7 @@ class AsyncTeleBot:
|
||||
"""
|
||||
|
||||
def __init__(self, token: str, parse_mode: Optional[str]=None, offset=None,
|
||||
exception_handler=None, states_storage=StateMemoryStorage()) -> None: # TODO: ADD TYPEHINTS
|
||||
exception_handler=None, state_storage=StateMemoryStorage()) -> None: # TODO: ADD TYPEHINTS
|
||||
self.token = token
|
||||
|
||||
self.offset = offset
|
||||
@ -193,7 +193,7 @@ class AsyncTeleBot:
|
||||
self.custom_filters = {}
|
||||
self.state_handlers = []
|
||||
|
||||
self.current_states = states_storage
|
||||
self.current_states = state_storage
|
||||
|
||||
|
||||
self.middlewares = []
|
||||
|
Loading…
Reference in New Issue
Block a user