Browse Source

получение фото хорошего качества #5

pull/6/head
Anton 1 year ago
parent
commit
8e8196df18
  1. 2
      template/bd_item_add.py

2
template/bd_item_add.py

@ -82,7 +82,7 @@ def FinishOrNextAddBDItemTemplate(a_Bot, a_FSM, a_AddBDItemFunc, a_ParentTableNa
if a_Message.photo == None or len(a_Message.photo) == 0: if a_Message.photo == None or len(a_Message.photo) == 0:
await state.finish() await state.finish()
return simple_message.WorkFuncResult(bot_messages.MakeBotMessage(error_photo_type_message), keyboard_func = a_FinishButtonFunc) return simple_message.WorkFuncResult(bot_messages.MakeBotMessage(error_photo_type_message), keyboard_func = a_FinishButtonFunc)
field_value = a_Message.photo[0].file_id field_value = a_Message.photo[-1].file_id
else: else:
result = a_Message.text result = a_Message.text
if a_PostProcessFunc: if a_PostProcessFunc:

Loading…
Cancel
Save