fix #3
This commit is contained in:
parent
d8ac43c1a1
commit
098fa1d282
@ -19,7 +19,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VERSION = "1.1"
|
VERSION = "1.2"
|
||||||
|
|
||||||
HELP = `
|
HELP = `
|
||||||
*list* or *li*
|
*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
|
// receiveTorrent gets an update that potentially has a .torrent file to add
|
||||||
func receiveTorrent(ud tgbotapi.Update) {
|
func receiveTorrent(ud tgbotapi.Update) {
|
||||||
if ud.Message.Document.FileID == "" {
|
if ud.Message.Document == nil {
|
||||||
return // has no document
|
return // has no document
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user