Magik.TelegramNoti (Magik v0.3.0) View Source
This module provide some helper functions that help to send message to a telegram conversation
Config
config :magik, :telegram_noti,
bot_token: "your bot token".
conversations: [
default: "default_chat_id",
admin: "other chat id"
],
mode: :prod # or :dev
conversations
is a keyword list with name and chat_idmode
::prod
or:dev
is used in TelegramNoti Plug, ifmode == :dev
then reraise the error and return error stacktrace to client side. Ifmode == :prod
then do not return error stacktrace.
Link to this section Summary
Functions
Watch a function and send notification to conversation if an exception occurs