1

我正在尝试创建 echo telebot,这是我的代码:

from pyrogram import Client, filters

app = Client('my_account')

@app.on_message(filters.me)
def echo(client, message):
    message.reply_text(message.text)

app.run()

运行此代码后,我登录了 Telegram,但登录后,出现此错误:

Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 437, in select
    self._poll(timeout)
RuntimeError: <_overlapped.Overlapped object at 0x0000022E1F8CB420> still has pending operation at deallocation, the process may crash

当我总是运行这段代码时,我得到了这个错误。请帮我。

4

0 回答 0