Commit graph

1015 commits

Author SHA1 Message Date
Abstract-X
8c75f322ca Add setting current context of types 2020-06-26 04:13:30 +11:00
Alex Root Junior
21b4b64db1 Bump version 2020-06-13 21:30:24 +03:00
Egor Dementyev
8d30c1dc1b
Fix message.get_full_command() (#352)
* Fix message.get_full_command()

* Fix message.get_full_command() by JrooTJunior

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

* fix typos

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-06-13 19:18:30 +03:00
Denis Belavin
1389ca5874
#320 - Fix: Class InputMediaAudio contains some fields from other class. (#354)
Co-authored-by: Belavin Denis <belavin.d.andreevich@yandex.ru>
2020-06-10 23:08:44 +03:00
Egor
a8dfe86358
feat: ForwardedMessage filter (#355)
* feat: ForwardedMessage filter
* fix: add tests
* fix: attr name
2020-06-10 23:07:55 +03:00
Egor
557147ad8d
fix: markdown helper methods work correctly (#353)
* fix: methods in markdown helper work now

* chore: add return type annotations
2020-06-09 16:55:13 +03:00
Alex Root Junior
d5144a5d14 Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x 2020-06-08 20:43:56 +03:00
Alex Root Junior
d5169a294f AIOG-T-23 Backport text_decorations from 3.0a 2020-06-08 20:43:23 +03:00
George Imedashvili
027139f1b2
fix get_full_command (#348)
The reason is that .partition() doesn't have a default param as .split has, and default split param gives possibility to split not only by whitespaces, but also whitespace consequences (so the .strip() in get_args() not needed) and newlines.
It's called "fix", because without it, commands like this:
'''/command
arg
arg1'''
are resulting with ('/command\narg\narg1', '', '')
2020-06-08 20:21:15 +03:00
Alex Root Junior
50b5768759 AIOG-T-61 Bump version 2020-06-08 20:20:43 +03:00
Alex Root Junior
de13dbf454 AIOG-T-61 Telegram Bot API 4.9 2020-06-08 20:19:05 +03:00
Egor
70767111c4
fix: add support init fields from parent object in KeyboardButton (#344)
* fix: add support init fields from parent object in KeyboardButton

* fix: add tests
2020-05-31 17:49:33 +03:00
Alex Root Junior
cb0a898487
Merge pull request #319 from Senpos/fix-idfilter-aiogram-v2
Fix behavior when a single string is passed as ID
2020-05-24 21:08:04 +03:00
evgfilim1
5bbb36372a
Small whitespace fix 2020-05-17 19:34:24 +05:00
Senpos
6d53463880 Refactor AdminFilter to use extract_chat_ids helper as in IDFilter 2020-05-17 16:54:16 +03:00
Senpos
eb48319f3a Change name for chat id type and helper to extract it 2020-05-17 16:22:33 +03:00
Igor Sereda
15861960f5 Fix missing InlineQueryResultPhoto parse_mode field 2020-05-12 00:32:45 +03:00
Alex Root Junior
8a1ae0c601
Merge pull request #295 from evgfilim1/check-py-version
Check whether Python is 3.7+
2020-05-10 21:42:27 +03:00
Alex Root Junior
8b859f60de
Merge pull request #326 from aiogram/dev-2.x-BaseBot-del
fix(BaseBot): remove __del__ method from BaseBot
2020-05-10 21:16:44 +03:00
Daniil Kovalenko
1e7f07f443
Fix escaping issues in markdown.py 2020-05-10 22:40:37 +07:00
mpa
6508235d16 fix(BaseBot): remove __del__ method from BaseBot
implement "lazy" session property getter and new get_new_session for BaseBot
2020-05-10 01:13:00 +04:00
Kostiantyn Kriuchkov
689a6cef65
Bug fix
There is no method `delete_chat_description`
2020-05-09 08:59:41 +03:00
uburuntu
65184fb126 fix: change user context at poll_answer 2020-05-05 11:50:41 +03:00
Senpos
ac7758aeb0 Make self.user_id and self.chat_id Set[int] in IDFilter 2020-05-03 18:00:35 +03:00
Senpos
60bcd88b68 Fix IDFilter behavior when single str id passed 2020-05-03 17:38:05 +03:00
Alex Root Junior
61cfb8e99a
Merge pull request #297 from aiogram/feature/bot_id
#296 Get bot's user_id without get_me
2020-04-26 00:24:50 +03:00
Alex Root Junior
b0870b3f93 i-AIOG-16 update send dice aliases 2020-04-25 23:11:52 +03:00
Alex Root Junior
f1f65d2e77 i-AIOG-18 Update versions (readme, setup, etc.) 2020-04-25 22:54:44 +03:00
Alex Root Junior
f2c7236ec1 i-AIOG-17: Rename dart constant 2020-04-25 22:52:48 +03:00
Alex Root Junior
233c676755 i-AIOG-17 Add emoji to the Dice object 2020-04-25 17:54:15 +03:00
Alex Root Junior
f5e4016bf8 i-AIOG-15: Add open_period and close_date to the Poll object 2020-04-25 17:48:23 +03:00
Alex Root Junior
8906609f0e i-AIOG-14: Add open_period and close_date in the method sendPoll 2020-04-25 17:39:35 +03:00
Alex Root Junior
7e3f83ebfe i-AIOG-13: Add explanation and explanation_entities to the Poll object 2020-04-25 17:30:44 +03:00
Alex Root Junior
b42ea0f2ce i-AIOG-12: Add default parse mode 2020-04-25 17:22:13 +03:00
Alex Root Junior
cc650047df i-AIOG-12: Add explanation and explanation_parse_mode in the sendPoll 2020-04-25 17:12:03 +03:00
Anton
4fafba17b9
Add emoji to send_dice method 2020-04-24 20:09:36 +02:00
LimiO
e50f9e5269 Change False to True at reply_dice 2020-04-18 17:47:03 +03:00
LimiO
a7a06b7301 Add reply_dice method 2020-04-18 17:40:26 +03:00
LimiO
2ff880bb5f add answer_dice method 2020-04-18 16:09:45 +03:00
culnaen
e4c1f4acc8
fix 2020-04-08 18:30:12 +03:00
Oleg A
8cd781048a #296 Get bot's user_id without get_me 2020-04-07 09:36:16 +03:00
Alex Root Junior
a565251d4e
Merge pull request #294 from aiogram/dev-2.x-api-4.7
Updated API 4.7 for dev-2.x branch
2020-04-07 00:41:27 +03:00
Oleg A
97bda44718 #289 BotCommand type init fix 2020-04-06 23:59:37 +03:00
evgfilim1
79f62f9e61
Check whether Python is 3.7+ 2020-04-06 18:20:39 +05:00
Oleg A
683e2befb5 #289 Added BotCammand and Dice to __all__ types 2020-04-05 19:55:53 +03:00
Oleg A
9bbc7510f4 #289 Added the ability to change thumbnails of sticker sets created by the bot using the method setStickerSetThumb. 2020-04-05 19:04:48 +03:00
Oleg A
3d632fea1c #289 Added the field thumb to the StickerSet object. 2020-04-05 18:54:10 +03:00
Oleg A
181f1f0e6d #289 Added the ability to add animated stickers to sets created by the bot by specifying the parameter tgs_sticker instead of png_sticker in the method addStickerToSet. 2020-04-05 18:48:37 +03:00
Alex Root Junior
5de9c9853e #270: Add new exception 2020-04-05 18:28:59 +03:00
Alex Root Junior
8f07b1248e More safe bot deleter 2020-04-05 18:22:52 +03:00