-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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:
{"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(),
themronion
Metadata
Metadata
Assignees
Labels
No labels