webhooks - Telegram bot 消息读取回调

标签 webhooks telegram telegram-bot telegram-webhook

每当用户使用 Telegram bot API 读取机器人发送的消息时,是否可以在 webhook 中获取回调?

它没有记录,我无法弄清楚如何实现它。

最佳答案

Telegram 实际上提供了两个 APIs :

  • Bot API允许您轻松创建将 Telegram 消息用于接口(interface)的程序。
  • Telegram API允许您构建自己的定制 Telegram 客户端。

  • 您正在寻找的功能无法通过 Bot API 获得,而只能通过 Telegram API 获得。



    1 次检查 = 消息已发送到 Telegram 云(正在等待您的聊天伙伴在 Telegram 中看到它),已发送通知(如果收件人正在接受通知)。

    2 次检查 = 已阅读消息(收件人打开 Telegram 并与您的消息进行对话)。

    We don't have an additional status for 'message delivered to device', because you can use Telegram on multiple devices simultaneously. Since you don't know which one of their devices the person is actually using, delivery to one of the devices becomes irrelevant. [Telegram Support]

    关于webhooks - Telegram bot 消息读取回调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42262503/

    相关文章:

    api - 在 Telegram API 中获取具有聊天链接的 chat_id

    python-3.x - 如何获取特定的字符串?

    node.js - telegram 机器人无法访问群组中的机器人消息

    node.js - telegram 连续发送相同的消息

    python - 如何将python输出发送到 Telegram channel 而不是组和gmail电子邮件组

    azure - 如何在 Azure 逻辑应用程序中使用 HMAC/签名 key 验证 Webhook 消息?

    ruby-on-rails - "Post 404 not found"与 Rails 和 Api.ai

    php - 如何在本地计算机上测试Telegram Bot Webhook?

    php - Shopify Webhooks 到 Laravel 路线

    telegram - 如何检测用户是否删除了 Telegram Bot 聊天?