Versions in this module Expand all Collapse all v0 v0.2.0 Feb 17, 2020 Changes in this version + type Exporter struct + func NewExporter(fileRecipient FileRecipient, storage Storage, params ExporterParams) *Exporter + func (e *Exporter) Export(showNum int, yyyymmdd int) error + type ExporterParams struct + BotUsername string + BroadcastUsers SuperUser + InputRoot string + OutputRoot string + SuperUsers SuperUser + TemplateFile string + type FileRecipient interface + GetFile func(fileID string) (io.ReadCloser, error) + func NewTelegramFileRecipient(botAPI *tbapi.BotAPI, timeout time.Duration) FileRecipient + type Reporter struct + func NewLogger(logs string) (result Reporter) + func (l Reporter) Save(msg *bot.Message) + type Storage interface + BuildLink func(fileName string) string + BuildPath func(fileName string) string + CreateFile func(fileName string, body []byte) (string, error) + FileExists func(fileName string) (bool, error) + type SuperUser interface + IsSuper func(user string) bool + type TelegramFileRecipient struct + func (tfd TelegramFileRecipient) GetFile(fileID string) (io.ReadCloser, error)