-
Notifications
You must be signed in to change notification settings - Fork 5
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
Can it use with telegram? #15
Comments
Hi @xiNeRoar, this is not currently supported as Telegram requires app registration but if you have a Telegram API key already then it should be possible. |
For Telegram API Key, do you mean telegram bot token? |
Yes a bot token is required as well as a chat ID - I've had a read of Telegram's documentation and it seems like it should be straightforward. I'll see if I can write something for you this week and I'll let you know here once it's ready for testing. |
thank you very much! |
I've just uploaded what I think should work. Please can you test and let me know which scripts you use (Sonarr/Radarr/Lidarr) and what the outcome is (or any test message). Remember to blank your API key/channel ID. If you don't have a bot and channel ID already, please be sure to follow the instructions here: |
Thanks!
Since i am still at work. I will test it out around 8 to 10 hours later and
let you know what is the result. Thank you so much for your help :D
在 2021年5月4日週二 14:18,Chris ***@***.***> 寫道:
… I've just uploaded what I *think* should work.
Please can you test and let me know which scripts you use
(Sonarr/Radarr/Lidarr) and what the outcome is (or any test message).
Remember to blank your API key/channel ID.
If you don't have a bot and channel ID already, please be sure to follow
the instructions here:
https://core.telegram.org/bots#3-how-do-i-create-a-bot
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APZGB6T4ZY2ZMSNYNIYMOUTTL6GUZANCNFSM437B6DJQ>
.
|
Thank you for the logs. It seems that the message text is not being sent correctly. I will investigate and update the code and notify you when it is ready. To answer your questions:
|
Thank you so much for your detailed explanation. :D |
Could you please replace the last line: If this also fails then there might be an issue with the encoding of the body message. |
I've found the issue, we needed to ConvertTo-JSON to be compatible with the Telegram API. |
Thanks soooooooo much! finally I got it working right now.
How can i achieve this? |
I'm glad it is now working! 😄 I am working on getting the images to send however I have not had time the past two days. I'll hopefully get some time tonight or tomorrow to finish it. In the meantime you can change $pushmessage to a 'here-string' instead like this:
If the $env:radarr_movie_year doesn't work, just declare it in the first few lines like so: All of the fields can be found under the API Schemas at the bottom of the page here: Radarr API Once I get the image part working I'll let you know. |
Sadly I cannot get the image upload working in PowerShell 5. Can you confirm what version of PowerShell you have? Just type You should get something like this:
|
Unfortunately the image attachment won't work. For some reason Telegram will not accept images in any format from PowerShell version 5.x however PushBullet seems to manage this without issues. I have not done adequate testing of the below steps so please use them at your own risk!This one-liner will trigger the install of PowerShell version 7: You will need to MANUALLY call this for the telegram image script by updating your Radarr custom script path to: For PowerShell Version 6.1.0 or higher you can use the following code to send images to Telegram:
|
thank you so much!! i will try it out when i have time and will let you know the result. Thank you so much for all the work you have done :D |
Hi @xiNeRoar how did you get on with testing? Let me know if there are any issues or if you would like this closed. |
I can share some screenshot to you later to let you see what is happening |
Hi @xiNeRoar are you please able to share logs or screenshots for the error? Thanks! |
Closing as Telegram is now working but sending images is not supported in PowerShell version 5. |
As title, can this be use with telegram?
If so, may i know how to setup this?
The text was updated successfully, but these errors were encountered: