https://www.youtube.com/watch?v=eKKEa6NhCd0
https://github.com/howarder3/GPT-Linebot-python-flask-on-vercel
https://github.com/zaoldyeck/telegram-innovation-chatbot/tree/basic
4. 必須在Vercel的Environment Variables設定兩個環境變數,分別是OPENAI_API_KEY和TELEGRAM_BOT_TOKEN。順便記下Vercel給的網址,可以自己縮短一些。
5. 打開瀏覽器,輸入以下網址,設定webhook為部屬完Vercel的最後步驟,格式為:https://api.telegram.org/bot{$token}/setWebhook?url={$webhook_url}。
https://ithelp.ithome.com.tw/articles/10245264
https://tcsky.cc/tips-01-telegram-chatbot/