From 180c5b79434139b8b1f98b4af438b61ba1e73d2e Mon Sep 17 00:00:00 2001 From: zu1k Date: Fri, 14 Aug 2020 08:16:57 +0800 Subject: [PATCH] ?? --- getter/tgchannel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getter/tgchannel.go b/getter/tgchannel.go index 7b597c9..74ab98e 100644 --- a/getter/tgchannel.go +++ b/getter/tgchannel.go @@ -22,14 +22,14 @@ type TGChannelGetter struct { func NewTGChannelGetter(options tool.Options) Getter { num, found := options["num"] - if !found || int(num.(float64)) <= 0 { + if !found || num.(int) <= 0 { num = 200 } url, found := options["channel"] if found { return &TGChannelGetter{ c: colly.NewCollector(), - NumNeeded: int(num.(float64)), + NumNeeded: num.(int), Url: "https://t.me/s/" + url.(string), } }