We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I tried to use your lib and got an NPE in this part of example code:
viberBot.sendMessage(message.getSender().getId(),
as I see in my Viber's incoming request, sender is a part of event attribute:
sender
event
{"event":"message","timestamp":1591899411331,"chat_hostname":"SN-CHAT-10_","message_token"...,"sender":{"id":"....","name":"Denis Kristov","language":"en","country":"UA","api_version":8},"message":{"text":"test","type":"text"},"silent":false}
so it looks like you need to change this part to:
viberBot.sendMessage(event.getSender().getId(),
The text was updated successfully, but these errors were encountered:
+1 here
Sorry, something went wrong.
No branches or pull requests
Hi, I tried to use your lib and got an NPE in this part of example code:
viberBot.sendMessage(message.getSender().getId(),
as I see in my Viber's incoming request,
sender
is a part ofevent
attribute:{"event":"message","timestamp":1591899411331,"chat_hostname":"SN-CHAT-10_","message_token"...,"sender":{"id":"....","name":"Denis Kristov","language":"en","country":"UA","api_version":8},"message":{"text":"test","type":"text"},"silent":false}
so it looks like you need to change this part to:
viberBot.sendMessage(event.getSender().getId(),
The text was updated successfully, but these errors were encountered: