async def send_message(update):
api.messages.send(user_id= ......) # Делает запрос
url = ...
while 1:
updates = requests.get(url).json() #LongPoll
for update in updates:
if r['type'] == 'new_message':
task = event_loop.create_task(send_message(update))
event_loop.run_until_complete(task)