Skip to content

Commit

Permalink
Version 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulelah Alfuntukh committed Feb 5, 2017
1 parent 16dd15a commit 98fb615
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions transmission-telegram.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

const (
VERSION = "1.2"
VERSION = "1.3"

HELP = `
*list* or *li*
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 98fb615

Please sign in to comment.