chore: Add requirements.txt and EXCHANGE_API_KEY startup warning.
This commit is contained in:
@@ -1579,6 +1579,9 @@ def main():
|
|||||||
if not TELEGRAM_TOKEN:
|
if not TELEGRAM_TOKEN:
|
||||||
logger.critical("TELEGRAM_TOKEN 环境变量未设置!")
|
logger.critical("TELEGRAM_TOKEN 环境变量未设置!")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not EXCHANGE_API_KEY:
|
||||||
|
logger.info("未配置 EXCHANGE_API_KEY,多货币换算将降级为只使用本地缓存(若无缓存则不转换)。")
|
||||||
|
|
||||||
application = Application.builder().token(TELEGRAM_TOKEN).build()
|
application = Application.builder().token(TELEGRAM_TOKEN).build()
|
||||||
|
|
||||||
|
|||||||
7
requirements.txt
Normal file
7
requirements.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
python-telegram-bot>=20.0
|
||||||
|
pandas
|
||||||
|
matplotlib
|
||||||
|
python-dateutil
|
||||||
|
dateparser
|
||||||
|
python-dotenv
|
||||||
|
requests
|
||||||
Reference in New Issue
Block a user