简体   繁体   English

我的机器人没有时间阅读消息 - Telegram Bot API

[英]My bot does not have time to read messages - Telegram Bot API

I use the library Telegram.Bot for c#.我将 Telegram.Bot 库用于 c#。 I do not use webhook.我不使用网络钩子。 The problem is this: my bot reads the chat (it seems that it checks for a certain period of time), but does not see messages that were deleted by the faster bot.问题是这样的:我的机器人读取聊天(似乎检查了一段时间),但没有看到更快的机器人删除的消息。 As a result, my bot cannot work.结果,我的机器人无法工作。 How can I manage to read messages without using a webhook?如何在不使用 webhook 的情况下设法阅读消息?

-- Perhaps I incorrectly asked a question. ——也许我问错了一个问题。 The second bot is not mine, it is just in the chat, because of it my bot does not have time to receive messages, it deletes them earlier.第二个机器人不是我的,它只是在聊天中,因为它我的机器人没有时间接收消息,它会提前删除它们。

I think you should only use one bot, after receiving all the new messages delete them with the following method https://core.telegram.org/bots/api#deletemessage我认为您应该只使用一个机器人,在收到所有新消息后使用以下方法删除它们https://core.telegram.org/bots/api#deletemessage

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM