SK
Size: a a a
SK
YK
SK
YK
CN
SK
YK
SK
YK
async with LocalizationContext() as context:
loc = await context.get_locale(chat_id)
message.send(loc['warn-notarget'])
async with LocalizationContext() as context:
context.update_locale(error_sig, error_text)
YK
with x as y
- питоний контекстный менеджер, я бы так подключение к бд реализовалP
YK
YK
SK
async with LocalizationContext() as context:
loc = await context.get_locale(chat_id)
message.send(loc['warn-notarget'])
async with LocalizationContext() as context:
context.update_locale(error_sig, error_text)
YK
SK
YK
YK
SK
SK