Commit graph

1708 commits

Author SHA1 Message Date
Alex Root Junior
88baf0b582
Bump version 2023-02-05 00:43:53 +02:00
tg:@mars_hall
83a6b03114
adapt ChatPermissions for Bot API 6.5 (#1113)
* adapt ChatPermissions for Bot API 6.5

* Update aiogram/types/chat_permissions.py

---------

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2023-02-04 19:54:51 +02:00
Oleg A
598ecdb588
Telegram API 6.5 (#1111)
* docs: telegram api version bump

* feat: add KeyboardButtonRequestUser and KeyboardButtonRequestChat

* feat: added the classes UserShared, ChatShared

* feat: added the parameter use_independent_chat_permissions

* fix: permissions field is mandatory for restrictChatMember

* feat: added the field user_chat_id

* feat: replaced the fields can_send_media_messages

* docs: add comment with replacement

* Update types/__init__.py

* Added new content types

* Fixed types

---------

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2023-02-04 02:29:40 +02:00
Alex Root Junior
69c9ecb7e0
Added is_persistent to InlineKeyboardMarkup constructor 2022-12-31 01:15:19 +02:00
Alex Root Junior
6e70371c14
Added full support of Bot API 6.4 2022-12-31 00:10:51 +02:00
Dmitry Anfimov
64eb41db96
Fix warning about asyncio marker (#1078) 2022-12-30 22:48:53 +02:00
gnifajio
491c2ca677
BugFix in chat.promote (#1082) 2022-12-30 22:48:22 +02:00
Oleg A
ae534298e5
Migrate from aioredis to redis.asyncio (#1074)
* chore: migrate from aioredis to redis.asyncio

* chore: add tests for RedisStorage2
2022-12-04 03:08:26 +02:00
Dmitriprank
87c0458d95
Dev 2.x chat_type filter fix (#1027)
* Added missing params to chat shortcut functions create_invite_link, edit_invite_link

* Added missing ChatJoinRequest to check function of a ChatTypeFilter
2022-11-08 00:08:36 +02:00
Alex Root Junior
98ae85110d
Bump version 2022-11-06 10:01:36 +02:00
Alex Root Junior
1ec5db3e6a
Fixed dependencies 2022-11-06 09:55:36 +02:00
KatantDev
2e60f9fad6
Fix for groups without topics (#1062)
* Added check for is_topic_message

* Added check for is_topic_message

* Added check for is_topic_message

* Added check for is_topic_message

Co-authored-by: katant <katantdev@mail.ru>
2022-11-06 09:39:44 +02:00
Alex Root Junior
3b3f2fc9c5
Update README title 2022-11-06 04:39:42 +02:00
Alex Root Junior
65f08902f4
Bump requirements 2022-11-06 04:37:46 +02:00
Alex Root Junior
1243dd9861
Update version 2022-11-06 04:23:44 +02:00
Butvin Mihail
19e97de8cb
Fix Handler unregister (#1050)
Add checking for handler_obj.handler
2022-11-06 03:55:23 +02:00
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