|
|
@ -36,6 +36,10 @@ pnum = 0
|
|
|
|
#Pay nick
|
|
|
|
#Pay nick
|
|
|
|
pnick = ""
|
|
|
|
pnick = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bot.message_handler(commands=['start'])
|
|
|
|
@bot.message_handler(commands=['start'])
|
|
|
|
def welcome(message):
|
|
|
|
def welcome(message):
|
|
|
|
markup = ReplyKeyboardMarkup(resize_keyboard=True)
|
|
|
|
markup = ReplyKeyboardMarkup(resize_keyboard=True)
|
|
|
@ -45,7 +49,6 @@ def welcome(message):
|
|
|
|
markup.add('Перевод')
|
|
|
|
markup.add('Перевод')
|
|
|
|
markup.add('Помощь')
|
|
|
|
markup.add('Помощь')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bot.reply_to(message, """
|
|
|
|
bot.reply_to(message, """
|
|
|
|
Start message
|
|
|
|
Start message
|
|
|
|
""",reply_markup=markup)
|
|
|
|
""",reply_markup=markup)
|
|
|
@ -58,7 +61,6 @@ Help message
|
|
|
|
""")
|
|
|
|
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def err_reg(message):
|
|
|
|
def err_reg(message):
|
|
|
|
bot.reply_to(message,"""
|
|
|
|
bot.reply_to(message,"""
|
|
|
|
Пожалуйста,авторизуйстесь.
|
|
|
|
Пожалуйста,авторизуйстесь.
|
|
|
@ -66,6 +68,8 @@ def err_reg(message):
|
|
|
|
global steps
|
|
|
|
global steps
|
|
|
|
steps[message.chat.id]="reg"
|
|
|
|
steps[message.chat.id]="reg"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bot.message_handler(commands=['change'])
|
|
|
|
@bot.message_handler(commands=['change'])
|
|
|
|
def change(message):
|
|
|
|
def change(message):
|
|
|
|
bot.reply_to(message,"""
|
|
|
|
bot.reply_to(message,"""
|
|
|
@ -79,6 +83,7 @@ def change(message):
|
|
|
|
global steps
|
|
|
|
global steps
|
|
|
|
steps[message.chat.id]="change"
|
|
|
|
steps[message.chat.id]="change"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def checkauth(message):
|
|
|
|
def checkauth(message):
|
|
|
|
read()
|
|
|
|
read()
|
|
|
|
id=str(message.chat.id)
|
|
|
|
id=str(message.chat.id)
|
|
|
@ -88,6 +93,7 @@ def checkauth(message):
|
|
|
|
err_reg(message)
|
|
|
|
err_reg(message)
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bot.message_handler(commands=['balance'])
|
|
|
|
@bot.message_handler(commands=['balance'])
|
|
|
|
def balance(message):
|
|
|
|
def balance(message):
|
|
|
|
read()
|
|
|
|
read()
|
|
|
@ -115,6 +121,7 @@ def unreg(message):
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
bot.reply_to(message,"Что-то пошло не так.")
|
|
|
|
bot.reply_to(message,"Что-то пошло не так.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bot.message_handler(commands=['pay'])
|
|
|
|
@bot.message_handler(commands=['pay'])
|
|
|
|
def pay(message):
|
|
|
|
def pay(message):
|
|
|
|
if checkauth(message):
|
|
|
|
if checkauth(message):
|
|
|
@ -139,7 +146,7 @@ def checks(message):
|
|
|
|
elif message.text == 'Помощь':
|
|
|
|
elif message.text == 'Помощь':
|
|
|
|
help(message)
|
|
|
|
help(message)
|
|
|
|
db['breakme']
|
|
|
|
db['breakme']
|
|
|
|
|
|
|
|
else:
|
|
|
|
print(111111111111111111111111)
|
|
|
|
print(111111111111111111111111)
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
@ -258,4 +265,3 @@ ___________
|
|
|
|
bot.reply_to(message,"Что-то пошло не так,отмена операции")
|
|
|
|
bot.reply_to(message,"Что-то пошло не так,отмена операции")
|
|
|
|
|
|
|
|
|
|
|
|
bot.infinity_polling()
|
|
|
|
bot.infinity_polling()
|
|
|
|
|
|
|
|
|
|
|
|