|
|
@ -3,6 +3,9 @@ import telebot
|
|
|
|
#Keyboard
|
|
|
|
#Keyboard
|
|
|
|
from telebot.types import ReplyKeyboardMarkup, KeyboardButton
|
|
|
|
from telebot.types import ReplyKeyboardMarkup, KeyboardButton
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#0.00000000009 output
|
|
|
|
|
|
|
|
from numpy import format_float_positional
|
|
|
|
|
|
|
|
|
|
|
|
#VAR import
|
|
|
|
#VAR import
|
|
|
|
import var
|
|
|
|
import var
|
|
|
|
var.init()
|
|
|
|
var.init()
|
|
|
@ -144,9 +147,15 @@ def checks(message):
|
|
|
|
|
|
|
|
|
|
|
|
elif var.steps[message.chat.id] == "pnick":
|
|
|
|
elif var.steps[message.chat.id] == "pnick":
|
|
|
|
var.pnick[message.chat.id] = message.text
|
|
|
|
var.pnick[message.chat.id] = message.text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if var.pnum[message.chat.id] < 1:
|
|
|
|
|
|
|
|
sum = format_float_positional(var.pnum[message.chat.id])
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
sum = str(var.pnum[message.chat.id])
|
|
|
|
|
|
|
|
|
|
|
|
bot.reply_to(message,f"""
|
|
|
|
bot.reply_to(message,f"""
|
|
|
|
Ник ➣ {var.pnick[message.chat.id]}
|
|
|
|
Ник ➣ {var.pnick[message.chat.id]}
|
|
|
|
Сумма ➣ {str(var.pnum[message.chat.id])}
|
|
|
|
Сумма ➣ {sum}
|
|
|
|
Для подтверждения напишите 'да' """)
|
|
|
|
Для подтверждения напишите 'да' """)
|
|
|
|
var.steps[message.chat.id] = "pay_valid"
|
|
|
|
var.steps[message.chat.id] = "pay_valid"
|
|
|
|
|
|
|
|
|
|
|
@ -162,7 +171,14 @@ def checks(message):
|
|
|
|
|
|
|
|
|
|
|
|
payer=var.db[str(message.chat.id)]
|
|
|
|
payer=var.db[str(message.chat.id)]
|
|
|
|
# payer_bill=str(message.chat.id)
|
|
|
|
# payer_bill=str(message.chat.id)
|
|
|
|
sum=str(var.pnum[message.chat.id])
|
|
|
|
# sum=str(var.pnum[message.chat.id])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if var.pnum[message.chat.id] < 1:
|
|
|
|
|
|
|
|
sum = format_float_positional(var.pnum[message.chat.id])
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
sum = str(var.pnum[message.chat.id])
|
|
|
|
|
|
|
|
|
|
|
|
dttm=today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime()))
|
|
|
|
dttm=today.strftime("%d.%m.%Y_"+time.strftime("%H:%M", time.localtime()))
|
|
|
|
|
|
|
|
|
|
|
|
signstr=payer+var.pnick[message.chat.id]+dttm
|
|
|
|
signstr=payer+var.pnick[message.chat.id]+dttm
|
|
|
|