Jump to content


Photo

Telegram notifications


  • Please log in to reply
22 replies to this topic

#1 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 255 posts
  • Local time: 02:24 AM

Posted 16 July 2019 - 01:07 PM

Is there a working plugin at this time?



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134446 posts
  • Local time: 09:24 PM

Posted 16 July 2019 - 01:08 PM

Hi, there's a couple topics about one:

 

https://emby.media/c...ot/?hl=telegram

https://emby.media/c...es/?hl=telegram



#3 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 255 posts
  • Local time: 02:24 AM

Posted 17 July 2019 - 06:02 AM

 

Thank you. The Telemby bot is working, I've been using it. The other Telegram notifier I've just installed, will report back later



#4 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 255 posts
  • Local time: 02:24 AM

Posted 17 July 2019 - 08:24 AM

These Telegram notifications are working.

 

One thing I've noticed is that Emby is re-sending out the notification it receives from Sonarr/Radarr. Also what is the difference between new media report and new content added notifications?



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134446 posts
  • Local time: 09:24 PM

Posted 17 July 2019 - 10:57 AM

The core emby server only has one notification for new media.

#6 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 255 posts
  • Local time: 02:24 AM

Posted 17 July 2019 - 10:59 AM

The core emby server only has one notification for new media.


How do I stop it forwarding the Sonarr and Radarr notification?

#7 BillOatman OFFLINE  

BillOatman

    Advanced Member

  • Members
  • 387 posts
  • Local time: 09:24 PM

Posted 17 July 2019 - 01:49 PM

Pardon the newb question ... but how is this used? 

From what I gather from the server plugin code, the plugin forwards notifications to a telegram-bot.  

Then what?  Do you program your telegram-bot to forward the notifications to a list of users for example?



#8 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 255 posts
  • Local time: 02:24 AM

Posted 17 July 2019 - 01:51 PM

Pardon the newb question ... but how is this used?
From what I gather from the server plugin code, the plugin forwards notifications to a telegram-bot.
Then what? Do you program your telegram-bot to forward the notifications to a list of users for example?


I am outputting mine to a telegram channel that my users are subscribed to
  • BillOatman likes this

#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134446 posts
  • Local time: 09:24 PM

Posted 17 July 2019 - 01:52 PM

I'm not familiar with the code but i imagine it's similar to the other notification plugins. Source code for those can be found at our github organization.



#10 BillOatman OFFLINE  

BillOatman

    Advanced Member

  • Members
  • 387 posts
  • Local time: 09:24 PM

Posted 17 July 2019 - 03:15 PM

I am outputting mine to a telegram channel that my users are subscribed to

Ahhh didn't see there were also telegram-channels. That makes sense.  

Also makes sense that Discord etc. plugins would be very similar.


Edited by BillOatman, 17 July 2019 - 03:17 PM.


#11 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 255 posts
  • Local time: 02:24 AM

Posted 18 July 2019 - 06:07 AM

How do I stop it forwarding the Sonarr and Radarr notification?

 

I figured this so posting it here for others. This is a settings option called send notifications when you add Emby to Sonarr and Radarr connect, turn it off



#12 Pog22 OFFLINE  

Pog22

    Advanced Member

  • Members
  • 255 posts
  • Local time: 02:24 AM

Posted 11 August 2019 - 03:26 AM

Ok, so this Telegram plugin works well for all notifications except the New Media Report Notification. It gets posted but it is blank. My Telegram notifications are being posted to a supergroup. I'm actually using Pushover as well for admin notifications and the new media report works fine on Pushover.

 

Pushover

Attached File  Screenshot_20190811-082420.jpg   58.29KB   2 downloads

 

Telegram

Attached File  Screenshot_20190811-082726__01.jpg   173.32KB   1 downloads


Edited by Pog22, 11 August 2019 - 03:31 AM.


#13 darkside40 OFFLINE  

darkside40

    Advanced Member

  • Members
  • 48 posts
  • Local time: 03:24 AM

Posted 13 August 2019 - 03:18 PM

Yes there is a plugin i am using for approx, one year now:

https://github.com/b...cation/releases



#14 BillOatman OFFLINE  

BillOatman

    Advanced Member

  • Members
  • 387 posts
  • Local time: 09:24 PM

Posted 13 August 2019 - 03:24 PM

If you turn on debug logging, it will tell you what it is trying to send to telegram.  From the code, it doesn't differentiate between new media or anything else.

Does telegram allow for multi line messages?



#15 BillOatman OFFLINE  

BillOatman

    Advanced Member

  • Members
  • 387 posts
  • Local time: 09:24 PM

Posted 13 August 2019 - 03:42 PM

@darkside40  I think he is using yours :)



#16 darkside40 OFFLINE  

darkside40

    Advanced Member

  • Members
  • 48 posts
  • Local time: 03:24 AM

Posted 13 August 2019 - 03:50 PM

Till now this plugin only takes what it gets from the Notification Framework and simply passes it to Telegram. Which should be the scraped name of the Movie etc.

Where can i find that New Media Report Notification, till now i only now the New content added Notification which sends the new contend one by one.



#17 BillOatman OFFLINE  

BillOatman

    Advanced Member

  • Members
  • 387 posts
  • Local time: 09:24 PM

Posted 13 August 2019 - 05:19 PM

@darkside40  I took a quick look and you send request.Name.  Could the additional data be in request.Description? (Just a guess :) ).



#18 TeamB OFFLINE  

TeamB

    Advanced Member

  • Developers
  • 5727 posts
  • Local time: 11:24 AM

Posted 13 August 2019 - 05:32 PM

The new media report notification could be the one I added to the Playback Reporting plugin, it sends a notification daily with what media was added to Emby.
  • darkside40 likes this

#19 BillOatman OFFLINE  

BillOatman

    Advanced Member

  • Members
  • 387 posts
  • Local time: 09:24 PM

Posted 13 August 2019 - 09:15 PM

The new media report notification could be the one I added to the Playback Reporting plugin, it sends a notification daily with what media was added to Emby.

With the notification text in .Name, or in .Name and .Description ?



#20 TeamB OFFLINE  

TeamB

    Advanced Member

  • Developers
  • 5727 posts
  • Local time: 11:24 AM

Posted 13 August 2019 - 09:49 PM

Name and Description

 

https://github.com/f...rt.cs#L171-L178






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users