v1.0.0 beta 8; ratelimt war

This commit is contained in:
2026-03-02 17:06:13 +03:00
parent fa7a296a66
commit 6cf3355a36
4 changed files with 110 additions and 75 deletions

View File

@@ -21,7 +21,7 @@ type SendMessageP struct {
}
func (api *API) SendMessage(params SendMessageP) (Message, error) {
req := NewRequest[Message, SendMessageP]("sendMessage", params)
req := NewRequestWithChatID[Message, SendMessageP]("sendMessage", params, params.ChatID)
return req.Do(api)
}
@@ -275,7 +275,7 @@ type SendMessageDraftP struct {
}
func (api *API) SendMessageDraft(params SendMessageDraftP) (bool, error) {
req := NewRequest[bool]("sendMessageDraft", params)
req := NewRequestWithChatID[bool]("sendMessageDraft", params, params.ChatID)
return req.Do(api)
}