Ejemplo n.º 1
0
def exchange(msg):
    bot.send_message(msg.chat.id,
                     "Купить/Продать",
                     reply_markup=markups.exchangeR())
    bot.send_message(msg.chat.id,
                     base.get_text(msg.chat.id, "exchamge"),
                     reply_markup=markups.exchangeI())
Ejemplo n.º 2
0
def back(msg):
    bot.send_message(msg.chat.id,
                     "Операции покупки или продажи",
                     reply_markup=markups.addWelcome())
    bot.send_message(msg.chat.id,
                     base.get_text(msg.chat.id, "operations"),
                     reply_markup=markups.menu())
Ejemplo n.º 3
0
def welcome(msg):
    bot.send_message(msg.chat.id,
                     "Чат-поддержка",
                     reply_markup=markups.addWelcome())
    bot.send_message(msg.chat.id,
                     base.get_text(msg.chat.id, 'welcome_inf') %
                     msg.from_user.first_name,
                     reply_markup=markups.welcome(),
                     parse_mode='html')
Ejemplo n.º 4
0
def start(message):
    chat = message.chat
    # welcome(msg)
    msg = bot.send_message(chat.id,
                           "Select a language in the list",
                           reply_markup=markups.language())
    bot.register_next_step_handler(msg, llanguage)
Ejemplo n.º 5
0
def llanguage(msg):
    chat = msg.chat
    base.create_user(msg.chat.id, msg.text)
    markup = telebot.types.ReplyKeyboardMarkup(True, True)
    markup.row("ok")
    str = bot.send_message(msg.chat.id,
                           base.get_text(msg.chat.id, "confirm"),
                           reply_markup=markup)
    bot.register_next_step_handler(str, welcome)
Ejemplo n.º 6
0
def select_currency(msg):
    chat = msg.chat
    bot.send_message(chat.id,
                     base.get_text(chat.id, 'currency'),
                     reply_markup=markups.currency())
Ejemplo n.º 7
0
def service(msg):
    bot.send_message(msg.chat.id, "Нужно придумать")
Ejemplo n.º 8
0
def enter_address(msg):
    new_address = msg
    bot.send_message(msg.chat.id, "Информация сохранена")
Ejemplo n.º 9
0
def settings(msg):
    bot.send_message(msg.chat.id,
                     base.get_text(msg.chat.id, 'settings'),
                     reply_markup=markups.settings())
Ejemplo n.º 10
0
def rate(msg):
    bot.send_message(msg.chat.id, "Курс")
Ejemplo n.º 11
0
def req_buy(call):
    msg = call.message
    ms = bot.send_message(msg.chat.id,
                          "Метод оплаты",
                          reply_markup=markups.pay_method())
    bot.register_next_step_handler(ms, rate)
Ejemplo n.º 12
0
def user_requests(call):
    bot.send_message(call.message.chat.id, "Если нужно,то просто раскомменти")
Ejemplo n.º 13
0
def wallet(msg):
    bot.send_message(msg.chat.id, "Кошелёк", reply_markup=markups.exchangeR())
    bot.send_message(msg.chat.id,
                     base.get_text(msg.chat.id, 'wallet'),
                     reply_markup=markups.wallet())
Ejemplo n.º 14
0
def sell(call):
    chat = call.message.chat
    bot.send_message(chat.id, "Продажа", reply_markup=markups.exchangeR())
    bot.send_message(chat.id,
                     base.get_text(chat.id, 'sellcur'),
                     reply_markup=markups.buyI_sellI())
Ejemplo n.º 15
0
def monero(call):
    chat = call.message.chat
    bot.send_message(chat.id,
                     "Покупка/Продажа Monero",
                     reply_markup=markups.payments())
Ejemplo n.º 16
0
def buy(call):
    chat = call.message.chat
    bot.send_message(chat.id, "Покупка", reply_markup=markups.exchangeR())
    bot.send_message(chat.id,
                     base.get_text(chat.id, 'buycur'),
                     reply_markup=markups.buyI_sellI())