腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Telethon
client.conversation
()
不起作用
、
、
、
)DEBUG:
telethon
.network.mtprotosender:
telethon
.network.mtprotosender:Encrypted messages put in a queue to be sent DEBUG:
telethon
.network.mtprotosender:
telethon
.network.m
浏览 32
提问于2020-10-11
得票数 0
回答已采纳
1
回答
如何在收到特定消息时停止
telethon
会话
、
我已经使用
telethon
库制作了一个电报机器人,它使用button.inline和button.text方法接收用户的回复。但我想在用户输入特定消息(如bye)时立即停止对话。
浏览 0
提问于2020-04-19
得票数 0
2
回答
包含了固定代码后的pytest中带有异步的AttributeError
、
、
、
int(os.getenv("TELEGRAM_APP_ID"))session_str = os.getenv("
TELETHON
_SESSION, api_id, api_hash, ) async with
client.conversation
int(os.getenv("T
浏览 13
提问于2022-07-15
得票数 3
回答已采纳
1
回答
如何将ConversationHandler模块从Python Bot迁移到
Telethon
、
、
、
、
如何在
Telethon
中创建任何类型的ConversationHandler。 以下是
Telethon
对的一些概述。他们从ptb的例子中使用。如何使用此示例进行迁移。
浏览 4
提问于2020-06-07
得票数 4
回答已采纳
1
回答
检查Python中的子类
、
、
、
functions.messages.CheckChatInviteRequest(hash=hash)) 我使用print(type(result))得到的结果是: 如果我不在群里,<class '
telethon
.tl.types.ChatInvite'>这个 <class '
telethon
.tl.types.ChatInviteAlready'>如果我已经在里面的话。现在,我想要做的是: if type(result) ==
telethon
.tl.types.Chat
浏览 0
提问于2019-03-08
得票数 0
回答已采纳
1
回答
如何使用Python中的
Telethon
模块将单个目标实体转换为列表
、
、
、
我现在只能发送到一个组,当我尝试添加一个列表时,它就
不起作用
了。下面是我到目前为止拥有的代码,我想要创建的实体是通道ID。from
telethon
import TelegramClientfrom
telethon
.tl importtypes, functions api_id =
浏览 7
提问于2022-09-16
得票数 -1
回答已采纳
1
回答
通过电传库或任何API删除电报简档照片
、
、
、
我不能通过
telethon
库或任何其他API删除配置文件照片from
telethon
import TelegramClient, sync from
telethon
.tl.functions.photos
浏览 4
提问于2019-10-15
得票数 0
1
回答
Telethon
:如何获得私人频道的邀请链接?
、
在1.5版本中,我这样做了:from
telethon
.tl.typesExportInviteRequest( access_hash=ChannelHash))).link 但它现在
不起作用
了
浏览 1
提问于2019-12-05
得票数 2
1
回答
发生了一个错误: sys:1: RuntimeWarning: coroutine 'UserMethods.get_entity‘从来没有等待过
、
要使用Core,我使用Python 3的
Telethon
库。代码行:dp = client.get_entity(username)我是初学者,请帮我解释一下为什么它
不起作用
,以及如何修复它。谢谢Python 3.9 IDE PyCharm
浏览 9
提问于2022-04-17
得票数 0
回答已采纳
1
回答
尝试使用
Telethon
iter_messages进行全局搜索没有结果
、
、
我使用
Telethon
包作为Telegram API。使用以下代码,我可以根据关键字搜索为特定用户收集消息:from
telethon
import TelegramClientfrom
telethon
.sync import TelegramClient from
telethon
import functions,await asyncio.sleep(0.2)
浏览 47
提问于2022-06-17
得票数 0
1
回答
ConnectionError:代理连接超时:(
Telethon
,http代理)
、
、
、
、
我不能把电报和http代理连接到
telethon
上。我正在使用python3.10,并阅读
telethon
关于如何与代理连接的内容,我写道:import asyncioos.getenv('
浏览 42
提问于2022-03-29
得票数 0
1
回答
为什么python电传在连接电报时会产生信号量错误
、
、
from array import *from
telethon
.errors import SessionPasswordNeededErrorfrom
telethon
.tl.functions.channels import GetParticipantsRequest from
telethon
.tl.types import ChannelParticipantsSearchfrom
telethon
.tl
浏览 1
提问于2021-07-11
得票数 0
1
回答
远程GetLocatedRequest:您如何访问user_id和远程信息?
、
、
我整个星期都在阅读
Telethon
的文档,除了浏览互联网之外,我也找不到答案。到目前为止,我已经尝试过像user.peer、user.PeerLocated、user.user_id这样的东西,但它们都
不起作用
。以前有人遇到过这种情况吗?import TelegramClientfrom
telethon
.tl.functions.messagesimport GetHistoryRequest from <em
浏览 5
提问于2021-03-03
得票数 1
回答已采纳
1
回答
Telethon
-服务器关闭连接错误
、
我无法使用
Telethon
连接到Telegram。INFO:
telethon
.network.connection.connection:The server closed the connectionWARNING:
telethon
.network.mtprotosender
浏览 24
提问于2021-07-02
得票数 1
2
回答
在我试图安装的任何python包上,我都不能通过“收集‘不管什么包名’”。
、
、
我已经安装了python 3.5和pip 7.1.2pip install
telethon
和..python -m pip install
telethon
结果是:Collecting
telethon
Getting page https:
浏览 0
提问于2020-08-06
得票数 2
2
回答
FloodWaitError on GetParticipants不知从何而来
、
、
、
>, <
telethon
.tl.functions.channels.GetParticipantsRequest object at 0x00000216D6D26948>, <
telethon
.tl.functions.channels.GetParticipantsRequest>, <
telethon
.tl.functions.channels.GetParticipantsRequest object at 0x00000216D6D26AC8>, <
telethon</em
浏览 3
提问于2022-02-09
得票数 1
1
回答
禁用对媒体重复使用同一file_id
、
、
是否有一种方法可以禁用媒体重用file_id?因为它是在数据库上查找的,所以我希望每次都重新上传媒体我希望制作电视来上传媒体,而不是从数据库中重用file_id,因为client.send_file可以用allow_cache=False完成
浏览 4
提问于2022-02-08
得票数 0
1
回答
ModuleNotFoundError:没有名为“
telethon
”的模块
、
我已经使用以下代码安装了
telethon
: sudo pip3 install
telethon
我尝试重新安装它,并得到以下消息: Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.7/site-packages (from rsa->
telethon
) (0.4.5) 但是当我在我的代码中使用它时: from
telethon
import TelegramClie
浏览 14
提问于2019-04-20
得票数 2
回答已采纳
1
回答
使用TypeError时的
Telethon
EditBannedRequests
、
、
、
错误:DEBUG:
telethon
.network.mtprotosenderDEBUG:
telethon
.network.mtprotosender:Handling RPC result for message 6884206512264014408DEBUG:<e
浏览 10
提问于2020-10-16
得票数 0
回答已采纳
0
回答
用
telethon
python电报向联系人发送消息
、
、
、
我使用
Telethon
(API电报python)。from
telethon
.tl.functions.contacts import ResolveUsernameRequestfrom
telethon
.tl.types.messages import Messages from
telethon
.tl.types.
浏览 16
提问于2017-06-16
得票数 3
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
腾讯会议
活动推荐
运营活动
广告
关闭
领券