username on their account.
/get shivam
if i do it i want to get his user id..
How can i do it?
You can search participants by name in get_particpants. it's not accurate since many people can have same name
If you are with a group w them you can find it in object of a msg they sent
If i do /get ⎞ .·. ⎝ then i want your user id to perform some operations like banning or muting people
ok, do so, to get the id of a user member in a group, use client.get_particpants(chat, search='name', limit=1). it's not fully accurate, but the only way. or just find their id yourself. use a forked telegram app
Обсуждают сегодня