initial commit
This commit is contained in:
commit
76709cbdc7
7 files changed
+88
No files matched your search
@@ -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')
|
||||
Reference in new issue
Block a user