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
933 stars 105 forks source link

Not --config, but --configure? but still error. #106

Open leftside2 opened 2 years ago

leftside2 commented 2 years ago

Today suddenly it didn't work.

So I $ pip install telegram-send # but '--config' stopped working, but requires '--configure'. So I $ telegram-send --configure [path to BotFather config] "hello test" # but it showed the following prompt:

Talk with the BotFather on Telegram (https://telegram.me/BotFather), create a bot and insert the token
> _

So I did, $ pip install telegram-send==0.25 # it worked like a charm.

Wiered.

clyra commented 2 years ago

I have the same issue. It seems that telegram-send is ignoring the --config and just trying to load the default user configuration file:

$ strace  telegram-send --config /config/mytelegram.conf  "foobar"

...
openat(AT_FDCWD, "/root/.config/telegram-send.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(1, "\33[31mConfig not found\33[0m\n", 26Config not found