fix for prev

This commit is contained in:
walker 2022-10-29 20:14:50 +04:00
parent d478e9d8e9
commit 6acc2068de

View File

@ -1,7 +1,7 @@
import aiogram.types as types import aiogram.types as types
from aiogram.dispatcher.handler import CancelHandler, current_handler from aiogram.dispatcher.handler import CancelHandler, current_handler
from aiogram.dispatcher.middlewares import BaseMiddleware from aiogram.dispatcher.middlewares import BaseMiddleware
from collections.abc import Container import typing as ty
from locales.locale import _ from locales.locale import _
@ -20,7 +20,7 @@ def public():
class AccessMiddleware(BaseMiddleware): class AccessMiddleware(BaseMiddleware):
def __init__(self, access_chat_ids: Container[int]): def __init__(self, access_chat_ids: ty.Iterable[int]):
self._access_chat_ids = access_chat_ids self._access_chat_ids = access_chat_ids
super(AccessMiddleware, self).__init__() super(AccessMiddleware, self).__init__()