3.x Bot API 6.1 (#937)

Added support of Bot API 6.1
This commit is contained in:
Alex Root Junior 2022-06-25 18:14:29 +03:00 committed by GitHub
parent adfc89f125
commit 247ffbef69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
150 changed files with 571 additions and 1112 deletions

View file

@ -68,7 +68,7 @@ class I18n(ContextInstanceMixin["I18n"]):
if os.path.exists(mo_path):
with open(mo_path, "rb") as fp:
translations[name] = gettext.GNUTranslations(fp) # type: ignore
translations[name] = gettext.GNUTranslations(fp)
elif os.path.exists(mo_path[:-2] + "po"): # pragma: no cover
raise RuntimeError(f"Found locale '{name}' but this language is not compiled!")