line_bot v0.1.0 LineBot.EventInfo View Source

This struct contains common metadata for each event that is passed to a LineBot event handler.

Link to this section Summary

Types

t()

This struct contains common metadata for each event that is passed to a LineBot event handler.

Link to this section Types

Link to this type

t()

View Source
t() :: %LineBot.EventInfo{
  destination: String.t(),
  source: %{required(String.t()) => String.t()},
  timestamp: DateTime.t(),
  user_id: String.t()
}

This struct contains common metadata for each event that is passed to a LineBot event handler.

  • user_id - The ID of the user that caused this event to be sent. This information is extracted from the source object for convenience.
  • source - information about the message source. This corresponds to the source object of an event.
  • destination - the user ID of the bot that should receive the event. This corresponds to the destination property of the webhook request.
  • timestamp - a DateTime struct containing the time of the event. This corresponds to the timestamp property of an event.