腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(7233)
视频
沙龙
1
回答
如
何在
python
中
使用
Telegram
Bot
发送
数据
帧
?
python
、
dataframe
、
parsing
、
telegram
、
telegram-bot
因此,我正在
使用
一个电报机器人,它从SQL查询
中
获取
数据
,并将结果
发送
给人们。 我尝试手动格式化查询返回的
数据
,但这不是我所期望的。我还尝试
使用
Telegram
的Markdown和HTML解析模式,但没有成功。所以我现在想把查询的结果转换成Dataframe (我已经这么做了),那么我如何用
python
将
数据
帧
发送
给
telegram
bot
呢? 如果不能
发
浏览 14
提问于2020-06-19
得票数 0
回答已采纳
3
回答
电报
使用
时间表信息
telegram
、
telegram-bot
我想安排一个电报机器人消息在一个特定的单一时间
发送
。我尝试的是通过浏览器直接
使用
api (也可以
使用
curl ),
如
:编辑:我决定保存在
数据
库
中
某个单一时间
浏览 19
提问于2022-05-25
得票数 0
回答已采纳
2
回答
将本地文件上载到电报频道
python
、
upload
、
telegram
、
telegram-upload
我的目标是做
python
脚本,在yt频道检查新视频,然后下载并上传到tg频道。我已经完成了第一部分的检查/下载/转换(youtube_dl库),不知道如何做上传部分。(有电报上传、
python
-电报-
bot
、telethon库,但我不知道如何申请将文件上传到频道)import youtube_dl import urllib.request
浏览 44
提问于2022-06-19
得票数 0
回答已采纳
1
回答
使用
支持HTML模式的
Telegram
Messenger API
发送
在线照片
python
、
python-3.x
、
telegram
、
telegram-bot
、
python-telegram-bot
我正在用
Python
为
Telegram
Messenger创建一个机器人。我
使用
以下函数: def
telegram
_
bot
_sendtexHTML(
bot
_message):
bot
_chatID = 'id'send_text = 'https://api.
telegram
.org/
bo
浏览 42
提问于2020-04-16
得票数 0
回答已采纳
1
回答
如何删除电报聊天
中
的所有信息?(
python
,
telegram
.ext)
python
在电报聊天
中
,我遇到了删除所有消息(包括来自机器人本身的消息)的问题。我怎么能这么做?我
使用
telegram
.ext库。
浏览 4
提问于2020-08-30
得票数 0
2
回答
如何从扎皮尔向电报
发送
信息
telegram
、
zapier
如何从Zapier向电报聊天
发送
信息?
浏览 1
提问于2020-11-24
得票数 0
回答已采纳
2
回答
是否可以
使用
Telegram
Bot
Api从我的电报帐户
中
获取未读消息?
telegram
、
telegram-bot
我订阅了一个以特定格式
发送
消息的电报机器人(我不是该机器人的所有者/管理员)。我需要做的是解析传入的消息,并将解析后的信息用作交易API的参数。
Telegram
Bot
API可以处理这个问题吗?换句话说,如果我创建了一个机器人,它是否能够读取另一个机器人
发送
给我的消息
浏览 2
提问于2017-09-07
得票数 0
1
回答
在电报机上获取照片file_id时的错误
python
、
telegram-bot
、
attributeerror
、
python-telegram-bot
当我得到文档的file_path时,我想
使用
telegram
.exe获取照片的file_id .它工作100%,但是当我想获得照片的file_id时,我无法得到file_id:('list' object'file_id')def photo(update, context): print(update) obj = context.
bot
.getFile
浏览 7
提问于2021-10-08
得票数 0
2
回答
如
何在
Python
中
发送
带有Selenium的网页文本消息?
python
、
selenium
、
telegram
如
何在
Python
中
发送
带有Selenium的网页文本消息? 大家好,我是
python
初学者。我想用
Python
发个电报。我收到一条短信,要从网页上发信息。我如何
发送
电报信息?from selenium import webdriverimport time import
telegram
= "http://webpage/board
浏览 20
提问于2020-06-18
得票数 0
1
回答
如何
使用
python
-
telegram
-
bot
将消息
发送
到电报通道
python
、
telegram
、
telegram-bot
、
python-telegram-bot
我创建了一个电报机器人,并将其添加到我的电报频道
中
。现在,当我的
python
程序中发生一些事情时,我想
使用
它向我的通道
发送
消息。例如,我有一个每15秒检查一次天气的
python
程序,当天气发生变化时,我希望我的机器人将新的天气信息
发送
到我的电报频道。 所以我的问题是,我该怎么做呢?我被困住了,因为
python
-
telegram
-
bot
需要来自用户的一条消息来触发,或者一个预定的订单,而我不能安排它,因为我不知道什么时候天气会改变。
浏览 2
提问于2021-03-13
得票数 1
2
回答
向电报组
发送
消息,无需用户输入
python-3.x
、
telegram
、
telegram-bot
、
python-telegram-bot
我正在尝试构建一个机器人,无论何时有最新的新闻更新,它都会
使用
python
自动
发送
消息。下面是我所做的。"link": "name_1 link"} import time, telebot
bot
=val2[0]:
bot
.send_message(chat_id= "Hardcoded chat_id", tex
浏览 2
提问于2018-03-11
得票数 7
回答已采纳
1
回答
在另一个
python
线程
中
执行函数(带响应)的最佳(最简单)方法?
python
、
ipc
、
telegram
、
telegram-bot
我有一个运行在raspberry pi上的小
python
脚本(它被连接起来以检测是否有什么东西被
发送
到我的邮箱),它向我
发送
一封电报消息,其中包含我邮箱内容的快照。但我
使用
的电报机器人()不再受支持。这就是为什么我希望加入另一个
python
telegram
bot
实现(),并将脚本迁移到
python
3,因为
python
2也是。但在这样做时,我认为我需要拆分脚本,因为
python
-
telegram
-
浏览 15
提问于2020-05-15
得票数 0
2
回答
如
何在
python
Telegram
bot
的main函数
中
获取
Telegram
用户的用户名?
python
、
telegram
、
telegram-bot
、
python-telegram-bot
我正在
使用
库
python
-
telegram
-
bot
用
Python
语言编写一个
Telegram
机器人,但是我有一个问题:我需要获取用户的用户名(很抱歉
使用
双关语),但是我不知道如
何在
主函数
中
做到这一点。我已经在互联网上搜索过了,每个人都可以
使用
update.message.from_user.username在一个函数
中
获得用户名。但我需要在main函数
中
执行此操作,因为我想将此用户
浏览 3
提问于2020-12-02
得票数 1
1
回答
如
何在
python
中用电报HTTP
发送
本地照片?
python
、
api
、
http
、
bots
、
telegram
os #for getting the directory location def __init__(self, token =
telegram
_token, chat_id =
telegram
_chat_id): self.chat_id = chat_id self.base_url= "https://api.
telegram
.org/<e
浏览 2
提问于2019-11-10
得票数 0
回答已采纳
1
回答
当向电报
发送
包含加号"+“的字符串时,在
Python
上获取<Response [200]>
python
、
bots
、
telegram
从
Python
发送
消息到电报频道是非常容易的,只需创建一个
Telegram
bot
,保存它的令牌id并将
bot
添加到通道
中
作为admin,那么
Python
代码是TOKEN= "..." #
bot
token ID to access the HTTP APIMSG = "..."
浏览 3
提问于2020-10-25
得票数 1
回答已采纳
3
回答
从
Python
发送
电报消息
python
、
linux
、
telegram
我想通过电报从
Python
脚本中
发送
消息。我已经尝试过通过电报-cli( 和 )来做到这一点.有了他们,我可以成功地把信息
发送
到我的手机。我无法将输入输入到tg控制台环境
中
,然后在那里执行。通过<<EOF ... EOF输入失败,因为这个失败了;程序在控制台上打开,但没有输出任何内容。 通过-P选项打开端口是有效的。然后,我可以在nc环境
中
操作(类似于),但我不确定在我的
Python
中
实现所有这些调用是否明智。我可以通过从stringIO或popen<e
浏览 2
提问于2015-03-12
得票数 17
1
回答
按下电报机器人键盘的按钮,但不
发送
消息
python
、
python-3.x
、
telegram
、
telegram-bot
、
python-telegram-bot
我想让用户按下电报机器人键盘上的按钮,但不
发送
消息。消息将出现在消息框
中
,供用户进行进一步编辑,但不会
发送
出去。其目的是生成一个模板消息,供用户进一步编辑。 下面是一个简单的键盘代码示例。https://github.com/
python
-
telegram
-
bot
/
python
-
telegram
-
bot
/blob/master/examples/inlin
浏览 105
提问于2020-06-20
得票数 0
回答已采纳
1
回答
Python
Telegram
Bot
-如何更新我的机器人
发送
的最后一条消息的文本
python
、
python-telegram-bot
我正在
使用
python
-
Telegram
-
bot
(
python
-
telegram
-
bot
.org)与来自
Python
3的
Telegram
通信
bot
.editMessageText("Seriously, you're on your own, k
浏览 0
提问于2018-04-15
得票数 3
1
回答
为什么机器人要向私人消息而不是群
发送
消息?
python
、
telegram
、
telegram-bot
我在群聊
中
为一个机器人写了一个命令,他在私信里给我发了一个回复,而不是在群里。常规命令,
如
:/ start、/
bot
等- work,但它通过私人消息
中
的内联按钮响应命令 代码如下: import loggingfrom aiogram.utils.markdown import hbold, hunderline, hcode, hlinkand
浏览 16
提问于2021-06-20
得票数 0
2
回答
有什么方法可以通过电报api
发送
画布项目吗?
javascript
、
c#
、
reactjs
、
telegram
有没有可能通过blob获取我的画布并
使用
电报api直接
发送
它?我试着把画布转换成url,但是电报仍然不能
发送
。exportTelegramPNG(){ TOKEN:"
telegram
bot
token&quo
浏览 11
提问于2022-09-06
得票数 0
回答已采纳
点击加载更多
相关
资讯
去中心化AI基础设施Phoenix宣布其大模型服务LLM已在Telegram上线
VoteBot - Telegram高效群组决策的利器
用QQ监控PBS任务
tcp/ip模型中,帧是第几层的数据单元?
学习如何使用 Python 构建你自己的 Twitter 机器人
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
语音识别
活动推荐
运营活动
广告
关闭
领券