FlyWithMe

Untitled

Jan 27th, 2021
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. def order_price(update, context):
  2.     price_of_order = update.message.text
  3.     if isinstance(price_of_order, int) == True:
  4.         context.user_data['order']['scale'] = int(price_of_order)
  5.         update.message.reply_text(f'Сторимость уборки составляет {int(price_of_order) * 11}')
  6.         return "step_three"
  7.     else:
  8.         update.message.reply_text("Введите целое число")
  9.         return "step_two"
Advertisement
Add Comment
Please, Sign In to add comment