-
Notifications
You must be signed in to change notification settings - Fork 334
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
[LINE] Cannot get displayName from context.session.user. #904
Comments
Bottender didn't get profiles from platform automatically now. If you want to get profile from the use, use https://bottender.js.org/docs/en/api-line-context#profile-api---official-docshttpsdeveloperslinemeendocsmessaging-apireferenceget-profile |
Thank you! const { displayName } = await context.getUserProfile(); Instead of: const { displayName } = context.session.user; But I'm wondering why author can get |
https://github.com/Yoctol/bottender/releases/tag/v1.0.0
This was a breaking change introduced in |
My code:
displayName
isundefined
, andcontext.session.user
has onlyid
and_updatedAt
properties.How can I get more information about user?
The text was updated successfully, but these errors were encountered: