claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.33k stars 89 forks source link

Telegram notifications unclickable. #251

Closed twistedsanity closed 2 years ago

twistedsanity commented 2 years ago

Telegram notifications, when received look fine, but the 'url:' field that contains "Click me!" is not clickable and does not have a url embedded. I have tried viewing the notification on both the mobile app (android) and PC desktop client, both show the same.

claabs commented 2 years ago

I updated the telegram format to Markdown V2. Can you update an retest?

twistedsanity commented 2 years ago

It looks like due to the telegram token having a '-' in it, it is causing an issue: "Bad Request: can't parse entities: Character '-' is reserved and must be escaped with the preceding '\'"

twistedsanity commented 2 years ago

Ok refreshed to get a token without a '-' and I still get the message so may it is in fact my email address having a '-' might be the issue. Update: I have commented out my email addresses with a '-' in and I still have the issue the only place left in the config.json is the chatId

xk44 commented 2 years ago

I'm still having this issue after getting a new chatID, the only hyphens I've found are in the text that's sent to telegram (epicgames-freegames-node) and my telegram bot API token.

Do these hyphens need to be escaped? https://github.com/claabs/epicgames-freegames-node/blob/5f7ae78ac372bb0fee490c5ed7920b3ab6168f32/src/notifiers/telegram.ts#L26