From 010a035602e51dcfba25068d24457be7b467d3bb Mon Sep 17 00:00:00 2001 From: johlanse Date: Sun, 28 Nov 2021 09:48:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0telegram=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + lib/tg.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c067903..cd1921d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ + windows环境推荐直接打开浏览器扫码或者在控制台出现二维码后打开当前目录```screen.png```进行扫码 + 其他无头浏览环境请配置[pushplus](http://www.pushplus.plus/) 推送进行扫码 + ## 配置文件 ```yaml # 刷课模式,默认为3, diff --git a/lib/tg.go b/lib/tg.go index 9479029..57112f7 100644 --- a/lib/tg.go +++ b/lib/tg.go @@ -207,7 +207,7 @@ func study(bot *Telegram, args []string) { pw: nil, browser: nil, context: nil, - ShowBrowser: false, + ShowBrowser: true, Push: func(kind string, message string) { switch { case kind == "image": @@ -223,6 +223,7 @@ func study(bot *Telegram, args []string) { } }, } + core.Init() defer core.Quit() core.LearnArticle(cookies) core.LearnVideo(cookies)