Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(config Config, db persistence.Persistence) error
Initialize initialize bot webhook to handle messages from Telegram
Types ¶
type Config ¶
type Config struct { Token string SSL bool Cert string Key string WebhookAddr string ListeningPath string }
Config configurations for mindmaker bot Token secret token string obtained from Telegram SSL indicator whether secured endpoint is being used Cert string for location of cert.pem Key string for location of key.pem WebhookAddr string for webhook address e.g. "https://mybot.herokuapp.com" ListeningPath string for path that handles updates e.g. "/"
Click to show internal directories.
Click to hide internal directories.