тестово events события вместо telegram updates

This commit is contained in:
Artem Tsyrulnikov
2026-01-19 19:39:34 +03:00
parent 7f6b2ac336
commit f7ad52f543
3 changed files with 253 additions and 207 deletions

View File

@@ -302,15 +302,12 @@ func (c *Client) UpdateProjectInviteLinkType(
return &project, err
}
func (c *Client) ForwardTelegramUpdate(
ctx context.Context,
update any,
) error {
func (c *Client) SendEvent(ctx context.Context, payload any) error {
return c.do(
ctx,
http.MethodPost,
"api/v1/internal/telegram/updates",
update,
"api/v1/internal/events",
payload,
nil,
)
}