Skip to content

這個Bot可以將Line上的貼圖轉換成telegram上的貼圖\n This bot can transform Line's stickers to Telegram's sticker.

Notifications You must be signed in to change notification settings

MercuryYen/Teleline-sticker-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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秒

About

這個Bot可以將Line上的貼圖轉換成telegram上的貼圖\n This bot can transform Line's stickers to Telegram's sticker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages