From 098fa1d28255f0455839157be15ec6782509ee17 Mon Sep 17 00:00:00 2001 From: pyed Date: Sun, 18 Dec 2016 08:36:08 +0300 Subject: [PATCH] fix #3 --- transmission-telegram.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transmission-telegram.go b/transmission-telegram.go index 8a8ce51..ace1848 100644 --- a/transmission-telegram.go +++ b/transmission-telegram.go @@ -19,7 +19,7 @@ import ( ) const ( - VERSION = "1.1" + VERSION = "1.2" HELP = ` *list* or *li* @@ -887,7 +887,7 @@ func add(ud tgbotapi.Update, tokens []string) { // receiveTorrent gets an update that potentially has a .torrent file to add func receiveTorrent(ud tgbotapi.Update) { - if ud.Message.Document.FileID == "" { + if ud.Message.Document == nil { return // has no document }