Commit graph

1692 commits

Author SHA1 Message Date
Alex Root Junior
707988bf03
Added all new API methods 2022-11-06 03:54:16 +02:00
Alex Root Junior
93a425f528
Added native support of MagicFilter 2022-11-06 01:10:32 +02:00
KatantDev
27dea25c52
Added support for topics in Bot API 6.3 (#1061)
* Added support for topics in Bot API 6.3

* Added the field can_manage_topics

* Added new classes for topics

* Added is_forum field to Chat class

Co-authored-by: katant <katantdev@mail.ru>
2022-11-06 00:51:42 +02:00
Evgen Fil
8604ab7cd0
Add aiogram version field to feature request template (#1040)
* Add `aiogram version` field to feature request template

* Change `version` field type to dropdown
2022-10-23 01:24:15 +03:00
Dmitriprank
46909f4a29
Added missing params to chat shortcut functions create_invite_link, edit_invite_link (#1026) 2022-10-22 00:31:09 +03:00
Alex Root Junior
6bde23109b
Bump version 2022-10-02 20:00:07 +03:00
Andrew
d925ebf411
Refactor annotation style in handler.py | [Rework handler once (rejected)] (#996)
* Changed type annotation style to `typing.*` in dispatcher\handler.py

* Added a new argument `once` to the error handler registration that decides whether the following callback notifications should be made after a successful callback notification before in loop

* Revert "Added a new argument `once` to the error handler registration that decides whether the following callback notifications should be made after a successful callback notification before in loop"

This reverts commit 09448f1b71.
2022-10-02 19:49:43 +03:00
Andrew
4e78ce155b
Add field can_manage_video_chats to ChatMemberOwner (#1003)
* Add field `can_manage_video_chats` to ChatMemberOwner

* Add renamed_argument decorator

* Revert "Add renamed_argument decorator"

This reverts commit fecfa10928.

* Add new field to CHAT_MEMBER in dataset.py
2022-09-25 00:15:09 +03:00
Anton Zhukovskyi
95529aef18
update year range in license (#1001) 2022-09-18 17:00:42 +03:00
ENCRYPTED
95dc3fc533
Fixed get_custom_emoji_stickers method (#1002)
* Fixed possible incorrect escaping of list[str].

By default if you call str() on collection python will escape strings inside of it using single quotes, which will cause "Can't parse custom emoji identifiers json object" error when calling getCustomEmojiStickers.
json.dumps() escapes strings by double quotes so no error occurs.

* get_custom_emoji_stickers docstring fix

* Revert compose_data changes

* Correctly fixed get_custom_emoji_stickers method
2022-09-18 16:59:25 +03:00
Oleg A
e065285857
fix: recover tests (#1004)
- applied pytest_async;
- fixed requirements;
- minor typos;
2022-09-18 15:32:42 +03:00
Nikita
96ebee26e4
Refactor: inline keboard row (#980)
* Refactor: just removed some bad code...

* Fix: tuple to list

* FIx: type error

* Update aiogram/types/inline_keyboard.py

Co-authored-by: Evgen Fil <evgfilim1@yandex.ru>

Co-authored-by: Evgen Fil <evgfilim1@yandex.ru>
2022-08-30 01:24:50 +03:00
Nikita Sychev
87a8b50949
Add IDFilter support for ChatJoinRequest events (#983) 2022-08-30 01:24:22 +03:00
Alex Root Junior
7214ba2f4b
Update README.md 2022-08-24 00:41:42 +03:00
Alex Root Junior
4aba5b194d
Update README.rst 2022-08-24 00:40:13 +03:00
Alex Root Junior
4519b37fc8
Bump version 2022-08-14 18:31:04 +03:00
Alex Root Junior
a0b5aa299d
Merge branch 'dev-2.x' 2022-08-14 18:30:42 +03:00
Andrey Tikhonov
c43ff9b6f9
Patch 2 (#977)
* Fix filtering skip_patterns

* cache skip actions

* fix item' is not defined, add tests
2022-08-14 18:29:35 +03:00
Alex Root Junior
92ea40c9f9
Merge branch 'dev-2.x' 2022-08-13 23:50:47 +03:00
Andrey Tikhonov
d5654068b1
Fix filtering skip_patterns (#868)
* Fix filtering skip_patterns

* cache skip actions
2022-08-13 23:49:23 +03:00
Dmitry
016a8d3c6c
Update mongo.py (#857)
TypeError: to_list() missing 1 required positional argument: 'length'
2022-08-13 23:47:02 +03:00
Юрий
a852b95596
add protect content global default (#917) 2022-08-13 23:44:59 +03:00
Юрий
65475cab98
command filter now can be sets with BotCommand object (#935)
* command filter now can be sets with BotCommand object instead of or together with plain strings

* CR fix: fix isinstance

* CR fix: add tests, fix union

* CR fix: add isinstance check

* CR fix: add isinstance check

* CR fix: add forgotten format

* CR fix: bugfix with type guard

* CR fix: fix function names, replace map to generator comprehension
2022-08-13 23:43:55 +03:00
DeMax
862cbbd1e6
Added constructor for ChatAdministratorRights (#964) 2022-08-13 23:41:46 +03:00
Alex Root Junior
e7b58e4938
Added decorations for custom emoji (suppressed on server side) 2022-08-13 23:38:38 +03:00
Alex Root Junior
11d2e6f31a
Added full support of Bot API 6.2 2022-08-13 23:01:10 +03:00
Drak Lowell
a697a9d5cc
Change set_data to set_bucket in reset_bucket (#970) (#1) (#971) 2022-08-06 07:18:01 +03:00
Evgen Fil
c6a3ee0384
Split "Context" textarea field into several required input fields (#962) 2022-07-23 21:27:22 +03:00
Evgen Fil
b3263f9d6b
Improve issue and pull request templates (#947)
Start using forms instead of templates
2022-06-26 16:27:42 +03:00
Evgen Fil
b5100587e6
Automatically put 2.x label on new pull requests to dev-2.x (#939) 2022-06-25 22:32:28 +03:00
Владислав
df23d4fd59
Update Telegram Bot API shield version in README.md (#934) 2022-06-24 11:58:29 +03:00
Alex Root Junior
53db684dac
Merge branch 'dev-2.x' 2022-06-22 01:42:59 +03:00
Alex Root Junior
6e6c737583
Remove bad file 2022-06-22 01:42:47 +03:00
Alex Root Junior
a834ae5dd2
Merge branch 'dev-2.x' 2022-06-22 01:09:57 +03:00
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