---
# System prepended metadata

title: SMS轉Telegram
tags: [script, app]

---

# SMS簡訊傳送Telegram

## 0. 流程

![image](https://hackmd.io/_uploads/Byqu11bDlx.png)


## 1. SMS Forwarder
`https://play.google.com/store/apps/details?id=com.frzinapps.smsforward&hl=zh_TW`
![image](https://hackmd.io/_uploads/BJgIRTsaye.png)

 ![image](https://hackmd.io/_uploads/H1lH9hiTke.png)


## 2. 也可自架server轉給ollama過濾廣告
### 2.1 選 URL
![image](https://hackmd.io/_uploads/BkD3qhs6Jg.png)


``` go
func AICheckAD(content string) string {
	content = fmt.Sprintf(`回覆時候不要有多餘文字,若下面[]中有抽獎優惠推銷推薦折扣禮物廣告信貸的內容，請直接回覆廠商名稱。不需要任何多餘的標籤、說明文字或標點符號，**僅限於名稱本身**。若沒有，請回：不是廣告:::[%s]`, content)
	aiCheck := GetAIRespone(content)

	// AI 偶爾會發瘋 去除多餘的字
	aiCheck = strings.ReplaceAll(aiCheck, `廠商名稱`, ``)
	aiCheck = strings.ReplaceAll(aiCheck, `:`, ``)
	aiCheck = strings.ReplaceAll(aiCheck, `,`, ``)

	return aiCheck
}
```


### 2.2 效果
![image](https://hackmd.io/_uploads/r1N4xJZPxe.png)
