diff --git a/docs/api/downloading_files.md b/docs/api/download_file.md similarity index 87% rename from docs/api/downloading_files.md rename to docs/api/download_file.md index 253e9414..d198c280 100644 --- a/docs/api/downloading_files.md +++ b/docs/api/download_file.md @@ -92,13 +92,15 @@ await bot.download(document) ## Related pages: -- [Animation](types/animation.md) -- [Audio](types/audio.md) -- [Document](types/document.md) -- [File](types/file.md) -- [PassportFile](types/passport_file.md) -- [PhotoSize](types/photo_size.md) -- [Sticker](types/sticker.md) -- [Video](types/video.md) -- [VideoNote](types/video_note.md) -- [Voice](types/voice.md) +- [Official documentation](https://core.telegram.org/bots/api#getfile) +- [aiogram.types.Animation](types/animation.md) +- [aiogram.types.Audio](types/audio.md) +- [aiogram.types.Document](types/document.md) +- [aiogram.types.File](types/file.md) +- [aiogram.types.PassportFile](types/passport_file.md) +- [aiogram.types.PhotoSize](types/photo_size.md) +- [aiogram.types.Sticker](types/sticker.md) +- [aiogram.types.Video](types/video.md) +- [aiogram.types.VideoNote](types/video_note.md) +- [aiogram.types.Voice](types/voice.md) +- [How to upload file?](upload_file.md) diff --git a/docs/api/methods/add_sticker_to_set.md b/docs/api/methods/add_sticker_to_set.md index f40f3c10..19912b3d 100644 --- a/docs/api/methods/add_sticker_to_set.md +++ b/docs/api/methods/add_sticker_to_set.md @@ -61,4 +61,4 @@ return AddStickerToSet(...) - [Official documentation](https://core.telegram.org/bots/api#addstickertoset) - [aiogram.types.InputFile](../types/input_file.md) - [aiogram.types.MaskPosition](../types/mask_position.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/create_new_sticker_set.md b/docs/api/methods/create_new_sticker_set.md index f1f36a38..a739f942 100644 --- a/docs/api/methods/create_new_sticker_set.md +++ b/docs/api/methods/create_new_sticker_set.md @@ -63,4 +63,4 @@ return CreateNewStickerSet(...) - [Official documentation](https://core.telegram.org/bots/api#createnewstickerset) - [aiogram.types.InputFile](../types/input_file.md) - [aiogram.types.MaskPosition](../types/mask_position.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_animation.md b/docs/api/methods/send_animation.md index 36f576e7..d1991768 100644 --- a/docs/api/methods/send_animation.md +++ b/docs/api/methods/send_animation.md @@ -70,4 +70,4 @@ return SendAnimation(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_audio.md b/docs/api/methods/send_audio.md index 0e20fd51..b30f1342 100644 --- a/docs/api/methods/send_audio.md +++ b/docs/api/methods/send_audio.md @@ -72,4 +72,4 @@ return SendAudio(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_document.md b/docs/api/methods/send_document.md index 8a6d9dd1..905bc500 100644 --- a/docs/api/methods/send_document.md +++ b/docs/api/methods/send_document.md @@ -67,4 +67,4 @@ return SendDocument(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_photo.md b/docs/api/methods/send_photo.md index 224a4fac..8572beef 100644 --- a/docs/api/methods/send_photo.md +++ b/docs/api/methods/send_photo.md @@ -66,4 +66,4 @@ return SendPhoto(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_sticker.md b/docs/api/methods/send_sticker.md index a48fd62f..92eee7a1 100644 --- a/docs/api/methods/send_sticker.md +++ b/docs/api/methods/send_sticker.md @@ -64,4 +64,4 @@ return SendSticker(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_video.md b/docs/api/methods/send_video.md index dd565480..d32ba55c 100644 --- a/docs/api/methods/send_video.md +++ b/docs/api/methods/send_video.md @@ -71,4 +71,4 @@ return SendVideo(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_video_note.md b/docs/api/methods/send_video_note.md index 6aac0df3..f9b734f7 100644 --- a/docs/api/methods/send_video_note.md +++ b/docs/api/methods/send_video_note.md @@ -67,4 +67,4 @@ return SendVideoNote(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/send_voice.md b/docs/api/methods/send_voice.md index 40bdd7e4..3f0a7855 100644 --- a/docs/api/methods/send_voice.md +++ b/docs/api/methods/send_voice.md @@ -67,4 +67,4 @@ return SendVoice(...) - [aiogram.types.Message](../types/message.md) - [aiogram.types.ReplyKeyboardMarkup](../types/reply_keyboard_markup.md) - [aiogram.types.ReplyKeyboardRemove](../types/reply_keyboard_remove.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/set_chat_photo.md b/docs/api/methods/set_chat_photo.md index 657c9025..7394d463 100644 --- a/docs/api/methods/set_chat_photo.md +++ b/docs/api/methods/set_chat_photo.md @@ -53,4 +53,4 @@ result: bool = await bot(SetChatPhoto(...)) - [Official documentation](https://core.telegram.org/bots/api#setchatphoto) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/set_sticker_set_thumb.md b/docs/api/methods/set_sticker_set_thumb.md index ffc2b1d5..6228dba3 100644 --- a/docs/api/methods/set_sticker_set_thumb.md +++ b/docs/api/methods/set_sticker_set_thumb.md @@ -57,4 +57,4 @@ return SetStickerSetThumb(...) - [Official documentation](https://core.telegram.org/bots/api#setstickersetthumb) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/set_webhook.md b/docs/api/methods/set_webhook.md index 95e82a86..b07e08c1 100644 --- a/docs/api/methods/set_webhook.md +++ b/docs/api/methods/set_webhook.md @@ -70,4 +70,4 @@ return SetWebhook(...) - [Official documentation](https://core.telegram.org/bots/api#setwebhook) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/methods/upload_sticker_file.md b/docs/api/methods/upload_sticker_file.md index 02133c4e..4dfd9f06 100644 --- a/docs/api/methods/upload_sticker_file.md +++ b/docs/api/methods/upload_sticker_file.md @@ -54,4 +54,4 @@ result: File = await bot(UploadStickerFile(...)) - [Official documentation](https://core.telegram.org/bots/api#uploadstickerfile) - [aiogram.types.File](../types/file.md) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/types/animation.md b/docs/api/types/animation.md index 636a49bc..43172e87 100644 --- a/docs/api/types/animation.md +++ b/docs/api/types/animation.md @@ -31,4 +31,4 @@ This object represents an animation file (GIF or H.264/MPEG-4 AVC video without - [Official documentation](https://core.telegram.org/bots/api#animation) - [aiogram.types.PhotoSize](../types/photo_size.md) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/audio.md b/docs/api/types/audio.md index 954b1874..5df8342e 100644 --- a/docs/api/types/audio.md +++ b/docs/api/types/audio.md @@ -30,4 +30,4 @@ This object represents an audio file to be treated as music by the Telegram clie - [Official documentation](https://core.telegram.org/bots/api#audio) - [aiogram.types.PhotoSize](../types/photo_size.md) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/document.md b/docs/api/types/document.md index 211c4534..f1bd5bf9 100644 --- a/docs/api/types/document.md +++ b/docs/api/types/document.md @@ -28,4 +28,4 @@ This object represents a general file (as opposed to photos, voice messages and - [Official documentation](https://core.telegram.org/bots/api#document) - [aiogram.types.PhotoSize](../types/photo_size.md) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/file.md b/docs/api/types/file.md index 7c3be98e..b455a6ee 100644 --- a/docs/api/types/file.md +++ b/docs/api/types/file.md @@ -27,4 +27,4 @@ Maximum file size to download is 20 MB ## Related pages: - [Official documentation](https://core.telegram.org/bots/api#file) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/input_file.md b/docs/api/types/input_file.md index d062e1d7..a1bb2b5f 100644 --- a/docs/api/types/input_file.md +++ b/docs/api/types/input_file.md @@ -16,4 +16,4 @@ This object represents the contents of a file to be uploaded. Must be posted usi ## Related pages: - [Official documentation](https://core.telegram.org/bots/api#inputfile) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/types/input_media_animation.md b/docs/api/types/input_media_animation.md index c784d6a4..00621338 100644 --- a/docs/api/types/input_media_animation.md +++ b/docs/api/types/input_media_animation.md @@ -30,4 +30,4 @@ Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be - [Official documentation](https://core.telegram.org/bots/api#inputmediaanimation) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/types/input_media_audio.md b/docs/api/types/input_media_audio.md index 3f672da9..002a8f29 100644 --- a/docs/api/types/input_media_audio.md +++ b/docs/api/types/input_media_audio.md @@ -30,4 +30,4 @@ Represents an audio file to be treated as music to be sent. - [Official documentation](https://core.telegram.org/bots/api#inputmediaaudio) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/types/input_media_document.md b/docs/api/types/input_media_document.md index 61946b34..be45502f 100644 --- a/docs/api/types/input_media_document.md +++ b/docs/api/types/input_media_document.md @@ -27,4 +27,4 @@ Represents a general file to be sent. - [Official documentation](https://core.telegram.org/bots/api#inputmediadocument) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/types/input_media_photo.md b/docs/api/types/input_media_photo.md index c995e70d..f5fff62c 100644 --- a/docs/api/types/input_media_photo.md +++ b/docs/api/types/input_media_photo.md @@ -26,4 +26,4 @@ Represents a photo to be sent. - [Official documentation](https://core.telegram.org/bots/api#inputmediaphoto) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/types/input_media_video.md b/docs/api/types/input_media_video.md index d803fdfb..7044566f 100644 --- a/docs/api/types/input_media_video.md +++ b/docs/api/types/input_media_video.md @@ -31,4 +31,4 @@ Represents a video to be sent. - [Official documentation](https://core.telegram.org/bots/api#inputmediavideo) - [aiogram.types.InputFile](../types/input_file.md) -- [How to upload file?](../sending_files.md) +- [How to upload file?](../upload_file.md) diff --git a/docs/api/types/passport_file.md b/docs/api/types/passport_file.md index 7d0440c0..143c4e38 100644 --- a/docs/api/types/passport_file.md +++ b/docs/api/types/passport_file.md @@ -25,4 +25,4 @@ This object represents a file uploaded to Telegram Passport. Currently all Teleg ## Related pages: - [Official documentation](https://core.telegram.org/bots/api#passportfile) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/photo_size.md b/docs/api/types/photo_size.md index c71ccd1d..e1683c51 100644 --- a/docs/api/types/photo_size.md +++ b/docs/api/types/photo_size.md @@ -26,4 +26,4 @@ This object represents one size of a photo or a file / sticker thumbnail. ## Related pages: - [Official documentation](https://core.telegram.org/bots/api#photosize) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/sticker.md b/docs/api/types/sticker.md index 825edc95..c893e2a1 100644 --- a/docs/api/types/sticker.md +++ b/docs/api/types/sticker.md @@ -33,4 +33,4 @@ This object represents a sticker. - [Official documentation](https://core.telegram.org/bots/api#sticker) - [aiogram.types.MaskPosition](../types/mask_position.md) - [aiogram.types.PhotoSize](../types/photo_size.md) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/video.md b/docs/api/types/video.md index b2e6e759..8274fb88 100644 --- a/docs/api/types/video.md +++ b/docs/api/types/video.md @@ -30,4 +30,4 @@ This object represents a video file. - [Official documentation](https://core.telegram.org/bots/api#video) - [aiogram.types.PhotoSize](../types/photo_size.md) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/video_note.md b/docs/api/types/video_note.md index 0bac1fe2..bbbca61c 100644 --- a/docs/api/types/video_note.md +++ b/docs/api/types/video_note.md @@ -28,4 +28,4 @@ This object represents a video message (available in Telegram apps as of v.4.0). - [Official documentation](https://core.telegram.org/bots/api#videonote) - [aiogram.types.PhotoSize](../types/photo_size.md) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/types/voice.md b/docs/api/types/voice.md index 763f0e89..6b30b2a2 100644 --- a/docs/api/types/voice.md +++ b/docs/api/types/voice.md @@ -26,4 +26,4 @@ This object represents a voice note. ## Related pages: - [Official documentation](https://core.telegram.org/bots/api#voice) -- [How to download file?](../downloading_files.md) +- [How to download file?](../download_file.md) diff --git a/docs/api/sending_files.md b/docs/api/upload_file.md similarity index 94% rename from docs/api/sending_files.md rename to docs/api/upload_file.md index 771f5c08..de7666a1 100644 --- a/docs/api/sending_files.md +++ b/docs/api/upload_file.md @@ -89,3 +89,9 @@ image = URLInputFile("https://www.python.org/static/community_logos/python-power | `filename` | `#!python3 Optional[str]` | Custom filename to be presented to Telegram | | `chunk_size` | `#!python3 int` | File chunks size (Default: `64 kb`) | | `timeout` | `#!python3 int` | Total timeout in seconds (Default: `30`) | + +## Related pages: + +- [Official documentation](https://core.telegram.org/bots/api#sending-files) +- [aiogram.types.InputFile](types/input_file.md) +- [How to download file?](download_file.md) diff --git a/mkdocs.yml b/mkdocs.yml index 61f9babd..2b78fbfc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -233,8 +233,8 @@ nav: - api/types/game.md - api/types/callback_game.md - api/types/game_high_score.md - - api/downloading_files.md - - api/sending_files.md + - api/download_file.md + - api/upload_file.md - Dispatcher: - dispatcher/index.md - dispatcher/router.md