@@ -440,13 +440,15 @@ func RegisterRoutes(m *macaron.Macaron) {
440440 m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
441441 m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
442442 m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
443+ m .Post ("/telegram/new" , bindIgnErr (auth.NewTelegramHookForm {}), repo .TelegramHooksNewPost )
443444 m .Post ("/msteams/new" , bindIgnErr (auth.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
444445 m .Get ("/:id" , repo .WebHooksEdit )
445446 m .Post ("/gitea/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksEditPost )
446447 m .Post ("/gogs/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksEditPost )
447448 m .Post ("/slack/:id" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksEditPost )
448449 m .Post ("/discord/:id" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksEditPost )
449450 m .Post ("/dingtalk/:id" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksEditPost )
451+ m .Post ("/telegram/:id" , bindIgnErr (auth.NewTelegramHookForm {}), repo .TelegramHooksEditPost )
450452 m .Post ("/msteams/:id" , bindIgnErr (auth.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
451453 })
452454
0 commit comments