Is there any way I can kick someone In the group using the bot, the person I reply to with the command gets kicked
There’s a post on the following link that could help with this:
But I need it to read the user ID from the reply
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.
Can you please gimme the code how to use the restrict function…and how to fetch user ID