1
0
Fork 0
forked from forgejo/forgejo

Add ThreadID parameter for Telegram webhooks (#25996) (#26480)

Backport #25996

Telegram has recently implemented threads (channels) for group chats.

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: neveraskedtoexist <matikot415@gmail.com>
(cherry picked from commit acc0fd22d8)
This commit is contained in:
Giteabot 2023-08-14 08:55:17 +08:00 committed by Earl Warren
parent f74522a352
commit d297a87f75
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 9 additions and 1 deletions

View file

@ -352,6 +352,7 @@ func (f *NewDingtalkHookForm) Validate(req *http.Request, errs binding.Errors) b
type NewTelegramHookForm struct {
BotToken string `binding:"Required"`
ChatID string `binding:"Required"`
ThreadID string
WebhookForm
}