Skip to content
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

Bug Report #529

Open
frozenfung opened this issue Jan 17, 2025 · 0 comments
Open

Bug Report #529

frozenfung opened this issue Jan 17, 2025 · 0 comments
Labels

Comments

@frozenfung
Copy link

switch e := event.(type) {
case webhook.MessageEvent:
switch message := e.Message.(type) {
case webhook.TextMessageContent:
e.Source.UserId. <---- error

error msg: e.Source.UserId undefined (type webhook.SourceInterface has no field or method UserId)

System Informations

  • Go version: go1.23.4
  • OS: MacOS

Expected Behavior

According to official document we should get UserId
https://developers.line.biz/en/reference/messaging-api/#wh-text

Current Behavior

Error

Steps to Reproduce

Logs

@frozenfung frozenfung added the bug label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant