首页 > 解决方案 > 获取协程“TelegramBaseClient.connect”从未等待 tclient.connect() 错误

问题描述

使用此代码: https ://pastebin.com/Nc5rCrLJ

我收到以下错误:

C:\Users\Gebruiker\Documents\Telegram predictor\telebagger-master\telebagger-master\telelooper.py:44: RuntimeWarning: coroutine 'TelegramBaseClient.connect' was never awaited
  tclient.connect()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
C:\Users\Gebruiker\Documents\Telegram predictor\telebagger-master\telebagger-master\telelooper.py:45: RuntimeWarning: coroutine 'UserMethods.is_user_authorized' was never awaited
  if not tclient.is_user_authorized():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
  File "C:\Users\Gebruiker\Documents\Telegram predictor\telebagger-master\telebagger-master\telelooper.py", line 53, in <module>
    result = tclient(GetDialogsRequest(
TypeError: __init__() missing 1 required positional argument: 'hash'

任何人都知道我该如何解决这个问题?我自己修复了一些其他错误,但被困在这里。阅读有关“等待”的内容,但无法弄清楚。对不起,如果这是一个菜鸟问题,对 python 来说有点新,并弄清楚这个脚本是如何工作的!提前致谢

标签: pythontelegram

解决方案


推荐阅读