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

New version of "python-telegram-bot" package is breaking this package #120

Closed Cainor closed 1 year ago

Cainor commented 1 year ago

Hey everyone.

So "python-telegram-bot" just released their version 20. And when downloading "telegram-send" from pip, it will download latest version of "python-telegram-bot", which seems that it is not compatible with the current version of "telegram-send".

Upon importing "telegram-send" the following error is produced:

ImportError: cannot import name 'MAX_MESSAGE_LENGTH' from 'telegram.constants'

My solution was to download older version of "python-telegram-bot" using the following command:

python -m pip install "python-telegram-bot==13.5"

I suggest that "telegram-send" package specify the required version of "python-telegram-bot". Thank you all for your hard work.

Edit: Spelling

Cainor commented 1 year ago

Oh .. just saw this https://github.com/rahiel/telegram-send/issues/115 I'm closing it