|
@@ -14,22 +14,9 @@ __author__ = "Davide Testa"
|
|
__email__ = "davide@davte.it"
|
|
__email__ = "davide@davte.it"
|
|
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
|
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
|
__license__ = "GNU General Public License v3.0"
|
|
__license__ = "GNU General Public License v3.0"
|
|
-__version__ = "2.3.7"
|
|
|
|
|
|
+__version__ = "2.3.8"
|
|
__maintainer__ = "Davide Testa"
|
|
__maintainer__ = "Davide Testa"
|
|
__contact__ = "t.me/davte"
|
|
__contact__ = "t.me/davte"
|
|
|
|
|
|
-import logging
|
|
|
|
-
|
|
|
|
# Legacy module; please use `from davtelepot.bot import Bot` from now on
|
|
# Legacy module; please use `from davtelepot.bot import Bot` from now on
|
|
from davtelepot.custombot import Bot
|
|
from davtelepot.custombot import Bot
|
|
-
|
|
|
|
-# Prevent aiohttp from encoding file names as URLs, replacing ' ' with '%20'
|
|
|
|
-# Thanks @Nickoala (Nick Lee) for this hack from his archived `telepot` repo
|
|
|
|
-try:
|
|
|
|
- import aiohttp
|
|
|
|
- from davtelepot.hacks import hacked_content_disposition_header
|
|
|
|
- aiohttp.payload.content_disposition_header = (
|
|
|
|
- hacked_content_disposition_header
|
|
|
|
- )
|
|
|
|
-except (ImportError, AttributeError) as e:
|
|
|
|
- logging.error(f"{e}")
|
|
|