@@ -446,13 +446,15 @@ func RegisterRoutes(m *macaron.Macaron) {
446446 m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
447447 m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
448448 m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
449+ m .Post ("/telegram/new" , bindIgnErr (auth.NewTelegramHookForm {}), repo .TelegramHooksNewPost )
449450 m .Post ("/msteams/new" , bindIgnErr (auth.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
450451 m .Get ("/:id" , repo .WebHooksEdit )
451452 m .Post ("/gitea/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksEditPost )
452453 m .Post ("/gogs/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksEditPost )
453454 m .Post ("/slack/:id" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksEditPost )
454455 m .Post ("/discord/:id" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksEditPost )
455456 m .Post ("/dingtalk/:id" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksEditPost )
457+ m .Post ("/telegram/:id" , bindIgnErr (auth.NewTelegramHookForm {}), repo .TelegramHooksEditPost )
456458 m .Post ("/msteams/:id" , bindIgnErr (auth.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
457459 })
458460
0 commit comments