Documentation ¶
Index ¶
- Variables
- func CompareVersion(version string) bool
- func DoUpdate(version string, chatId int64, msgId int) error
- func DownloadFile(file, url string) error
- func ExtractUser(ctx *ext.Context, msg *tg.Message, chat types.EffectiveChat) (target int64, err error)
- func GetBotToken(l *logger.Logger) func(ctx *ext.Context, u *ext.Update) error
- func GetSupportedARCH() (string, error)
- func GetSupportedOS() (string, error)
- func InitUpdate(l *logger.Logger)
- func Restart(delay int, chatId int64, msgId int, msgText string) error
- func StartupAutomations(l *logger.Logger, ctx *ext.Context, client *telegram.Client)
- type Update
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TelegramClient *telegram.Client BotFatherId int64 = 93372553 )
View Source
var CurrentUpdate = &Update{}
View Source
var TOKEN_REGEXP = regexp.MustCompile(`(\d+:[a-zA-Z0-9_\-]+)`)
Functions ¶
func CompareVersion ¶
CompareVersion returns true if input version is greater than current one.
func DownloadFile ¶ added in v0.0.3
func ExtractUser ¶
func GetSupportedARCH ¶ added in v0.0.3
func GetSupportedOS ¶ added in v0.0.3
func InitUpdate ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.