Closed kehralexander closed 4 years ago
(VENV) sh-5.0# python bot.py 2019-09-19 15:49:18,423 - pyrogram.crypto.aes - WARNING - TgCrypto is missing! Pyrogram will work the same, but at a much slower speed. More info: https://docs.pyrogram.org/topics/tgcrypto 2019-09-19 15:49:18,547 - asyncio - DEBUG - Using selector: EpollSelector 2019-09-19 15:49:19,562 - pyrogram.client.client - WARNING - [AnyDLBot] Successfully loaded 24 plugins from "plugins" Pyrogram v0.15.1-asyncio, Copyright (C) 2017-2019 Dan <https://github.com/delivrance> Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+) 2019-09-19 15:49:30,204 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): chatbase.com:443 2019-09-19 15:49:30,724 - urllib3.connectionpool - DEBUG - https://chatbase.com:443 "POST /api/message HTTP/1.1" 200 44 2019-09-19 15:49:30,726 - plugins._core - INFO - { "_": "pyrogram.User", "id": 169131815, "is_self": false, "is_contact": false, "is_mutual_contact": false, "is_deleted": false, "is_bot": false, "is_verified": false, "is_restricted": false, "is_scam": false, "is_support": false, "first_name": "FIRSTNAME", "status": { "_": "pyrogram.UserStatus", "user_id": 169131815, "recently": true }, "username": "USERNAME", "language_code": "en" } 2019-09-19 15:49:30,727 - plugins._core - INFO - https://www.youtube.com/watch?v=2cT6ULpScZA 2019-09-19 15:49:30,727 - plugins._core - INFO - video.mp4 2019-09-19 15:49:30,727 - plugins._core - INFO - ['youtube-dl', '--no-warnings', '--youtube-skip-dash-manifest', '-j', 'https://www.youtube.com/watch?v=2cT6ULpScZA'] 2019-09-19 15:49:33,340 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): i.ytimg.com:443 2019-09-19 15:49:33,569 - urllib3.connectionpool - DEBUG - https://i.ytimg.com:443 "GET /vi/2cT6ULpScZA/maxresdefault.jpg HTTP/1.1" 200 148121 /root/AnyDLBot/plugins/_core.py:224: RuntimeWarning: coroutine 'SendMessage.send_message' was never awaited reply_to_message_id=update.message_id RuntimeWarning: Enable tracemalloc to get the object allocation traceback 2019-09-19 15:49:33,652 - pyrogram.client.ext.dispatcher - ERROR - object NoneType can't be used in 'await' expression Traceback (most recent call last): File "/root/AnyDLBot/VENV/lib/python3.7/site-packages/pyrogram/client/ext/dispatcher.py", line 183, in update_worker await handler.callback(self.client, *args) TypeError: object NoneType can't be used in 'await' expression
I don't understand whats going on here using Arch Linux with Python 3.7.4
please take updated code and try again. this should be fixed now.
I don't understand whats going on here using Arch Linux with Python 3.7.4