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
f5407d744d
commit
cae7822ce3
@ -24,7 +24,7 @@ _redis: ty.Optional[Redis] = None
|
|||||||
|
|
||||||
|
|
||||||
def _get_translator(message: types.Message) -> ty.Callable:
|
def _get_translator(message: types.Message) -> ty.Callable:
|
||||||
return translators.get(message.from_user.locale, _)
|
return translators.get(message.from_user.locale.language, _)
|
||||||
|
|
||||||
|
|
||||||
async def init_redis():
|
async def init_redis():
|
||||||
|
Loading…
Reference in New Issue
Block a user