Mykola Solodukha
23630e24cc
Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x
2020-10-16 20:47:14 +03:00
Mykola Solodukha
433fe19bc6
✨ Ability to update data dict from middlewares returns
2020-10-16 20:47:01 +03:00
Mykola Solodukha
0d3b0c4e43
✨ Ability to update data dict from middlewares returns
2020-10-16 20:00:19 +03:00
Mykola Solodukha
4e82865f45
Merge branch 'dev-2.x' of github.com:aiogram/aiogram into dev-2.x
2020-10-16 19:47:32 +03:00
Oleg A
ad1bab9aed
#429 added disable_web_page_preview for Message.send_copy(...) ( #430 )
2020-09-26 16:02:21 +03:00
Ramzan Bekbulatov
0bd2c7b473
new: add exceptions ( #427 )
...
* new: add FileIsTooBig exception
* new: add MessageCantBeForwarded exception
2020-09-26 16:02:21 +03:00
Alex Root Junior
41cd4c5a45
Update docs
2020-09-26 16:02:21 +03:00
Oleg A
1e2fe72aca
#429 added disable_web_page_preview for Message.send_copy(...) ( #430 )
2020-09-26 15:22:52 +03:00
Ramzan Bekbulatov
41c104bb57
new: add exceptions ( #427 )
...
* new: add FileIsTooBig exception
* new: add MessageCantBeForwarded exception
2020-09-26 15:22:23 +03:00
Alex Root Junior
7b33e5c68a
Update docs
2020-09-14 22:56:11 +03:00
Martin Winks
a2e046f809
hotfix(dispatcher): prop DP.loop may be None, executor and webhook view should respect that ( #424 )
2020-09-14 18:59:32 +03:00
Alex Root Junior
ab1a6ce67b
Bump version
2020-09-14 18:59:32 +03:00
Martin Winks
0e7920e7a2
fix(bot,dispatcher): do not use _MainThread event loop ( #397 )
...
* fix(bot,dispatcher): do not use _MainThread event loop on ::Bot, ::Dispatcher initializations
* fix: use more generic get approach
* docs: comments
* chore(task): asyncio.create_task comes with py3.7
* fix(dispatcher): todo
2020-09-14 18:59:32 +03:00
Alex Root Junior
ac1004b211
Fix italic and underline decorations
2020-09-14 18:59:32 +03:00
Alex Root Junior
5aab097009
Fix syntax error
2020-09-14 18:59:32 +03:00
Ramzan Bekbulatov
a14ce71ab5
Add is_forward method to Message ( #390 )
...
* new: add is_forward method to Message
* enh: add return types to Message methods
* fix: docs typo
* ref: make command methods closer
2020-09-14 18:59:32 +03:00
Ramzan Bekbulatov
e64edddca8
Add missed ChatPermissions to __all__ ( #393 )
...
* new: add missed ChatPermissions to __all__
* ref: standardize all __all__
2020-09-14 18:59:32 +03:00
Ramzan Bekbulatov
a420934266
Add is_chat_creator method to ChatMemberStatus ( #394 )
...
* new: add is_chat_creator method to ChatMemberStatus
* enh: use tuples instead of lists for some checks
2020-09-14 18:59:32 +03:00
Ramzan Bekbulatov
075d8be72d
Add missed emoji argument to reply_dice ( #395 )
...
* fix: add missed emoji argument to reply_dice
* ref: order arguments for send_dice
2020-09-14 18:59:32 +03:00
Martin Winks
1f91f60454
docs(readme): prettify readme, update downloads stats badge ( #406 )
...
* docs(readme): prettify readme, update downloads stats badge
* chore(readme): describe steps for minimal code
* chore(rme): remove comma etc
Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
* chore(rme): add heading for details/summary blocks
* Update README.md
Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-14 18:59:32 +03:00
Юрий
bb4f66a1e5
fixed type hints of callback_data ( #400 )
...
its impotant to remeber all data saved in callback_data is text even if you pass to it integer
insofar as newbies often copy examples and modyfy this typing may help them make no mistake
2020-09-14 18:59:32 +03:00
lyteloli
068952fd3f
Fixed usage of deprecated is_private function ( #421 )
...
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-14 18:59:32 +03:00
Gabben
ccff874bd1
add missing attributes ( #422 )
...
https://core.telegram.org/bots/api#animation
2020-09-14 18:59:31 +03:00
Daneel L
b1715c7ac2
comment of RedisStorage2 fix ( #423 )
2020-09-14 18:59:31 +03:00
Martin Winks
b6f774cbc7
hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term ( #415 )
...
* hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term
* feat(utils): deprecated descriptor
deprecate CHOSEN_INLINE_QUERY and always return CHOSEN_INLINE_RESULT instead of incorrect value
* fix(tests): remove example from test
* fix(utils): use stacklevel=3
level on which descriptor is being called
2020-09-14 18:59:31 +03:00
Lamroy95
c621dd7a6b
Fixed docs Quick start page code blocks ( #417 )
2020-09-14 18:59:31 +03:00
Oleg A
6399741b51
I18n example patch (added docs and fixed typos) ( #419 )
...
* Update i18n example
1. Replaced one file translation to all project folder translation. It's more usable case.
2. `For e.g.` --> `E.g.`. E.g. is short for `exempli gratia` which means simply “for example.” So if you write for e.g., you are in effect writing `for for example`.
3. `xargs` replased with serveral lines, `xargs` is not appliable for Microsoft Windows users.
4. Added info about translation tools.
5. Minor edits.
* i18n middlaware typo fix
* i18n example header typo fix
2020-09-14 18:59:31 +03:00
Oleg A
2bc0801bc4
fixed CallbackQuery.answer() returns nothing ( #420 )
2020-09-14 18:59:31 +03:00
unintended
b28eb3fb3c
Fix #413 parse entities positioning ( #414 )
...
* fix entity positioning in parse_entities() #413
* add tests and small fixes
2020-09-14 18:59:31 +03:00
Daniil Kovalenko
b353770589
Fix HTML characters escaping ( #409 )
...
html.escape replaces " and ' characters by default, but it's not required by Telegram and causes unexpected behavior, quote=False argument fixes that.
2020-09-14 18:59:31 +03:00
Martin Winks
1c9539f246
fix(handlerObj): fix parameter-spec solving ( #408 )
2020-09-14 18:59:31 +03:00
Forden
8e3ab6b862
Add exception MessageToPinNotFound ( #404 )
2020-09-14 18:59:31 +03:00
Forden
c66f532060
Patch 1 ( #398 )
...
* Update callback_data_factory.py
* Update callback_data_factory_simple.py
2020-09-14 18:59:31 +03:00
Martin Winks
7c65344dcd
hotfix(dispatcher): prop DP.loop may be None, executor and webhook view should respect that ( #424 )
2020-09-14 14:44:18 +03:00
Alex Root Junior
369bff422a
Bump version
2020-09-13 23:13:27 +03:00
Alex Root Junior
ff654c014c
Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x
2020-09-13 22:56:51 +03:00
Alex Root Junior
84785e4880
Fix italic and underline decorations
2020-09-13 22:56:32 +03:00
Martin Winks
c99b165668
fix(bot,dispatcher): do not use _MainThread event loop ( #397 )
...
* fix(bot,dispatcher): do not use _MainThread event loop on ::Bot, ::Dispatcher initializations
* fix: use more generic get approach
* docs: comments
* chore(task): asyncio.create_task comes with py3.7
* fix(dispatcher): todo
2020-09-13 22:42:21 +03:00
Alex Root Junior
7d1c8c42d3
Fix syntax error
2020-09-13 22:27:50 +03:00
Ramzan Bekbulatov
0cc6a2c8f6
Add is_forward method to Message ( #390 )
...
* new: add is_forward method to Message
* enh: add return types to Message methods
* fix: docs typo
* ref: make command methods closer
2020-09-13 22:15:07 +03:00
Ramzan Bekbulatov
5b40a2b8cf
Add missed ChatPermissions to __all__ ( #393 )
...
* new: add missed ChatPermissions to __all__
* ref: standardize all __all__
2020-09-13 22:14:33 +03:00
Ramzan Bekbulatov
7f053412bf
Add is_chat_creator method to ChatMemberStatus ( #394 )
...
* new: add is_chat_creator method to ChatMemberStatus
* enh: use tuples instead of lists for some checks
2020-09-13 22:14:01 +03:00
Ramzan Bekbulatov
f926d80ba2
Add missed emoji argument to reply_dice ( #395 )
...
* fix: add missed emoji argument to reply_dice
* ref: order arguments for send_dice
2020-09-13 22:13:15 +03:00
Martin Winks
60fe0931a7
docs(readme): prettify readme, update downloads stats badge ( #406 )
...
* docs(readme): prettify readme, update downloads stats badge
* chore(readme): describe steps for minimal code
* chore(rme): remove comma etc
Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
* chore(rme): add heading for details/summary blocks
* Update README.md
Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-13 22:11:27 +03:00
Юрий
00202565e4
fixed type hints of callback_data ( #400 )
...
its impotant to remeber all data saved in callback_data is text even if you pass to it integer
insofar as newbies often copy examples and modyfy this typing may help them make no mistake
2020-09-13 22:09:43 +03:00
lyteloli
51547f9745
Fixed usage of deprecated is_private function ( #421 )
...
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-13 22:08:55 +03:00
Gabben
a936465f42
add missing attributes ( #422 )
...
https://core.telegram.org/bots/api#animation
2020-09-13 22:07:29 +03:00
Daneel L
fce48e3127
comment of RedisStorage2 fix ( #423 )
2020-09-13 22:07:14 +03:00
Martin Winks
a529619d79
hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term ( #415 )
...
* hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term
* feat(utils): deprecated descriptor
deprecate CHOSEN_INLINE_QUERY and always return CHOSEN_INLINE_RESULT instead of incorrect value
* fix(tests): remove example from test
* fix(utils): use stacklevel=3
level on which descriptor is being called
2020-09-10 22:34:20 +03:00
Lamroy95
fc5ccc9d5a
Fixed docs Quick start page code blocks ( #417 )
2020-09-10 22:33:25 +03:00