我想获取我的频道/聊天中所有用户的列表。人们建议使用 telethon ,但我无法开始使用Telethone,而是想使用请求。你能帮我吗?
我尝试过
import json
import requests
URL = "https://api.telegram.org/bot{}/".format(TOKEN)
url = URL + "getFullChat?chat_id={}".format(chat_id)
req = requests.get(url)
其中 TOKEN 是我的机器人的ID, chat_id 是聊天室,我要从中获取列表。
req.content
还给我
b'{"ok":false,"error_code":404,"description":"Not Found"}'
答案 0 :(得分:2)
我解决了我的问题,这是代码
>>> bert_layer.resolved_object.vocab_file.asset_path.shape
TensorShape([])
创建的会话将存储您需要手动添加的密码和/或电话号码