Magik.TelegramNoti.watch

You're seeing just the macro watch, go back to Magik.TelegramNoti module for more information.
Link to this macro

watch(opts \\ [], list)

View Source (macro)

Watch a function and send notification to conversation if an exception occurs

Options

  • to: conversation name
  • args: argument list that passed to function, this is sent to telegram chat for dev to debug easier
  • label: Label for this error/function

Example

...
def do_something(args) do

end
...