Skip to content

Commit a8ea74c

Browse files
committed
docs: update infos for send notification flow
1 parent ea779bf commit a8ea74c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/single/send-notification-flow.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ This document describes the flow of sending notifications in the Telegram Git No
88

99
The user adds the bot URL to the git repository webhook. The bot URL is the URL of the bot server.
1010

11+
Example: `https://localhost:8000/telegram-git-notifier/`
12+
1113
### The git repository sends a webhook to the bot
1214

1315
The git repository sends a webhook to the bot if any event occurs. The webhook contains the event details.
1416

1517
### The bot processes the webhook message
1618

17-
The bot will receive the webhook message and process it. The bot will check the validity of the webhook message.
19+
When an application receives a webhook message from the git repository, the bot processes the webhook message.
20+
It checks if the webhook is set or not. If the event has any actions and the event is allowed notify in the settings, etc.
1821

1922
### The bot gets the message details if the event is valid
2023

21-
If the event is valid, the bot will get the message details of this event and set the message details to the message
24+
If the event/action is valid, the bot will get the message details of this event/action and set the message details to the message
2225
object.
2326

2427
### The bot sends a notification

0 commit comments

Comments
 (0)