Hey, everyone know how to get the chat members for

group or channel?

20 ответов

6 просмотров

Bots can't do that

Viper- Автор вопроса
dotvhs
Bots can't do that

Yes, you are right, The Telegram Bot API doesn't support directly retrieving all uses details from a group due to privacy protection measures.

Viper
Yes, you are right, The Telegram Bot API doesn't s...

Even with mtproto api returns only the last 200 members in a channel.

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

That isn't enough, I think. I have a requirement where I need to add a bot to an existing group, grant it necessary permissions, and enable the bot to access information about all members in the group, such as their IDs. How can I develop this?

Viper
That isn't enough, I think. I have a requirement w...

Well, you would need to make a userbot. Or just log every joining user but then bot has to be added before everyone else joins

Viper- Автор вопроса
dotvhs
Well, you would need to make a userbot. Or just lo...

you are right, but I don't like to migrate existing users to other groups..

Viper- Автор вопроса
dotvhs
Then you would need to make a userbot

Hey, do you know when mentioning someone in the group, is it possible to get the user's ids by username?

Viper
Hey, do you know when mentioning someone in the gr...

You won't get a users id by just using their @username via the bot API

Viper- Автор вопроса
Яico X
You won't get a users id by just using their @user...

ok, how can i get the users id in the group ?

Viper- Автор вопроса
⟨ Simon | Schürrle ⟩
when they write a message or join

ok, thanks. just only these two ways right now...

Viper
Hey, do you know when mentioning someone in the gr...

BUT you can always use mtproto for that. This method will let you get uid by username

Viper
ok, thanks. just only these two ways right now...

And when they use your bot inline and if your bot disables the group chat privacy, it can read all messages. But there must be some form of interaction with your bot in order to get to know their userID

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

wew, that seems like a bit of privacy issue :D

Яico X
How so?

you can't really see if a bot has group privacy enabled when using it inline can you?

⟨ Simon | Schürrle ⟩
you can't really see if a bot has group privacy en...

I think you misunderstood. My point wasn't that it can see all messages of a group if used inline. My point was that the bot can see all messages when group privacy is disabled and the bot is a member of the group. Using a bot inline is just one more way it can obtain a userID

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

Карта сайта