Magik.TelegramNoti.watch
You're seeing just the macro
watch
, go back to Magik.TelegramNoti module for more information.
This macro help you to catch exceptions and then send to your Telegram conversation using send_error/4
Options
to
: conversation name from your config. Default is:default
args
: argument list that passed to function, this is sent to telegram chat for dev to debug easier. If not speficied, arguments for current function call are usedlabel
: label for this error/function. If not specified, current function name is used.
Example
...
require Magik.TelegramNoti
def do_something(args) do
Magik.TelegramNoti.watch [to: :admin] do
# your logic code here
end
end
...