Invitetochannelrequest(Telethon)的错误
我正在尝试使用Telethon(InviteTochannelRequest)邀请人们进入我的频道,
api_id = 12345
api_hash = '123abc123'
client = TelegramClient('test1', api_id, api_hash)
client.start()
client(InviteToChannelRequest(
-100********,
['87654321']
))
我使用@getMyID_Bot查找我的频道ID:从聊天中转发:-100 ******** 我有一个错误:
ValueError: Could not find the input entity for PeerUser(user_id=100********) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.
I'm trying to invite people to my channel using telethon (InviteToChannelRequest)
api_id = 12345
api_hash = '123abc123'
client = TelegramClient('test1', api_id, api_hash)
client.start()
client(InviteToChannelRequest(
-100********,
['87654321']
))
i using @getmyid_bot to find id of my channel: Forwarded from chat: -100********
and i have an error:
ValueError: Could not find the input entity for PeerUser(user_id=100********) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论