From e22854c77da276ad7a27ee25d13a23b54ea936bc Mon Sep 17 00:00:00 2001 From: Davte Date: Fri, 19 Jul 2019 10:50:29 +0200 Subject: [PATCH] `aiohttp.web.Application` does not take a loop argument anymore --- davtelepot/__init__.py | 11 +++++++++-- davtelepot/api.py | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index 8f8f7f3..6f3bebf 100644 --- a/davtelepot/__init__.py +++ b/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" diff --git a/davtelepot/api.py b/davtelepot/api.py index d814e06..19f6a2a 100644 --- a/davtelepot/api.py +++ b/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,