Commit graph

1640 commits

Author SHA1 Message Date
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
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
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
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
barbashovtd
bccfca7cae
Project typos fix (#691)
* Fixed typo in fields.py

* Update fields.py

* Whole project typos fix
2021-11-08 23:28:30 +02:00
Fenicu
64393048dd
custom filter for filters_factory example (#688)
* custom filter for filters_factory example

* Shortened the code

* added new example of filter registration

* simplifying Filters and more handlers

* upgrade example

* black reformat
2021-11-07 02:49:31 +02:00
Alex Root Junior
720a5451b7 Fixed fixture 2021-11-07 01:47:04 +02:00
Alex Root Junior
c00005f41a Update dependencies in setup.py 2021-11-07 01:44:13 +02:00
Alex Root Junior
b190bbba19
Dev 2.x api 5.4 (#741)
* Added support of Bot API 5.4

* Bump version

* Added aliases for ChatJoinRequest object

* Create aiohttp session inside async function

* Try to fix compatibility with aiohttp 3.8

* Fixed compatibility with Python 3.10
2021-11-07 01:39:51 +02:00
darksidecat
b98ec3efad
add Bot.download_file aliases ability to save files to a directory and automatically create directories (#694)
* add destination_dir and make_dirs parameters to bot download aliases

* add the ability to save files to a directory with path completion based on file_path,
* add an option to automatically create directories in the file path

* Downloadable mixin uses directory creation parameter in bot methods
2021-11-07 01:28:12 +02:00
Ramzan Bekbulatov
204a2a1ec0
enh: change invisible symbol in hide_link (#738)
There is a problem with the current symbol on android devices. When trying to change the text of a post in a channel, the hidden link often disappeared when editing. Word joiner symbol seems to be more stable in this case.

https://en.wikipedia.org/wiki/Word_joiner
2021-11-07 01:26:59 +02:00
Ramzan Bekbulatov
57aea755a2
enh: remove unnecessarily strict condition in send_media_group (#742)
* enh: remove unneccesarily strict condition in send_media_group

* enh: return check but less strict

* fix: remove trailing whitespace
2021-11-07 01:24:05 +02:00
Gabben
a57f9cfc70
Fixed send_copy: added caption to send_voice (#722) 2021-10-09 20:22:06 +03:00
Oleg A
100848b889
chore: reuse json util #712 (#713) 2021-10-06 00:59:43 +03:00
Oleg A
daf085ff9e
chore: show callback_query.data in logging (#714) 2021-10-06 00:59:04 +03:00
Alex Root Junior
e5cce6edf8 Bump version 2021-09-19 12:38:06 +03:00
darksidecat
358ecc7821
Fix #665, add separate parametrs for saving to directory and file (#677)
* close #665

* add backward compatibility

* improve doc, codestyle

* warning text update

* use tmpdir fixture in tests
2021-09-06 00:05:52 +03:00
Oleg A
82b1b1ab03
fix: decode aioredis v2 responses (#675) 2021-09-05 23:48:38 +03:00
Andrew
adaa21c0cc
Add type hints to url & get_mention in User (#679) 2021-09-05 23:47:12 +03:00
Oleg A
3ee28281c4
RedisStorage major fixes + tests updates (#676)
* fix: redis async close

* fix: redis adapter async close

* fix: aioredis pytest update

* fix: tests remove unused old_storage mark

* fix: tests remove redundant linebreak

* fix: tests remove redundant s.redis call
2021-09-05 23:46:50 +03:00
Sina Ebrahimi
c89bf6fbf8
Fix: get the left-most ip when there is multiple (#673)
X-Forwarded-For: <client>, <proxy1>, <proxy2>
get the <client> part when there is multiple proxies or load balancers
2021-08-25 22:28:38 +03:00