initial commit

This commit is contained in:
wt committed 2022-10-19 22:44:32 +07:00
commit 76709cbdc7
7 files changed
+88

No files matched your search

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