ExLine.Webhook.Source (ExLine v0.1.0)

Copy Markdown View Source

The origin of a webhook event: a user, group, or room.

type is "user" | "group" | "room"; the matching id field is populated (user_id is also present for group/room events when available). raw keeps the original map.

Ref: https://developers.line.biz/en/reference/messaging-api/#source-user

Summary

Types

t()

@type t() :: %ExLine.Webhook.Source{
  group_id: String.t() | nil,
  raw: map() | nil,
  room_id: String.t() | nil,
  type: String.t() | nil,
  user_id: String.t() | nil
}