Documentation ¶
Index ¶
- Constants
- type Config
- type Plugin
- func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger, botApi *tgbotapi.BotAPI) error
- func (p *Plugin) Name() string
- func (p *Plugin) Owner() int64
- func (p *Plugin) SendText(chatId int64, text string)
- func (p *Plugin) SendView(chatId int64, view View, data any)
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
- type TelegramSender
- type View
Constants ¶
View Source
const ( ViewRoom = "room.html" ViewFeedItems = "feeditems.html" ViewSources = "sources.html" ViewSubscribed = "subscribed.html" ViewAppStart = "appstart.html" ViewAppStop = "appstop.html" ViewSuccess = "success.html" ViewError = "error.html" ViewNotFound = "notfound.html" ViewForbidden = "forbidden.html" )
View Source
const PluginName = "tgbotsender"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramSender ¶
Click to show internal directories.
Click to hide internal directories.