rahiel / telegram-send

Send messages and files over Telegram from the command-line.
https://www.rahielkasim.com/telegram-send/
GNU General Public License v3.0
938 stars 105 forks source link

Parsing fixed for the new legacy URL. #92

Closed jnbrisset closed 2 years ago

jnbrisset commented 3 years ago

Telegram has introduced K and Z version on web.telegram.org. They don't yield the chat_id in the URL like the old version did. The old version is still accessible via the menu with a modified base URL. This pull request catches the exception created from the new URL and retrieve the chat ID accordingly.

rahiel commented 2 years ago

Thanks for the PR! The URL had another change, fixed here: https://github.com/rahiel/telegram-send/commit/ef1148e4d5285fbe887e9aae616f3a190e211780