Fix incorrect webhook payload being sent in the new SetMessageVisibilityEvent

This commit is contained in:
Gabe Kangas
2021-11-12 16:24:08 -08:00
parent 464ae9598b
commit c9f8133507
2 changed files with 6 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ func SetMessagesVisibility(messageIDs []string, visibility bool) error {
// Send webhook
wh := webhooks.WebhookEvent{
EventData: event,
EventData: payload,
Type: event.GetMessageType(),
}