in group from receiving all the updates ? to only receive messages starting with slash ?
This is called Privacy Mode and is enabled by default, but not in groups that bot is admin, I wan't to apply privacy mode to all the groups, not just the groups that bot is not admin
bot.onText(/\/command/)
I'm not asking : how to handle only messages starting with slash I'm asking : how to prevent the update from coming
I have 3 bots in a group and they are all admins, they have webhooks each and with each message in the group, I receive 3 updates 😐, One bot needs all updates, but the other 2 are meant for other things, they don't handle anything in group, they just pin or etc, but they do receive all the updates, this is using my servers resources x3
I think you can do return without processing the update right? 🤔🤔
I surely can, and I'm actually doing it, the thing is I don't need x3 requests on my Webserver
you cannot prevent the update from coming, as far as I know. There is allowed_updates in the setWebhook parameters, but I don't think it does what you are expecting right now.
It applies global rules, I can disable message update, but then I lose all the message updates even in private chat
just skip the update?
just dont send that data on websocket then, it is not about bot api at all
It sends request anyway, and Webserver is used x3 anyway
so websocket or webserver??
Обсуждают сегодня