BotEx.Models.Message (bot_ex v1.0.2)

Summary

Types

t()

Module, that represents message wrapper struct

Types

t()

@type t() :: %BotEx.Models.Message{
  action: binary(),
  chat_id: integer(),
  custom_data: any(),
  data: binary(),
  date_time: any(),
  force_new: boolean(),
  from: atom(),
  is_cmd: boolean(),
  module: binary(),
  msg: any(),
  text: binary(),
  user: any(),
  user_id: integer()
}

Module, that represents message wrapper struct

##

  • is_cmd: is it a command or not,
  • module: the name of the module that will be called must match the result of BotEx.Handlers.ModuleHandler.get_cmd_name/0,
  • action: action,
  • data: data,
  • msg: original message
  • user: current user
  • user_id: user id
  • text: message text, if any
  • force_new:- report that editing the message is undesirable
  • chat_id:- chat id
  • custom_data:- any additional data