Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Latand authored Jul 13, 2021
1 parent 87e0311 commit d445c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from aiogram import Bot, Dispatcher
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from aiogram.contrib.fsm_storage.redis import RedisStorage
from aiogram.contrib.fsm_storage.redis import RedisStorage2

from tgbot.config import load_config
from tgbot.filters.admin import AdminFilter
Expand Down Expand Up @@ -40,7 +40,7 @@ async def main():
config = load_config(".env")

if config.tg_bot.use_redis:
storage = RedisStorage()
storage = RedisStorage2()
else:
storage = MemoryStorage()

Expand Down

0 comments on commit d445c50

Please sign in to comment.