title: Executing async functions one at time Python
body: <pre><code>api_id = apiid
  api_hash = hash
  client = TelegramClient('friend', api_id, api_hash)
  client.start()
  
  def checkPanelAvailable(panelId):
      client.connect()
      client.send_message(&quot;Bot&quot;, &quot;/start&quot;)
      @client.on(events.NewMessage(&quot;Bot&quot;))
      async def handler(event):
          if event.raw_text == &quot;Choose function&quot;:
              await event.respond(&quot;Checkpanel&quot;)
          if event.raw_text == &quot;Enter IP:&quot;:
              await event.respond(panelId)
          if event.raw_text == &quot;Choose command:&quot;:
              await event.respond(&quot;check connection&quot;)
              await client.disconnect() # THERE IS THE FINISH OF THE FUNCTION
      client.run_until_disconnected()
  
  checkPanelAvailable(&quot;1.1.1.1&quot;)
  checkPanelAvailable(&quot;2.2.2.2&quot;)
  </code></pre>
  <p>How can I launch this two functions one by one.
  Launching second function when first comes to finish point</p>