Exemplo n.º 1
0
 async def change_checkout(message: types.Message):
     new_checkout = Translate.get_time(message.text)
     if new_checkout is not None:
         self.CHECK_OUT_TIME = new_checkout
         reply_message = 'ساعت تسویه با موفقیت تغییر یافت.'
         await message.reply(reply_message,
                             reply_markup=keyboards.cancel_kb)
         await BotStates.DEFAULT.set()
Exemplo n.º 2
0
 async def change_opening(message: types.Message):
     new_opening = Translate.get_time(message.text)
     if new_opening is not None:
         self.OPENING_TIME = new_opening
         reply_message = 'ساعت شروع با موفقیت تغییر یافت.'
         await message.reply(reply_message,
                             reply_markup=keyboards.cancel_kb)
         await BotStates.DEFAULT.set()