forked from aekondratiev/redmine_telegram_email
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
27 lines (23 loc) · 745 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'redmine'
require 'telegram_mailer_patch'
Redmine::Plugin.register :redmine_telegram_email do
name 'Redmine Telegram Email'
author 'Andry Kondratiev'
url 'https://github.com/massdest/redmine_telegram_email'
author_url 'https://github.com/massdest'
description 'Telegram messenger plugin, like email, but to Telegram'
version '0.1'
requires_redmine :version_or_higher => '0.8.0'
settings \
:default => {
'callback_url' => 'https://api.telegram.org/bot',
'display_watchers' => 'yes',
'auto_mentions' => 'yes',
'new_include_description' => 1,
'updated_include_description' => 1,
'use_proxy' => 0,
'proxyurl' => nil,
'selfupdate_dont_send' => 0
},
:partial => 'settings/telegram_email_settings'
end