ExMicrosoftBot.Models.Attachment (ex_microsoftbot v3.0.0)

Microsoft bot attachment structure within the message

Link to this section Summary

Link to this section Types

Link to this type

json_base_value()

Specs

json_base_value() :: String.t() | number() | boolean()
Link to this type

json_object()

Specs

json_object() ::
  json_base_value()
  | [json_base_value()]
  | %{optional(String.t()) => json_object()}

Specs

t() :: %ExMicrosoftBot.Models.Attachment{
  content: json_object(),
  contentType: String.t(),
  contentUrl: String.t(),
  name: String.t(),
  thumbnailUrl: String.t()
}

Link to this section Functions

Specs

parse(map()) :: {:ok, t()}
parse(String.t()) :: t()

Decode a string into ExMicrosoftBot.Models.Attachment