Commit graph

1708 commits

Author SHA1 Message Date
Alex Root Junior
88e3d0503d Merge branch 'dev-2.x' 2021-04-28 23:41:20 +03:00
Alex Root Junior
d5a4c0c4af Bump version 2021-04-28 23:41:07 +03:00
Alex Root Junior
f3f2844d75 Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x 2021-04-28 23:39:45 +03:00
Alex Root Junior
1f57a40c45 Correctly use provider_data argument 2021-04-28 23:39:36 +03:00
Googleplex
35bf18cf5a
fix: builtin command filter args (#556) (#558)
* fix: builtin command filter args

* fix: use string for command arguments

* fix: text property of command object

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

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-04-28 23:37:59 +03:00
Oleg A
4120408aa3
Set state via storage (#542)
* refactor: simplified check_address (removed redundant states check)

* refactor: FSM resolve_state become public, removed redundant elif

* fix: resolve `filters.State` on `set_state`

* refactor: moved state resolution to storage

* fix: return default state on get_state
2021-04-28 01:28:53 +03:00
Oleg A
ba095f0b9f
i18n get_locale without User (#546)
* fix: #544 return locale None if User is absent

* fix: #544 fixed typing

* fix: #544 User is Optional

* style: minor docs styling

* fix: explicit None return + typing

* fix: typing
2021-04-28 01:28:34 +03:00
darksidecat
75e88f173c
Closes #548 (#549)
Bot.create_chat_invite_link()
Bot.edit_chat_invite_link()
Bot.revoke_chat_invite_link()

need to return types.ChatInviteLink, not dict
2021-04-28 01:25:31 +03:00
Oleg A
08f0635afe
Deep linking util fix (#569)
* fix: deep linking util fixed and refactored

* fix: wrong payload split

* feat: check payload length
2021-04-28 01:24:34 +03:00
Oleg A
ea28e2a77a
Telegram API 5.2 support (#572)
* feat: version number update

* feat: add InputInvoiceMessageContent type

* refactor: every param on a new line

* feat: add `max_tip_amount` and `suggested_tip_amounts` to `sendInvoice`

* feat: `start_parameter` of `sendInvoice` became optional

* refactor: reorder params

* feat: add `chat_type` to `InlineQuery`

* feat: add `VoiceChatScheduled`

* feat: add `voice_chat_scheduled` to `Message`

* fix: sendChatAction documentation update

* feat: add `record_voice` and `upload_voice` to `ChatActions`

* feat: allow sending invoices to group, supergroup and channel
2021-04-28 01:22:57 +03:00
nthacks
cce29ba532
Update documented caption limits to the current limit. (#565) 2021-04-19 01:29:07 +03:00
Dmitriy
df294e579f
Replace deprecated 'is_private' method (#553) 2021-04-12 10:24:13 +03:00
Alex Root Junior
69e4ecc606 #564: Added possibility to use allowed_updates argument in Polling mode 2021-04-12 00:32:40 +03:00
Oleg A
79c59b34f9
Fixed example description (#545) 2021-03-27 14:09:08 +02:00
Alex Root Junior
58c7da9dc2 Merge branch 'dev-2.x' 2021-03-22 22:02:09 +02:00
Alex Root Junior
15a6e94135 Bump version 2021-03-22 22:01:44 +02:00
Ramzan Bekbulatov
e2273e6c31
new: add mime types parsing (#431) 2021-03-21 09:41:03 +02:00
Andrew
b0f2fe3ed4
FIX TelegramObject.__setitem__ (#532)
* FIX TelegramObject.__setitem__
Removed 'raise KeyError(key)'

* Add warning and log in TelegramObject.__setitem__
When Telegram adds a new field -> Aiogram will warn about this.

* Removed warnings.warn

* Set logger to 'aiogram'

* Removed 'f' before string
2021-03-21 09:37:00 +02:00
Oleg A
ee0ceee704
feat: delete_message shortcut for Chat (#526) 2021-03-20 19:57:07 +02:00
Daniil Kovalenko
eed147e2e3
Add MediaGroup Filter (#528)
* Add MediaGroupFilter

* Update __init__.py

* Register MediaGroupFilter

* Update docs

* Fix a typo
2021-03-20 19:52:35 +02:00
JWSong
7cce8b6397
Removed redundant definitions (#531)
This closes #456.

Co-authored-by: Jungwoo Song <jungwoo.song1@gmail.com>
2021-03-20 19:51:32 +02:00
Alex Root Junior
b287a9f5f5
Update FUNDING.yml 2021-03-20 19:37:39 +02:00
Aleksandr
901270449f
Changed ChatType from CHANNEL to SUPERGROUP to avoid confusion (#533)
Channels require a separate channel_post_handler, so this example is currently broken and confusing
2021-03-20 19:23:30 +02:00
Oleg A
c153d681fb
fix: add Chat.message_auto_delete_time field (#535) 2021-03-20 16:49:17 +02:00
Aleksandr
5715e4466f
Added alias to from_user field, fixed TypeError (#527) 2021-03-17 14:28:42 +02:00
Alex Root Junior
45480890ae Merge branch 'dev-2.x' 2021-03-14 21:36:38 +02:00
Alex Root Junior
cce3a5fbd0 Bump badge 2021-03-14 21:36:18 +02:00
monte-monte
8612a64b3c
Update builtin.py (#510)
* Update builtin.py

In StateFilter check if object is CallbackQuery because it has different structure compared to simple message. This change prevents https://github.com/aiogram/aiogram/issues/508 bug.

* Update aiogram/dispatcher/filters/builtin.py

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-03-14 20:40:52 +02:00
Stefan
6c423d2b92
Update safe_split_text function, added split_separator param (#515)
Co-authored-by: Stefan Vasilenko <sv@nuts-agency.ru>
2021-03-14 20:39:29 +02:00
Alex Root Junior
76955bf8f1 Fixed optional arguments in new methods (API 5.1) 2021-03-14 20:17:40 +02:00
Alex Root Junior
cd047e8d01 Removed deprecation warning from Message.send_copy 2021-03-14 18:27:38 +02:00
Egor
b2b7ddb639
feat: an example of intergration between externally created Application and dispatcher (#433)
* feat: an example of intergration between externally created Application and dispatcher

* fix: imports

* chore: fix EOF

* chore: fix comment
2021-03-14 18:20:37 +02:00
Andrew
9bb3a5dccf
ADD Exceptions: (#512)
* CantRestrictChatOwner
* UserIsAnAdministratorOfTheChat
2021-03-14 18:14:40 +02:00
Daniil Kovalenko
5254329c2b
Fix types.MediaGroup methods (#514) 2021-03-14 18:13:57 +02:00
Fenicu
d9de799479
Add new types in message.send_copy method (#511) 2021-03-14 18:11:48 +02:00
darksidecat
5b1bed7942
fix bug in getting user_id, chat_id from context (#520)
* fix bug in getting user_id, chat_id from context (need User.id for future use, not User object)

* requested changes: get current() can return None

add check this case
2021-03-14 18:10:40 +02:00
Arseniy Kulikov
1354f8d58c
added answer_chat_action() method for types.Message (#501) 2021-03-14 18:06:55 +02:00
Oleg A
24fb07d3fe
Bot API 5.1 (#519)
* version update

* added ChatMemberUpdated class

* added ChatInviteLink class

* 2.x version update

* update types added

* added methods createChatInviteLink,  editChatInviteLink,  revokeChatInviteLink

* Voice Chat types added

* added Message fields: voice_chat_started, voice_chat_ended, voice_chat_participants_invited

* can_manage_voice_chats added

* chat links shortcuts added

* bowling dice support

* reordered ChatMembers params (no changes)

* Added can_manage_chat to the class ChatMember and parameter can_manage_chat to the method promoteChatMember

* kick_chat_member refactored + docs update

* Added the parameter revoke_messages to the method kickChatMember

* updated kick_chat_member shortcut for Chat

* Added the type MessageAutoDeleteTimerChanged and the field message_auto_delete_timer_changed to the class Message

* feat: add methods to register my_chat_member and chat_member handlers

* Updated filters for new event types

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-03-14 18:05:17 +02:00
Alex Root Junior
75222b8af0 #516: Fix updating chat 2021-03-07 15:27:41 +02:00
evgfilim1
9de257efec
Merge pull request #497 from TrDex/dev-2.x
Add ability to `.answer_*` and `.reply_*` live location
2021-02-20 06:48:05 +05:00
evgfilim1
675bd1c53f
Merge pull request #504 from luck20yan/patch-1
Update examples/chat_type_filter.py
2021-02-20 06:46:43 +05:00
Yan Khachko
c625b7beb0
Update chat_type_filter.py 2021-02-09 15:31:46 +00:00
Yan Khachko
4701b852bd
Update chat_type_filter.py 2021-02-09 11:38:51 +00:00
Mykola Solodukha
cd5a772110 Logically order args 2021-01-23 19:04:30 +02:00
nacknime
adba85c4be
docs(install): typo "form" -> "from" (#498) 2021-01-22 09:49:46 +02:00
Mykola Solodukha
8656c6bc24 Fix args order in .reply_* and .answer_location() 2021-01-15 05:12:32 +02:00
Mykola Solodukha
ad4b215e71 Add ability to .answer_* and .reply_* live location 2021-01-15 05:07:14 +02:00
Alex Root Junior
f88159fc25 Merge branch 'dev-2.x' 2021-01-12 22:35:07 +02:00
Felix Yan
1349554dfd
Update installation instruction for Arch (#490)
* Update installation instruction for Arch

The package is now available in the official repository.

* Add pacman command example

* Add an additional empty line
2021-01-12 22:31:08 +02:00
Oleg A
ee12911f24
pytest update; yield_fixture deprecation fix; event_loop removed (#479) 2021-01-10 20:53:59 +02:00