2023-06-19, 01:16 PM
Hi there, How am i suppost to do the Webhook for telegram, ive created a bot on Telegram added it to my group also got the token and the Chat ID.
What do i put in the Webhook url?
Also heres my template:
{
"chat_id": <MY CHAT ID HERE>,
"photo": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary",
{{#if_equals ItemType 'Season'}}
"caption": "{{{SeriesName}}} {{{Name}}} has been added to {{{ServerName}}}"
{{else}}
{{#if_equals ItemType 'Episode'}}
"caption": "{{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} {{{Name}}} has been added to {{{ServerName}}}"
{{else}}
"caption": "{{{Name}}} ({{Year}}) has been added to {{{ServerName}}}"
{{/if_equals}}
{{/if_equals}}
}
Heres my log file as i could not upload it as attachment:
https://ghostbin.me/649054dee7ed4
What do i put in the Webhook url?
Also heres my template:
{
"chat_id": <MY CHAT ID HERE>,
"photo": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary",
{{#if_equals ItemType 'Season'}}
"caption": "{{{SeriesName}}} {{{Name}}} has been added to {{{ServerName}}}"
{{else}}
{{#if_equals ItemType 'Episode'}}
"caption": "{{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} {{{Name}}} has been added to {{{ServerName}}}"
{{else}}
"caption": "{{{Name}}} ({{Year}}) has been added to {{{ServerName}}}"
{{/if_equals}}
{{/if_equals}}
}
Heres my log file as i could not upload it as attachment:
https://ghostbin.me/649054dee7ed4
Jellyfin enjoyer.