Advertisement
Guest User

12311111111111111111111133333333333333

a guest
Aug 18th, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.15 KB | None | 0 0
  1.                 for executor in executors:
  2.                     if executor.bot_user:
  3.                       вот этот  for ssf in sd:
  4.                             if order.address_latitude and order.address_longitude:
  5.                                 print(executor.bot_user.chat_id)
  6.                                 msg = tb.send_location(ssf, order.address_latitude,
  7.                                                    order.address_longitude)
  8.                                 msg_id = msg.message_id
  9.                             else:
  10.                                 msg_id = None
  11.                             message = tb.send_message(ssf, text, reply_markup=markup,
  12.                                                   reply_to_message_id=msg_id,
  13.                                                   parse_mode='html')
  14.                             OrderMessage.objects.create(order=order, executor=executor, message_id=message.message_id,
  15.                                                     chat_id=message.chat.id)
  16.                 order.last_distribution_priority = biggest_priority
  17.                 order.last_distribution_date = now
  18.                 order.save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement