JakobLichterfeld / TeslaMate-Telegram-Bot

A telegram bot which sends a message if an update for your Tesla is available (use TeslaMate MQTT)
MIT License
26 stars 4 forks source link

feat: allow negative chat_id, which means group chats #35

Closed freinbichler closed 8 months ago

freinbichler commented 8 months ago

After upgrading to v0.7.3 I am now getting this error:

ERROR - Error: Please set the environment variable TELEGRAM_BOT_CHAT_ID to a valid number and try again.

My env variable:

TELEGRAM_BOT_CHAT_ID=-410996XXX

XXX are more digits, removed for privacy. I guess the issue is that it is a negative number. Also doesn't work if I wrap it in double quotes.

JakobLichterfeld commented 8 months ago

Thanks for reporting. All chat_ids I came across were positive numeric, that's why I implemented the check that way. Anyway, seems like no more releases after just 3 hours of sleep.

JakobLichterfeld commented 8 months ago

Negative chat_id means group chat

freinbichler commented 8 months ago

Would still be great to allow negative ids aka group chats, because that is where I used the bot until now