Mention entity doesn't give me user id and banChatMember only accepts user id.
you would have to keep a database of usernames
yeah but it's not possible to do that if the bot joins late after the creation of the group and the user doesn't post again. Ughh why is this restriction in place, why cant they just allow user id to be int or username for all group functions? So yeah, I think I will stick with a /ban as a reply to original message to do that. thanks
@encrypted_for i understand the reasoning behind of this, for example, username may change, be mistyped, or a case with a user without username, also, having multiple options of doing the same thing isnt good for api
So allow api users to provide only username and the server covers it to a user ID mention automatically
Also, the misstyping would only apply for manual user input, which is already available but for some reason the bot api doesn't allow it for programmatically doing it
ah, i thought you mean user delet/ban
Oh, and i didn't notice that you replied some other message 😁
how do you know what username to type after /ban command.. can you type my username without looking into profile🤤
Oh yeah, you are right about that actually
Обсуждают сегодня