Is there any way I can kick someone In the group using the bot, the person I reply to with the command gets kicked
Kick User in Group - Telegram
DanielBeckett
(Daniel Beckett)
#4
There’s not really a clear way to get a user’s ID from their username using the bot API for Telegram unfortunately. To have the ID they need to have an open conversation with the bot e.g. by triggering a flow by sending a new message trigger keyword.
Levi
(Levi)
#5
Can you please gimme the code how to use the restrict function…and how to fetch user ID