Skip to content

Commit

Permalink
fix: bundle error
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed May 1, 2024
1 parent 699279f commit 8a6dfde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/files/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The standard file download path looks like this:

- Call `getFile` with `file_id`
- Extract `file_path` from response
- Construct a link of the following type https://api.telegram.org/file/bot<token>/<file_path>
- Construct a link of the following type `https://api.telegram.org/file/bot<token>/<file_path>`
- Send request and download the requested media
- ? Maybe save file in FS ?

Expand All @@ -25,7 +25,7 @@ bot.on("message", async (context) => {
```

> [!IMPORTANT]
> // prettier-ignore
> **One message** contain only **one attachment**. Therefore, to download an attachment, you can simply use the `context.download` method
## Via bot instance method
Expand Down

0 comments on commit 8a6dfde

Please sign in to comment.