canaria3406 / hoyolab-auto-sign

A lightweight, secure, and free script that automatically collect Hoyolab daily check in rewards. Supports Genshin Impact, Honkai Impact 3rd, and Honkai: Star Rail.
MIT License
332 stars 40 forks source link

Update main-telegram.gs #35

Closed ghost closed 5 months ago

ghost commented 5 months ago
  1. Cookie data should not be shared and should be accessed by environment variables settings available in google scripts. Added support for environmental variables.
  2. Added a question mark after '/sendMessage' as it was giving me some error UrlFetchApp.fetch('https://api.telegram.org/bot'` + telegramBotToken + '/sendMessage?', options);