Commit graph

1708 commits

Author SHA1 Message Date
Alex Root Junior
cdb6e2b7df
Bump version 2022-06-22 01:08:53 +03:00
ENCRYPTED
c289da35c3
Added from_id property to Message (#899) 2022-06-22 01:04:47 +03:00
Abror Maksudov
1ced320a19
make ChatTypeFilter work with inline queries (#915)
* make ChatTypeFilter work with inline queries

* add condition when call.message is none
2022-06-22 01:03:44 +03:00
ZharkovMihail
ce5077876b
fix unregister handlers (#932) 2022-06-22 01:02:23 +03:00
Alex Root Junior
3b66a2b2e0
Added full support of Telegram Bot API 6.1;
Ported web-app utils;
Deprecated emoji module;
2022-06-22 00:59:49 +03:00
Andrew
7940613ec0
Rework warning for not defined fields (#931) 2022-06-21 03:26:17 +03:00
Юрий
a0fb37a54d
Add protect_content to webhook responses (#804)
* fixed type hints of callback_data

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

* add protect_content param to all supported webhook responses
2022-06-02 14:51:17 +03:00
Alex Filiov
8d58ed909d
fix Dispatcher.release_key (#908)
del bucker['key'] raises KeyError: 'key'
2022-05-14 17:01:32 +03:00
Aryn
bad6d8613a
Fix datetime serialization error on Windows (#880)
* fix #349

* fix #349 (2)
2022-04-24 04:01:14 +03:00
Alex Root Junior
0e7a9006b3
Merge branch 'dev-2.x' 2022-04-16 18:13:36 +03:00
Alex Root Junior
0e2beb24c2
Added support of Telegram BOt API 6.0 2022-04-16 18:09:58 +03:00
Wendirad Demelash
51d3ad7d94
Fix indentation for ban_chat_member function doc string (#867)
* Added classifier for Python 3.10

* Fix indentation for `ban_chat_member` function doc string

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2022-03-26 17:23:35 +02:00
Vishwa Kumaresh
613cfb8df0
fix: setup.py (#856)
Changed requires_python to python_requires
2022-03-05 02:34:53 +02:00
viuipan
fe48a4a014
fix issue 812 (#843) 2022-03-02 01:04:47 +02:00
Alex Root Junior
4a4eb51bd4
Changed skip updates method (#842) 2022-02-20 17:11:04 +02:00
Grigory Statsenko
bb1c774bcc
Add support for custom kwargs for AsyncIOMotorClient in MongoStorage (#831) 2022-02-13 14:56:15 +02:00
Oleg A
24e933bdde
Fix: default parent for __setitem__ (#806)
* fix: self is default parent

* chore: mv bot fixture

* chore: add update_chat test

* fix: string CHAT_PHOTO data
2022-02-08 02:30:41 +02:00
Oleg A
b39672f9b6
[2.x] Don't save error as a file (#813)
* fix: don't save error as file

Raise an aiohttp.ClientResponseError if the response status is 400 or higher

#799

* fix tests

Co-authored-by: darksidecat <58224121+darksidecat@users.noreply.github.com>
2022-02-08 02:29:53 +02:00
He
3731a62885
Deleting deprecated CHOSEN_INLINE_QUERY (#805)
* Deleting deprecated CHOSEN_INLINE_QUERY

* Del from comments CHOSEN_INLINE_QUERY
2022-02-08 02:25:15 +02:00
Alex Root Junior
ef23b79ad7
Merge branch 'dev-2.x' 2022-02-01 02:21:35 +02:00
Alex Root Junior
bb7b299b9d
Updated to Bot API 5.7 (#824)
* Updated to Bot API 5.7

* Updated to Bot API 5.7

Signed-off-by: Alex Root Junior <jroot.junior@gmail.com>
2022-02-01 02:20:39 +02:00
Gabben
b545a5ff2e
Use hardcoded token as in the other examples (#809) 2022-01-26 23:25:40 +02:00
Max Smirnov
dd4cc7fbbb
Remove unnecessary Optionals (#818) 2022-01-26 20:25:11 +02:00
Kostiantyn Kriuchkov
c77691d668
Fixed to Bot API documentation in docstring (#820) 2022-01-26 20:24:38 +02:00
Oleg A
4d2d811386
docs: bot API version update (#802) 2022-01-03 01:36:44 +05:00
Oleg A
96654b7266
Merge pull request #695 from samuelfirst/global_disable_web_page_preview_parameter
Global disable web page preview parameter
2022-01-02 23:00:22 +03:00
Ramzan Bekbulatov
a0510b33b9
Remove unused code from fsm.py (#780) 2022-01-03 00:03:07 +05:00
Oleg A
61fe788355
Merge pull request #801 from aiogram/dev-2.x-api-5.6
Bot API v5.6 support
2022-01-02 21:59:34 +03:00
samuelfirst
859876bed1 Use global disable_web_page_preview in SendMessage and EditMessageText classes 2022-01-02 19:49:54 +03:00
samuelfirst
2b1c72c08c Use global disable_web_page_preview in InputTextMessageContent 2022-01-02 19:49:54 +03:00
samuelfirst
301a43e26b Set default disable_web_page_preview 2022-01-02 19:49:54 +03:00
Oleg A
ce8976c33f Merge remote-tracking branch 'origin/dev-2.x-api-5.6' into dev-2.x-api-5.6 2022-01-01 22:59:26 +03:00
Oleg A
5cb7ecd4b2 chore: add <tg-spoiler/> tag 2022-01-01 22:59:18 +03:00
Oleg A
c0e8aa34c6
chore: remove redundant part of version
Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2022-01-01 14:41:40 +03:00
Oleg A
c61410b526 fix: add span to MD_SYMBOLS 2022-01-01 13:14:15 +03:00
Oleg A
6b15b19777 feat: add protect to shortcuts 2021-12-31 01:19:45 +03:00
Oleg A
61ef1cc14f style: reorder methods similar to docs 2021-12-31 00:49:47 +03:00
Oleg A
1e86ec0643 feat: add spoiler entities 2021-12-30 16:45:33 +03:00
Oleg A
e0ecbc4ec9 feat: add protect_content param 2021-12-30 16:26:31 +03:00
Oleg A
3d30581657 docs: bump tg api version 2021-12-30 16:07:09 +03:00
Oleg A
583f00ce31
feat: TelegramObject readable representation (#796) 2021-12-29 03:38:37 +02:00
ульба
763efb7763
Missing space (#775) 2021-12-11 01:00:09 +02:00
Alex Root Junior
c3cc890230 Merge branch 'dev-2.x' 2021-12-09 02:07:37 +02:00
Alex Root Junior
dea94d2574 Bump version, added Python 3.10 classifier 2021-12-09 02:06:23 +02:00
Oleg A
3b93f337d1
Telegram API silent update (#772)
* fix: silent update

Special thanks for @levlam for silent Telegram API updates with removing fields.

* chore: add removed_argument deprecation

* Mark removed argument in method alias

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-12-09 02:00:51 +02:00
abdullaev388
2ece1ba140
Removed legacy code (markdown v1) (#771) 2021-12-09 01:52:54 +02:00
Alex Root Junior
3487658e33 Merge branch 'dev-2.x' 2021-12-07 20:07:53 +02:00
Oleg A
910e4d7784
Bot API 5.5 (#768)
* chore: bump version 5.5

* feat: add banChatSenderChat and unbanChatSenderChat

Added the methods banChatSenderChat and unbanChatSenderChat for banning and unbanning channel chats in supergroups and channels.

* feat: add has_private_forwards

Added the field has_private_forwards to the class Chat for private chats, which can be used to check the possibility of mentioning the user by their ID.

* feat: add has_protected_content

Added the field has_protected_content to the classes Chat and Message.

* feat: add is_automatic_forward

Added the field is_automatic_forward to the class Message.

* feat: add shortcuts

Added Chat.ban_sender_chat() and Chat.unban_sender_chat() shortcuts.

* docs: add new methods Source
2021-12-07 20:03:13 +02:00
Oleg A
5bcbcedeba
fix: header values must be str instances (#765)
#762
2021-12-07 00:41:07 +02:00
Cyril Margorin
d646e19852
Fix fsmcontextproxy update (#755)
* Create test case for invalid 'FSMContextProxy.update()' function

* Fix invalid 'FSMContextProxy.update()' function

* Verify that written data has been stored and read back correctly
2021-12-01 02:43:12 +02:00