agala v2.0.0 Agala.Bot.Handler

Module, represents the bank which gets messages from poller and then syncronosly proceeds them

Link to this section Summary

Functions

This method is called in order to pass messages from responser to handler

Link to this section Functions

Link to this function handle(message, bot_params)
handle(message :: any, bot_params :: Agala.BotParams.t) :: :ok

This method is called in order to pass messages from responser to handler.

This method is asyncronous, so you will not be blocked when calling it. All incoming messages will be put in handler’s message box and the will be proceeded one by one. This method will wrap message in Agala.Conn struct, and then proceed it with Agala.Chain

You probably should not use this method in bot developing, but you can understand how the flow is working if you need to create your own provider.