Commit graph

112 commits

Author SHA1 Message Date
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
Alex RootJunior
129787db5c Update message 2019-04-16 00:04:05 +03:00
Alex RootJunior
e2e2d9c9fe Implemented polls [From test API] 2019-04-11 00:32:46 +03:00
Nikita
1eefb237a2 Add delete_reply_markup to Message 2019-04-08 09:43:03 +05:00
Nikita
ad4c85eb77 Update message.py
- Add more answer_* methods
- Move some methods for beauty
2019-03-31 13:42:21 +05:00
Nikita
183e664a75 Add answer method
This is the "reply" method with the name "answer" and the default argument reply=False
2019-03-22 22:01:26 +05:00
Nikita
23d3d98813 Add warnings 2019-03-22 21:50:41 +05:00
Nikita
81935aead5 Replace "send" in method names with "reply"
All reply-related methods used the prefix "reply", except for animation, venue and contact, which could be confusing
2019-03-22 21:09:32 +05:00
Sergey
0045eaca24
Some useful Message edit functions
Message.edit_caption
Message.edit_media
Message.edit_reply_markup
2019-02-24 21:41:27 +03:00
Sergey
98173f64e1
Simplify code 2019-02-22 18:47:09 +03:00
Sergey
79677cb20f
Fixed entities parsing for captions 2019-02-22 18:39:02 +03:00
Alex Root Junior
2384b370a7 Implement message URL generator 2019-01-13 00:48:32 +02:00
Alex Root Junior
c84f692628 Allow to reply with animation from message context. 2018-12-31 15:53:52 +02:00
Alex Root Junior
7a55c040ee Write docs and small fixes. 2018-09-07 21:24:13 +03:00
Alex Root Junior
b16963d4a9 Make single elements ContentType object and ContentTypes class for listed elements 2018-08-13 23:53:37 +03:00
Alex Root Junior
272cf155f2 Merge branch 'master' into dev-2.x
# Conflicts:
#	aiogram/__init__.py
#	aiogram/utils/json.py
2018-08-03 23:14:25 +03:00
Alex Root Junior
6f3eda16e5 Telegram Passport 2018-07-28 19:16:54 +03:00
Alex Root Junior
f7a071cb0b Added the field animation to the Message object. 2018-07-26 22:53:56 +03:00