distribusi: notifikasi Telegram mulai/selesai/gagal (telegram.py, V30)
This commit is contained in:
1 parent
397e20ec3a
commit
025f46d399
8 files changed
+170
-7
No files matched your search
@@ -58,6 +58,15 @@ BP_PRIVATE_KEY = os.getenv('VEX_BP_PRIVATE_KEY', '')
|
||||
DISTRIBUTE_HOUR = int(os.getenv('DISTRIBUTE_HOUR', '10'))
|
||||
DISTRIBUTE_MAX_ATTEMPTS = int(os.getenv('DISTRIBUTE_MAX_ATTEMPTS', '3'))
|
||||
|
||||
# ————————————————— Notifikasi Telegram (V30) —————————————————
|
||||
# Bot token + daftar chat id (CSV) tujuan notifikasi mulai/selesai/gagal
|
||||
# distribusi. Kosong → notifikasi nonaktif (no-op senyap).
|
||||
TELEGRAM_BOT_TOKEN = os.getenv('TELEGRAM_BOT_TOKEN', '')
|
||||
TELEGRAM_CHAT_IDS = [
|
||||
c.strip() for c in os.getenv('TELEGRAM_CHAT_IDS', '').split(',')
|
||||
if c.strip()
|
||||
]
|
||||
|
||||
# Kontrak token VEX = vex.token (⊥ eosio.token — tak ada di chain)
|
||||
TOKEN_CONTRACT = 'vex.token'
|
||||
VEX_SYMBOL = 'VEX'
|
||||
|
||||
Reference in new issue
Block a user