Похожие чаты

What it the correct way of detecting users joining a

group? using telethon.events.ChatAction and filtering user_added / user_joined I get two events when someone joins
(one has original_update telethon.tl.types.UpdateNewChannelMessage, the other telethon.tl.types.UpdateChannelParticipant)

4 ответов

7 просмотров
𝔾𝕝𝕒𝕩-🇪🇺 Автор вопроса

also, interestingly enough this doesn't happen on the test server

It's a known "issue", you have to exclude one of them. if you're not willing to delete the "user x joined the group" messages, ignore and return in the callback if original_update is UpdateNewChannelMessage

𝔾𝕝𝕒𝕩-🇪🇺 Автор вопроса
⎞ .·. ⎝ ⎝
It's a known "issue", you have to exclude one of t...

I've noticed sometimes it only sends one of them though, would it still catch all user joins?

𝔾𝕝𝕒𝕩 🇪🇺
I've noticed sometimes it only sends one of them t...

UpdateChannelParticipant is guaranteed for admin bots. the other is if group isn't large and doesn't have hidden members list, aka if you see join service messages

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

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

коллеги привет. уже второй день бьемся об заклад с одной ошибкой, может вы сталкивались с таки странным поведением? есть тестовый сервер, на который паблишим релизную версию W...
Magzhan
11
Какие дистрибутивы Linux чаще всего работают в качестве серверов и почему?
Alex
27
Комрады, посоветуйте, куда копать? Стал прикручивать кастомизацию тем. В OnShow главной главной формы пытаюсь загрузить из файла настроек и применить тему (на скрине, как долж...
Ed Doc
13
Такс, блин, таки кто-то знает, каким образом работают макросы stdin/stdout/stderr? Я влез в stdio.h, там определения нет, отладил через асмокод - вызывается функция со странны...
The Bird of Hermes
18
OnShow один раз вызывается? или возможен Hide?
Iluha Companets
14
А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
Ребят, привет! Я портируюсь с войда на генту Читаю гентувики В разделе про разбивку диска указана xfs файловая система, а не ext4, как обычно Xfs имеет какие-то преимущества ...
Андрей Дыбов
21
Why are you encouraging people to speculate on the token in lido price instead of telling them its a voting token that has no value? Surely the channel should be closed
Sam
9
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Lol is just wrote a long text about tokenomics etc and it was directly deleted, no curses or similar so i write it again in shorter. Hey Ben 600m eco system tokens, around 30...
. Duss
7
Карта сайта