addall rmall addtoday rmtoday

This commit is contained in:
wt committed 2022-10-20 22:29:36 +07:00
1 parent b99fb5a72f
commit 4dc52d7add
6 files changed
+168 -69

No files matched your search

+3 -3
View File
@@ -1,11 +1,11 @@
from bot import bot
import locale
import locales
def change_locale(message):
if message.text.split(' ')[0] == '/ru':
locale.LOCALE = 'ru'
locales.LOCALE = 'ru'
bot.send_message(message.chat.id, 'Выбран русский язык')
elif message.text.split(' ')[0] == '/en':
locale.LOCALE = 'en'
locales.LOCALE = 'en'
bot.send_message(message.chat.id, 'Selected language: english')