Skip to content

Commit 4c8cb08

Browse files
committed
feat(release): add reminders bot script
1 parent 97ce199 commit 4c8cb08

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/release/reminders_bot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
load_dotenv()
88

9-
TELEGRAM_BOT_API_KEY = os.environ.get("TELEGRAM_BOT2_API_KEY")
9+
TELEGRAM_BOT2_API_KEY = os.environ.get("TELEGRAM_BOT2_API_KEY")
1010
TELEGRAM_CHAT_ID = "610574272"
1111

1212
def send_telegram_message(bot_token, chat_id, message):
@@ -34,10 +34,10 @@ def get_chat_id(bot_token):
3434

3535
def send_reminder(message):
3636
"""Sends a reminder message to Telegram."""
37-
if TELEGRAM_BOT_API_KEY and TELEGRAM_CHAT_ID:
38-
send_telegram_message(TELEGRAM_BOT_API_KEY, TELEGRAM_CHAT_ID, f"Reminder: {message}")
37+
if TELEGRAM_BOT2_API_KEY and TELEGRAM_CHAT_ID:
38+
send_telegram_message(TELEGRAM_BOT2_API_KEY, TELEGRAM_CHAT_ID, f"Reminder: {message}")
3939
else:
40-
print("TELEGRAM_BOT_API_KEY and TELEGRAM_CHAT_ID are not set.")
40+
print("TELEGRAM_BOT2_API_KEY and TELEGRAM_CHAT_ID are not set.")
4141

4242
def main():
4343
parser = argparse.ArgumentParser(description="Telegram Bot Script")
@@ -46,7 +46,7 @@ def main():
4646
args = parser.parse_args()
4747

4848
if args.job == 'get_chat_id':
49-
bot_token = TELEGRAM_BOT_API_KEY
49+
bot_token = TELEGRAM_BOT2_API_KEY
5050
chat_id = get_chat_id(bot_token)
5151
if chat_id:
5252
print(f"Chat ID: {chat_id}")

0 commit comments

Comments
 (0)