Skip to content

Commit fb14b25

Browse files
committed
fix: bug
1 parent 60e82bb commit fb14b25

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ smart_dump.json
3030
pairs_dump.json
3131

3232
# Debug file
33-
__debug_bin*
33+
__debug_bin*
34+
35+
.env

bbs/bitcointalk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func NewBitcointalk() *Bitcointalk {
5454
func (b *Bitcointalk) FilterFill() {
5555

5656
// 下载JSON文件
57-
url := "https://raw.githubusercontent.com/uerax/all-in-one-bot/master/bbs/bitcointalk/filter.json"
57+
url := "https://raw.githubusercontent.com/uerax/all-in-one-bot/v2/bbs/bitcointalk/filter.json"
5858
resp, err := http.Get(url)
5959
if err != nil {
6060
log.Println("无法下载JSON文件:", err)

bbs/bitcointalk/filter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"Algo GhostRider | PoW | Masternode": {},
77
"[GPTC] GPTcash": {},
88
"MineMeCoin": {},
9+
"Coin - POW + POS + Masternode": {},
910
"mulierum":{}
1011
}

crypto/coingecko.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Coingecko struct {
2525
func getList() map[string]float64 {
2626

2727
// 下载JSON文件
28-
url := "https://raw.githubusercontent.com/uerax/all-in-one-bot/master/crypto/list/list.json"
28+
url := "https://raw.githubusercontent.com/uerax/all-in-one-bot/v2/crypto/list/list.json"
2929
resp, err := http.Get(url)
3030
if err != nil {
3131
return nil

tg/aio.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ func (t *Aio) DeleteAfterSendMessage(msg string) {
8787

8888
func (t *Aio) SendMarkdown(id int64, msg string, preview bool) (tgbotapi.Message, error) {
8989
mc := tgbotapi.NewMessage(id, msg)
90-
mc.ParseMode = "Markdown"
90+
mc.ParseMode = tgbotapi.ModeMarkdownV2
9191
mc.DisableWebPagePreview = preview
9292
return t.bot.Send(mc)
9393
}
9494

9595
func (t *Aio) DeleteAfterSendMarkdown(id int64, msg string, preview bool) {
9696
mc := tgbotapi.NewMessage(id, msg)
97-
mc.ParseMode = "Markdown"
97+
mc.ParseMode = tgbotapi.ModeMarkdownV2
9898
mc.DisableWebPagePreview = preview
9999
m, err := t.bot.Send(mc)
100100
if err == nil {

0 commit comments

Comments
 (0)