-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I get the user name/id that called the bot? #117
Comments
I know that we have two options, as below, but I would like to understand how to use those options: getUserId(name) (return: promise) - gets user ID by name Please, help. |
you can get the user info from bot.on("message",function(data), data will contain all the users info when that users sends a message to the bot: bot.on("message",function(data) { |
I can't get user_name also. How to get this information? My code:
How to get |
@a007mr |
I need to get the name/id of the user who called the bot. How do I get this information?
Cheers.
The text was updated successfully, but these errors were encountered: