1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

I18N class removed from telebot.util.py

This commit is contained in:
abdullaev388
2022-02-19 23:57:21 +05:00
parent 9bfc0b2c6f
commit 9b20f41ece
3 changed files with 80 additions and 87 deletions

View File

@@ -53,7 +53,7 @@ from functools import wraps
import keyboards
from telebot import TeleBot, types, custom_filters
from telebot.storage.memory_storage import StateMemoryStorage
from telebot.util import I18N
from i18n_class import I18N
storage = StateMemoryStorage()
bot = TeleBot("", state_storage=storage)
@@ -71,6 +71,7 @@ def get_user_language(func):
"""
This decorator will pass to your handler current user's language
"""
@wraps(func)
def inner(*args, **kwargs):
obj = args[0]