Is there anyway to prevent a bot that is admin

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

13 ответов

22 просмотра

bot.onText(/\/command/)

Erfan- Автор вопроса
Saurav ¯\_(ツ)_/¯
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

Erfan- Автор вопроса

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

Erfan
I have 3 bots in a group and they are all admins, ...

I think you can do return without processing the update right? 🤔🤔

Erfan- Автор вопроса
Shrimadhav U K
I think you can do return without processing the u...

I surely can, and I'm actually doing it, the thing is I don't need x3 requests on my Webserver

Erfan
I'm not asking : how to handle only messages start...

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.

Erfan- Автор вопроса
Shrimadhav U K
you cannot prevent the update from coming, as far ...

It applies global rules, I can disable message update, but then I lose all the message updates even in private chat

Erfan
I surely can, and I'm actually doing it, the thing...

just dont send that data on websocket then, it is not about bot api at all

Erfan- Автор вопроса
ignorant [ she/her ]
just skip the update?

It sends request anyway, and Webserver is used x3 anyway

Erfan- Автор вопроса

Похожие вопросы

Обсуждают сегодня

А можно не обсуждать тут V?
Darkanronpa Goodbye Despair
18
Вот зачем писать о том, чего ты не знаешь? Стохастический это и есть вероятностный. И в этом и проблема, что один и тот алгоритм на одних и тех же данных выдает разный результ...
Aleksandr Druzhinin
37
Какая бы группа загнулась? Этот канал о Ди. Хотите поговорить о го/зиге/расте - добро пожаловать на каналы этих языков. Тут про Ди не говорят практически. Загнулась бы группа ...
Aleksandr Druzhinin
10
Кстате вопрос. Насколько я помню, был пост. Что в D nogc имеет накладные расходы. При работе с GC. Правда, нет? Разобраться толком времени не хватило.
Vi
3
Уолтер в коммунити zig-а суету наводит: https://news.ycombinator.com/item?id=41015588 С одной стороны, конешн, пиарится, с другой стороны, коркоманде и тому же Kelley, который...
Constantin F.
26
Warning Failed to apply the selected architecture x86_64-pc-windows-msvc. Got ["x86"]. Error Unsupported architecture: x86_64-pc-windows-msvc кто-нибудь знает, что с ldc2? вот...
quantumde1 Зубенко
3
@wintttr gdc, ldc2, dmd?
quantumde1 Зубенко
6
Этот V кто делает?
☭Тупо Лучше Император
3
Я кстате только в играх пока ,действительно вижу проблему от GC. А у вас какие задачи раз GC не нужен?
Vi
2
появился нормальный вывод зависимостей файла в стиле makefile?
Макс Воробьев
4
Карта сайта