2022-02-05 16:40:22 +08:00
2022-02-04 21:49:17 +08:00
2022-02-04 22:31:42 +08:00
2022-02-05 16:40:22 +08:00
2021-08-24 21:58:12 +08:00

Teleline-sticker-converter

這個Bot可以將Line上的貼圖轉換成telegram上的貼圖

This bot can transform Line's stickers to Telegram's sticker.

食用方法

  1. 在 telegram 的 @BotFather 新增一個 Bot,複製好 access token

  2. 在 Heroku 新增一個 app

  3. 在該 app 的 Config Vars, 新增 TELEGRAM_BOT_TOKEN 設為剛剛複製好的 token

  4. 將該 Bot 的程式丟到 Heroku 上面

  5. 在 telegram 把 bot webhook 設為 {app url}/hook 即可

  6. Create a new bot using @BotFather in telegram, copy the access token of the bot.

  7. Create an app in Heroku.

  8. In Config Vars of the app, set TELEGRAM_BOT_TOKEN to the access token.

  9. Upload programs of the bot to Heroku.

  10. Set heroku worker to >=1

  11. In telegram, set the bot's webhook to {app url}/hook.

檔案

main.py 處理網路的地方

TeleLine.py 處理所有資料並和user講話

worker.py 是個Heroku限定的東東,可以做出Background Task之類的神奇效果,不用限制於Webhook的30秒

S
Description
No description provided
Readme
590 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%