telegram - 通过机器人 Telegram API nodejs 将计划消息发送到 Telegram channel

标签 telegram telegram-bot node-telegram-bot-api

为了发送常规消息,我使用 -

  const uri = `https://api.telegram.org/bot${token}/sendMessage?chat_id=${channelId}&text=${text}`;

  await fetch(uri);


但是如何发送调度消息呢?

最佳答案

机器人无法调度消息,文档中有相应错误:https://core.telegram.org/method/messages.sendMessage (见 SCHEDULE_BOT_NOT_ALLOWED)

所以唯一的选择是使用您身边的任何调度工具来计划发送

关于telegram - 通过机器人 Telegram API nodejs 将计划消息发送到 Telegram channel ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61483408/

相关文章:

python - Telegram bot.polling() 上的 socket.timeout

node.js - 应用程序在 Node "Too much data to fetch"中使用 Telegram Api 崩溃

python - 通过 Cloud Endpoint 从 Telegram Bot 接收消息到 Google App Engine

javascript - 使用 node-telegram-bot-api 顺序执行功能

telegram-bot - bot api 是否支持创建 native 投票?

php - 如何从服务器为 Telegram BOT 定义命令

java - 在android项目中使用Kotlogram库

python - Telegram webhooks POST 请求的负载为空

php - 使用 curl 在电报机器人中发送消息

telegram-bot - 后台持续访问用户的实时位置