Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def order_price(update, context):
- price_of_order = update.message.text
- try:
- int(price_of_order)
- context.user_data['order']['scale'] = int(price_of_order)
- update.message.reply_text(f'Сторимость уборки составляет {int(price_of_order) * 11}')
- return "comment"
- except (TypeError, ValueError):
- update.message.reply_text("Введите целое число")
- return "scale"
Advertisement
Add Comment
Please, Sign In to add comment