I want to know if a user with specific id is joined in my telegram channel which I’m admin in it using telethon. I already tried getting list of all users of my channel but it returns at most 200 users. I need to check user by user that if it is joined or not.
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
You can use GetParticipantRequest to check if the user is in chat. If not, it would return an error:
telethon.errors.rpcerrorlist.UserNotParticipantError
.This work for my.