Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BotToken string `json:"telegram_bot_token"` ChatID string `json:"telegram_chat_id"` CollectorTime int `json:"collector_time"` SendTime int `json:"send_time"` Topics []common.Topic `json:"topics"` Sources []common.Source `json:"sources"` }
Config :: Main configuration struct BotToken: Telegram bot token ChatID: Telegram chat id (can be a group) CollectorTime: Time interval for the collector (Minutes) SendTime: Time interval for telegram sender (Minutes) Topics: List of topics Sources: LIst of sources
func LoadConfigurations ¶
LoadConfigurations :: Load configuration file
Click to show internal directories.
Click to hide internal directories.