小编str*_*k-j的帖子

电视节目。如何创建公共/私人频道?

如何使用 Telethon 创建公共/私人频道?我在官方文档中没有找到这个信息。

python python-3.x telegram telethon

3
推荐指数
1
解决办法
1834
查看次数

Telethon:如何获取私人频道的邀请链接?

在 1.5 版本中我是这样做的:

from telethon.tl.functions.channels import ExportInviteRequest
from telethon.tl.types import InputChannel, InputPeerChannel
ChannelLink = Client(ExportInviteRequest(
    InputPeerChannel(channel_id=ChannelID,
        access_hash=ChannelHash))).link
Run Code Online (Sandbox Code Playgroud)

但现在不起作用:

ImportError: cannot import name 'ExportInviteRequest'
Run Code Online (Sandbox Code Playgroud)

现在该怎么做呢?

python telethon

3
推荐指数
1
解决办法
3960
查看次数

标签 统计

python ×2

telethon ×2

python-3.x ×1

telegram ×1