From 4e08ff783558257e41863c872d2fd98fe1e8a0e5 Mon Sep 17 00:00:00 2001 From: pyed Date: Mon, 23 Jan 2017 15:49:14 -0500 Subject: [PATCH] Version 1.3 --- transmission-telegram.go => main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename transmission-telegram.go => main.go (99%) diff --git a/transmission-telegram.go b/main.go similarity index 99% rename from transmission-telegram.go rename to main.go index ace1848..bfc8c05 100644 --- a/transmission-telegram.go +++ b/main.go @@ -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) }