---
# System prepended metadata

title: Telegram 應用
tags: [豐興, telegram]

---

# Telegram 應用
**FHbot Token**
>1052344018:AAEWKCM-YiCjUkDxfXhAILyTPTBRorkny8Q

**群組ID**
>水處理 CHAT_ID=-274977027
>副料存量 CHAT_ID=-437702193


**取得群組資訊**
https://api.telegram.org/bot1052344018:AAEWKCM-YiCjUkDxfXhAILyTPTBRorkny8Q/getUpdates

exsample：
**水處理**
https://api.telegram.org/bot1052344018:AAEWKCM-YiCjUkDxfXhAILyTPTBRorkny8Q/sendMessage?chat_id=-274977027&text=Hello

**存量Iot**
https://api.telegram.org/bot1052344018:AAEWKCM-YiCjUkDxfXhAILyTPTBRorkny8Q/sendMessage?chat_id=-437702193&text=Hello

**尚未測試SSL**
將SSL憑證上傳至telegram
```htmlmixed=
<html>
<body>
<form action="https://api.telegram.org/bot<BOT_TOCKEN>/setwebhook" method="post" enctype="multipart/form-data">
    Select Certificate to upload:
    <input type="file" name="certificate" id="fileToUpload">
	URL: <input type="text" name="url"  value="https://<YOURWEBSITE>/<YOUR_PHP_URL>"><br>
    <input type="submit" value="Upload Certificate" name="submit">
</form>

</body>
</html>

```
### 參考網站 ###
https://medium.com/front-end-augustus-study-notes/telegram-bot-api-1-e4ea74d3b064

https://blog.sean.taipei/2017/05/telegram-bot

**Telegram API**
https://core.telegram.org/api

###### tags: `telegram` `豐興`
