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