Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify.py trunctates Telegram ChatID #28

Closed
DePingus opened this issue Aug 20, 2017 · 2 comments
Closed

Notify.py trunctates Telegram ChatID #28

DePingus opened this issue Aug 20, 2017 · 2 comments

Comments

@DePingus
Copy link

DePingus commented Aug 20, 2017

Hi. I'm using Telegram and my ChatID is 14 characters long (including the starting minus sign). I tested my bot APIkey and this 14 character ChatID with curl it works fine. But when I run Notify.py either from nzbget or the command line using:

python ./Notify.py -s tgram://XXXX:XXXX/-1234567890123 -t "Testing" -b "Hello World"

I get:

Failed to send Telegram:-1234567890 notification: (400) Bad Request: chat not found.

In the error message you can see the ChatID is only the first 11 characters of what I wrote in the command line (obviously I'm using a fake ChatID in these examples but I think you get the gist). I get the same error message in nzbget.

Thanks for taking the time!

caronc added a commit that referenced this issue Aug 20, 2017
@caronc
Copy link
Owner

caronc commented Aug 20, 2017

I bumped the limit up. I'm not quite sure why i fixed it at 10 characters when i first wrote the plug-in; sorry about that 😊.

Give it another go and let me know (you'll need to check out the master branch)

@DePingus
Copy link
Author

Wow. Awesome! Thank you so much for the quick fix. It works perfectly.

@caronc caronc closed this as completed Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants