agala_telegram v0.1.2 Agala.Provider.Telegram.Conn.ProviderParams
This module describes provider params for Agala.Provider.Telegram
provider.
You can use the specification to check if your params will be accepted by Agala.Bot
constructors.
Provider params consist of:
:token
: this is your Telegram token, generated by the BotFather:poll_timeout
: timeout for waiting LongPolling response. In production the best is:infinity
.:response_timeout
: This timeout is for server acceptance of Bot responses. It should be standard for HTTP connections. If it fails - that means that your bot failed to send response to Telegram server.:hackney_opts
: these are options for Hackney - you can specify proxy or SSL for your bot here.
Link to this section Summary
Link to this section Types
Telegram provider params.
Provider params consist of:
:token
: this is your Telegram token, generated by the BotFather Default:nil
:poll_timeout
: timeout for waiting LongPolling response. In production the best is:infinity
. Default:nil
:response_timeout
: This timeout is for server acceptance of Bot responses. It should be standard for HTTP connections. If it fails - that means that your bot failed to send response to Telegram server. Default:nil
:hackney_opts
: these are options for Hackney - you can specify proxy or SSL for your bot here. Default:[]