python - 获取协程“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 来说有点新,并弄清楚这个脚本是如何工作的!提前致谢
解决方案
推荐阅读
- react-native - React Native 路由器通量路由器场景背景图片
- java - 传输文件到 FTP java commons.net 问题。没有错误,但没有转移
- angular - anguarl queryParams没有接收参数
- fortran - Fortran 的“最终”子程序对于实际使用是否足够可靠?
- javascript - 没有预定义存储桶的firebase云函数onFinalize触发器?
- sql - 将 .sas 作为文本导入 SAS
- php - Wordpress Snippet - 当状态从草稿更改为发布时,标题中的单词同义词替换
- javascript - Vue.js 点击放大图片
- operating-system - 在注册表中识别 Windows Embedded OS 的任何唯一标识符
- excel - #价值!在线/在 Microsoft Teams 中打开的 Excel 中的错误