This commit is contained in:
2026-02-03 16:41:34 +03:00
parent 90e2f38c18
commit c71aad0c79
5 changed files with 97 additions and 0 deletions

View File

@@ -155,3 +155,12 @@ func (b *Bot) AnswerCallbackQuery(params *AnswerCallbackQueryP) (bool, error) {
}
return *ok, err
}
type GetFileP struct {
FileId string `json:"file_id"`
}
func (b *Bot) GetFile(params *GetFileP) (*File, error) {
req := NewRequest[File]("getFile", params)
return req.Do(b)
}