Merge branch 'master' into notify
This commit is contained in:
commit
28e575f225
@ -19,7 +19,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VERSION = "1.2"
|
VERSION = "1.3"
|
||||||
|
|
||||||
HELP = `
|
HELP = `
|
||||||
*list* or *li*
|
*list* or *li*
|
||||||
@ -380,7 +380,7 @@ func main() {
|
|||||||
go send(HELP, update.Message.Chat.ID, true)
|
go send(HELP, update.Message.Chat.ID, true)
|
||||||
|
|
||||||
case "version", "/version":
|
case "version", "/version":
|
||||||
go version(update)
|
go getVersion(update)
|
||||||
|
|
||||||
case "":
|
case "":
|
||||||
// might be a file received
|
// might be a file received
|
||||||
@ -1399,8 +1399,8 @@ func deldata(ud tgbotapi.Update, tokens []string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// version sends transmission version + transmission-telegram version
|
// getVersion sends transmission version + transmission-telegram version
|
||||||
func version(ud tgbotapi.Update) {
|
func getVersion(ud tgbotapi.Update) {
|
||||||
send(fmt.Sprintf("Transmission *%s*\nTransmission-telegram *%s*", Client.Version(), VERSION), ud.Message.Chat.ID, true)
|
send(fmt.Sprintf("Transmission *%s*\nTransmission-telegram *%s*", Client.Version(), VERSION), ud.Message.Chat.ID, true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user