chore: Add requirements.txt and EXCHANGE_API_KEY startup warning.

This commit is contained in:
Xiaolan Bot
2026-02-22 23:45:13 +08:00
parent 31b1235d20
commit 81840dfa31
2 changed files with 10 additions and 0 deletions

View File

@@ -1580,6 +1580,9 @@ def main():
logger.critical("TELEGRAM_TOKEN 环境变量未设置!")
return
if not EXCHANGE_API_KEY:
logger.info("未配置 EXCHANGE_API_KEY多货币换算将降级为只使用本地缓存若无缓存则不转换")
application = Application.builder().token(TELEGRAM_TOKEN).build()
async def post_init(app: Application):

7
requirements.txt Normal file
View File

@@ -0,0 +1,7 @@
python-telegram-bot>=20.0
pandas
matplotlib
python-dateutil
dateparser
python-dotenv
requests