mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
fix for prev
This commit is contained in:
parent
d478e9d8e9
commit
6acc2068de
@ -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__()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user