作为群组成员的机器人能否跟踪发送的消息量?

Can a bot who's a member of a group track the amount of messages sent?

我正在尝试跟踪我的机器人受邀加入的群组中发送的消息数量,而无需禁用隐私模式。数一数。

我目前正在使用 node-telegram-bot-api。

这可能吗?

没有

这个documentation很清楚

A bot running in privacy mode will not receive all messages that people send to the group. Instead, it will only receive:

  • Messages that start with a slash ‘/’
  • Replies to the bot's own messages
  • Service messages (people added or removed from the group, etc.)
  • Messages from channels where it's a member

因此,如果消息不满足这些条件,您的机器人将根本不会收到更新。