Queer European MD passionate about IT
浏览代码

`aiohttp.web.Application` does not take a loop argument anymore

Davte 5 年之前
父节点
当前提交
e22854c77d
共有 2 个文件被更改,包括 10 次插入3 次删除
  1. 9 2
      davtelepot/__init__.py
  2. 1 1
      davtelepot/api.py

+ 9 - 2
davtelepot/__init__.py

@@ -1,13 +1,20 @@
 """Information about this package.
 
-See custombot.py for information about Bot class.
+See `bot.py` for information about Bot class.
+    ```python3.5+
+    from davtelepot.bot import Bot
+    help(Bot)
+    ```
+
+Legacy `custombot.py` is kept for backward compatibility but will finally
+    be deprecated.
 """
 
 __author__ = "Davide Testa"
 __email__ = "davide@davte.it"
 __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
 __license__ = "GNU General Public License v3.0"
-__version__ = "2.1.14"
+__version__ = "2.1.15"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 1 - 1
davtelepot/api.py

@@ -45,7 +45,7 @@ class TelegramBot(object):
     """
 
     loop = asyncio.get_event_loop()
-    app = web.Application(loop=loop)
+    app = web.Application()
     sessions_timeouts = {
         'getUpdates': dict(
             timeout=35,