Skip to content

Commit

Permalink
fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulelah Alfuntukh committed Dec 18, 2016
1 parent da6712b commit 16dd15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transmission-telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

const (
VERSION = "1.1"
VERSION = "1.2"

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

Expand Down

0 comments on commit 16dd15a

Please sign in to comment.