Documentation ¶
Index ¶
Constants ¶
View Source
const ( ALERT_CONTEXT_KEY = "alert" ALERTS_CONTEXT_KEY = "alerts" INVITE_CONTEXT_KEY = "invite" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
APIKey string `env:"TELEGRAM_API_KEY"`
}
Configuration of the telegram bot
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
Telegram represents the telegram interface
func NewTelegram ¶
func NewTelegram(config *Configuration, repository repository.Repository, webserver web.Webserver, logger *logrus.Logger, lib messages.Library) (*Telegram, error)
NewTelegram creates a new instance of a Telegram
Source Files ¶
- dialog-alert-change-token.go
- dialog-alert-create.go
- dialog-alert-delete.go
- dialog-alert-info.go
- dialog-alert-invite.go
- dialog-alert-mute.go
- dialog-alert-select.go
- dialog-alert-unsubscribe.go
- dialog-info.go
- dialog-invite-delete.go
- dialog-start.go
- dialog-utils.go
- dialog-yesno.go
- scope.go
- send.go
- telegram.go
- telegramConfig.go
- update.go
Click to show internal directories.
Click to hide internal directories.