title: telethon fails on python on GAE platform
body: <p>I would appreciate if somebody could shine a light on this, I try to setup a simple telegram bot to be run on Python on Google App Engine with telethon libarary, but failed. Was this approach workable ?</p>
  <p>after gcloud app deploy, I receive the Internal Server Error from browser.
  the problem does not happen if I remarked the following line:</p>
  <p>client = TelegramClient(phone, api_id, api_hash)</p>
  <h2>main.py</h2>
  <pre><code>from flask import Flask, request
  import datetime
  import time
  import asyncio
  
  from telethon import  TelegramClient, events, sync
  
  app = Flask(__name__)
  
  api_id = xxxxxxxx
  api_hash = 'xxxxxxxxxxxxxxxxxxxxxxxx'
  phone = '+xxxxxxxxxxxx'
  
  @app.route('/', methods=['GET'])
  def hello():
      reqaction = request.args.get('action', 'connect')
      client = TelegramClient(phone, api_id, api_hash) 
  
  if __name__ == '__main__':
      app.run(host='localhost', port=8080, debug=True)
  </code></pre>
  <p>below is the logging:</p>
  <pre><code>
  
  Traceback (most recent call last):
    File &quot;/env/lib/python3.7/site-packages/flask/app.py&quot;, line 2446, in wsgi_app
      response = self.full_dispatch_request()
    File &quot;/env/lib/python3.7/site-packages/flask/app.py&quot;, line 1951, in full_dispatch_request
      rv = self.handle_user_exception(e)
    File &quot;/env/lib/python3.7/site-packages/flask/app.py&quot;, line 1820, in handle_user_exception
      reraise(exc_type, exc_value, tb)
    File &quot;/env/lib/python3.7/site-packages/flask/_compat.py&quot;, line 39, in reraise
      raise value
    File &quot;/env/lib/python3.7/site-packages/flask/app.py&quot;, line 1949, in full_dispatch_request
      rv = self.dispatch_request()
    File &quot;/env/lib/python3.7/site-packages/flask/app.py&quot;, line 1935, in dispatch_request
      return self.view_functions[rule.endpoint](**req.view_args)
    File &quot;/srv/main.py&quot;, line 95, in hello
      client = TelegramClient(phone, api_id, api_hash) ;
    File &quot;lib/telethon/client/telegrambaseclient.py&quot;, line 230, in __init__
      self._loop = loop or asyncio.get_event_loop()
    File &quot;/opt/python3.7/lib/python3.7/asyncio/events.py&quot;, line 644, in get_event_loop
      % threading.current_thread().name)
  RuntimeError: There is no current event loop in thread 'ThreadPoolExecutor-0_0'.
  </code></pre>
  <p>Many thanks in advance for your giude and help :)</p>