S-bot-tg/usermenu.py

16 lines
651 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import os
from config import dp, bot, db
from aiogram import types
from markups import menu_back_mkp
@dp.callback_query_handler(text='myPurchs')
async def myPurchases (call: types.CallbackQuery):
await call.message.delete_reply_markup()
db.remove_old_orders()
user_info = db.get_user_info(call.from_user.id)
pay_count = user_info[1]
if pay_count == None:
pay_count = 0
await call.message.answer(f'Ваш ID: {call.from_user.id} \n\nНа данный момент это всё что тут есть. TODO: Возможность добавить данные для доставки.', reply_markup=menu_back_mkp())