I want to create authorization functional for user by password and password must be hidden from chat.
I needs to remove message from chat.
How to realize this functional?
Thx
Deleting messages is not possible. You could edit them instead to display _Success_ or something similar.
I can to edit user message? For example, change characters like *?
maybe send the password via inline?
so "@yourbotname (type password)"
Oh, sorry. Deleting another users messages is not possible. You could however use inline mode, like paOol just mentioned, or simply tell them to delete their message. Or use an auth service via link, but that might be overkill..
Switch to private message, get password there.
So:
Therefore, you may:
msg.chat.type === "private". See Telegram.Chat.Hope that helps!
Most helpful comment
Switch to private message, get password there.