Commit graph

129 commits

Author SHA1 Message Date
Alex Root Junior
3bca050b8a
Added more default values 2023-03-11 18:29:13 +02:00
Alex Root Junior
8a56258824
Reworked request builder 2023-03-11 04:09:57 +02:00
Alex Root Junior
6570d0bab1
Bot API 6.6 (#1139)
* Added basic support of Bot API 6.6

* Update descriptions

* Added StickerFormat enum

* Bump version

* Refresh from docs

* Fixed CommandStart

* Fixed files uploading

* Cover new functionality

* Added changelog

* Update texts
2023-03-11 02:17:47 +02:00
Alex Root Junior
e59d4652bf
Added full support of Bot API 6.5 (#1112)
* Added full support of Bot API 6.5

* Shut up, linters (Fixed errors)

* Oops. Added lost files.

* Fixed tests

* Added changes description

* Update description from docs

* Fixed anchors

* Update Butcher

* Added danger zone to changelog

* Type
2023-02-04 19:53:32 +02:00
Alex Root Junior
f4ce4431f9
Migrate to hatchling (#1095)
* Migrate to hatchling instead of poetry, ruff instead of flake8

* Migrate to hatchling instead of poetry, ruff instead of flake8

* Update tests suite

* venv?

* -m venv?

* Change dependencies

* Remove venv

* Change mypy config

* Added changelog

* Mark uvloop incompatible with pypy

* Update release script

* Use internal caching for dependencies

* Re-disable cov branches

* Added contributing guide
2023-01-12 02:49:58 +02:00
Alex Root Junior
730485e43a
Added full support of Bot API 6.4 (#1088)
* Remove warnings about pytest asyncio mode

* Update Bot API to 6.4

* Bump version

* Added changelog

* Update translations
2022-12-30 22:44:25 +02:00
Alex Root Junior
3ea73fbbbd
Add missing shortcuts, new enums, reworked old stuff (#1070)
* Render shortcuts

* Render docs

* Added enumerations

* Added docs

* Use enums, removed Helper

* Bump butcher

* Added InputMediaType enum

* Added MaskPositionPoint, InlineQueryResultType enums

* Update texts

* Added StickerType enum

* Cover tests

* Update docs

* Fixed imports

* Re-enabled all pre-commit hooks
2022-12-04 03:05:49 +02:00
KatantDev
0294bf2853
Fix for copy and forwarding in special topic (#1064)
* Fix for copy and forwarding in special topic

* Added changelog

Co-authored-by: katant <katantdev@mail.ru>
2022-11-08 00:06:57 +02:00
Alex Root Junior
b287551590
Bot API 6.3 (#1063)
* Added API changes

* Added changelog

* Oops. Move changelog

* Update tests

* Remove experimental

* Added message content type

* Update message aliases

* Update changes

* Update texts

* Bump version

* Remove versionadded badge
2022-11-06 14:28:21 +02:00
v9lu
67fbee454a
Updated: message.py (#1047)
* Updated: message.py

-Fixed reply_invoice
-Fixed answer_invoice

* Updated: message.py

-Fixed reply_invoice
-Fixed answer_invoice

* Updated: message.py

-Fixed reply_invoice
-Fixed answer_invoice

* Create 1047.bugfix.rst

* Deleted aiogram/message.py

* Update CHANGES/1047.bugfix.rst

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2022-10-30 14:28:52 +02:00
Alex Root Junior
5c3f442866
Reformat code 2022-10-22 01:02:56 +03:00
Danipulok
8b0ca520f3
Add missing Message methods (#1030)
* Add `Message.forward` method

* Add docs

* Add other methods

* Fix

* Add changes

* Fix lints

* Update CHANGES/1030.feature.rst

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2022-10-22 00:29:29 +03:00
Danipulok
f4d3dbf3bf
Fix typehints for Message media group methods (#1029)
* Fix typehints for `Message` media group methods

* Create 1029.doc.rst

* Fix importes
2022-10-21 22:23:58 +03:00
Alex Root Junior
247ffbef69
3.x Bot API 6.1 (#937)
Added support of Bot API 6.1
2022-06-25 18:14:29 +03:00
Aleksandr
6ad242399b
#905 Added 3 missing content types (#906)
* Added 3 missing content types

* Added tests for 3 missing content types

* More tests

* Added changelog
2022-05-13 23:52:13 +03:00
Alex Root Junior
497436595d
[3.x] Bot API 6.0 (#890)
* Base implementation

* Bump license

* Revert re-generated tests

* Fix tests, improved docs

* Remove TODO

* Removed unreachable code

* Changed type of `last_synchronization_error_date`

* Fixed wrongly cleaned code
2022-04-19 22:03:24 +03:00
Alex Root Junior
286cf39c8a
Beta 3 (#884)
* Rework middlewares, separate management to `MiddlewareManager` class

* Rework middlewares

* Added changes description for redis

* Added changes description for redis

* Fixed tests with Redis // aioredis replacement

* Changed msg.<html/md>_text attributes behaviour

* Added changelog for spoilers

* Added possibility to get command magic result as handler arguments
2022-04-16 19:07:32 +03:00
Oleg A
ffe9506dc5
parse_mode should be UNSET instead of None (#877)
* fix: parse_mode should be UNSET instead of None

#876

* docs: add changelog

* docs: fixed changelog name

* fix: changelog typo fix
2022-04-06 04:19:31 +03:00
Alex Root Junior
7776cf9cf6
Bot API 5.7 and some new features (#834)
* Update API, added some new features

* Fixed unknown chat_action value

* Separate events from dispatcher messages

* Disabled cache for I18n LazyProxy

* Rework events isolation

* Added chat member status changed filter, update Bot API 5.7, other small changes

* Improve exceptions in chat member status filter

* Fixed tests, covered flags and events isolation modules

* Try to fix flake8 unused type ignore

* Fixed linter error

* Cover chat member updated filter

* Cover chat action sender

* Added docs for chat action util

* Try to fix tests for python <= 3.9

* Fixed headers

* Added docs for flags functionality

* Added docs for chat_member_updated filter

* Added change notes

* Update dependencies and fix mypy checks

* Bump version
2022-02-19 01:45:59 +02:00
Alex Root Junior
9ec689b562
[3.x] Bot API 5.5 (#777)
* Re-generate API, cover changes

* Added patchnotes
2021-12-12 17:21:01 +02:00
Alex Root Junior
c19cbc6a5f Added html/md_text properties to Message object and refactor I18n context 2021-09-23 23:45:22 +03:00
Alex Root Junior
e4046095d7
Dev 3.x i18n & improvements (#696)
* Added base code and make code improvements
* Auto-exclude coverage for `if TYPE_CHECKING:`
* Fixed current coverage
* Cover I18n module
* Update pipeline
* Fixed annotations
* Added docs
* Move exceptions
* Added tests for KeyboardBuilder and initial docs
* Remove help generator (removed from sources tree, requires rewrite)
* Added patch-notes #698, #699, #700, #701, #702, #703
2021-09-22 00:52:38 +03:00
darksidecat
c1f605c6f5
add aliases for edit/delete reply markup to Message (#662)
* add aliases for edit/delete reply markup to Message

* add towncrier patch note

* add missed towncrier patch note description
2021-08-17 00:11:47 +03:00
darksidecat
7cb0ac1ee2
add allow_sending_without_reply param to Message reply aliases (#663) 2021-08-17 00:07:38 +03:00
Aleksandr
32bc05130f
Added get_url() method for Message object and shifted_id property for Chat object (#585)
* Added get_url() method for Message object and shifted_id property for Chat object

* Added missing closing bracket to shifted_id description

* Added basic groups to skipped pattern, simplified code

* Return None instead of raising TypeError, removed redundant f-string

* Change get_url typing to Optional[str]

* Better shifted_id method

* get_url tests added

* Added whitespace (E226)

* Code format with black

* Parametrized test
2021-06-05 13:37:01 +03:00
Alex Root Junior
f022b4441c Added more aliases, refactor CallbackData factory, added base exceptions classification mechanism 2021-05-25 00:56:44 +03:00
Alex Root Junior
0e72d8e65b
[3.0] Bot API 5.1 + FSM + Utils (#525)
* Regenerate corresponding to Bot API 5.1

* Added base of FSM. Markup constructor and small refactoring

* Fix dependencies

* Fix mypy windows error

* Move StatesGroup.get_root() from meta to class

* Fixed chat and user constraints

* Update pipeline

* Remove docs pipeline

* Added GLOBAL_USER FSM strategy

* Reformat code

* Fixed Dispatcher._process_update

* Bump Bot API 5.2. Added integration with MagicFilter

* Coverage
2021-05-11 23:04:32 +03:00
Alex Root Junior
4008a3114d
Upgrade architecture + 5.0 Bot API (#469)
Upgrade architecture + 5.0 Bot API (#469)
* Moved `methods`, `types` and `client` to root package
* Removed update handler from routers to dispatcher
* Reworked events propagation mechanism to handlers
* Reworked inner middlewares logic (very small change)
* Updated to Bot API 5.0
* Initial migration from MkDocs to Sphinx + config for readthedocs
2021-01-26 21:20:52 +02:00
jrootjunior
bdae5fb026 Clean project 2019-11-15 12:17:57 +02:00
Alex Root Junior
cf7786a467 Optimize Message.send_copy 2019-10-14 23:52:19 +03:00
Bunk100
a6c8e4c249
Update message.py 2019-10-12 23:06:41 +03:00
Bunk100
37e6428b7b
Update message.py
deleted parse_mode arg from send_copy args
2019-10-12 22:56:48 +03:00
Bunk100
bbfc994073
Update message.py 2019-10-12 18:42:24 +03:00
Bunk100
68ce9687ec
Update message.py 2019-10-12 18:38:13 +03:00
Bunk100
1cd4712eb4
Update message.py
Some fixes
2019-10-12 18:37:06 +03:00
Bunk100
b172faf89f
Update message.py 2019-10-12 18:22:44 +03:00
Bunk100
e57c761c40
Update message.py
Second attempt to fix reply_markup
2019-10-12 18:03:31 +03:00
Bunk100
1f177360c4
Update message.py 2019-10-12 17:59:32 +03:00
Bunk100
e32a45f4f8
Update message.py
Updated send_copy:
Added the ability to specify reply_markup, parse_mode
2019-10-12 17:52:27 +03:00
Alex Root Junior
b8f1b57004 Use self.bot instead of bot_instance = self.bot 2019-09-01 19:52:34 +03:00
Alex Root Junior
6a089fd19f Add message.send_copy method 2019-09-01 14:42:09 +03:00
Suren Khorenyan
be622ca559 Refactor some redundant elifs 2019-08-11 23:42:18 +03:00
Alex Root Junior
47bc628f2b Remove obsolete code 2019-08-04 19:46:39 +03:00
Alex RootJunior
9b9c1b086d Remove unused import 2019-06-09 21:55:41 +03:00
Alex RootJunior
35b0e150c2 Change deprecated until versions 2019-06-09 21:54:53 +03:00
Alex RootJunior
7aa6dc4efe Fix Message.reply_markup 2019-06-09 21:49:56 +03:00
Alex RootJunior
b70778fcdb Update to 4.3 Bot API. LoginUrl. 2019-06-01 15:16:28 +03:00
Nikita
d1fab6b910 Update message.py 2019-05-03 13:10:15 +05:00
Nikita
e3f9d83b5f Update message.py 2019-04-28 23:35:02 +05:00
Nikita
8a55b67715 Type hint and fix parse_mode parameter
Fix: t.me/aiogram_ru/54632
2019-04-28 23:33:34 +05:00