Botlead.Bot.Adapter.Telegram (botlead v0.3.1)
Implementation business logic for Bot server for Telegram platform.
Summary
Functions
Returns a specification to start this module under a supervisor.
Read module config value with default as fallback.
Read module config value, raise if not configured.
Delete existing message by it's id.
Edit existing message by it's id.
Poll all updates from Telegram server.
Create Telegex client option specification for message response.
Parse messages recieved from Telegram server.
Deliver message to Telegram with successful delivery postback.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Read module config value with default as fallback.
Read module config value, raise if not configured.
Delete existing message by it's id.
Edit existing message by it's id.
Poll all updates from Telegram server.
@spec msg_to_opts( %Botlead.Message{ content: term(), inline_keyboard: term(), parse_mode: term() }, Keyword.t() ) :: Keyword.t()
Create Telegex client option specification for message response.
@spec process_messages([map()], [integer()]) :: {:ok, [integer()], integer(), [parsed_message()]}
Parse messages recieved from Telegram server.
Deliver message to Telegram with successful delivery postback.