Download feature and URLInputFile (#332)

* Fix How to upload docs

* Rename BaseBot to Bot

* Add download_file method

* Add download method

* Add URLInputFile

* Add Downloadable to __init__ and __all__

* Fix ImportError for Python 3.7

* Related pages

* Improving docs

* Some speed

* staticmethod to classmethod
This commit is contained in:
Gabben 2020-05-27 03:25:13 +05:00 committed by GitHub
parent 28382ebf5f
commit de3c5c1a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 460 additions and 89 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)