Commit graph

1472 commits

Author SHA1 Message Date
Alex Root Junior
369bff422a Bump version 2020-09-13 23:13:27 +03:00
Alex Root Junior
ff654c014c Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x 2020-09-13 22:56:51 +03:00
Alex Root Junior
84785e4880 Fix italic and underline decorations 2020-09-13 22:56:32 +03:00
Martin Winks
c99b165668
fix(bot,dispatcher): do not use _MainThread event loop (#397)
* fix(bot,dispatcher): do not use _MainThread event loop on ::Bot, ::Dispatcher initializations

* fix: use more generic get approach

* docs: comments

* chore(task): asyncio.create_task comes with py3.7

* fix(dispatcher): todo
2020-09-13 22:42:21 +03:00
Alex Root Junior
7d1c8c42d3 Fix syntax error 2020-09-13 22:27:50 +03:00
Ramzan Bekbulatov
0cc6a2c8f6
Add is_forward method to Message (#390)
* new: add is_forward method to Message

* enh: add return types to Message methods

* fix: docs typo

* ref: make command methods closer
2020-09-13 22:15:07 +03:00
Ramzan Bekbulatov
5b40a2b8cf
Add missed ChatPermissions to __all__ (#393)
* new: add missed ChatPermissions to __all__

* ref: standardize all __all__
2020-09-13 22:14:33 +03:00
Ramzan Bekbulatov
7f053412bf
Add is_chat_creator method to ChatMemberStatus (#394)
* new: add is_chat_creator method to ChatMemberStatus

* enh: use tuples instead of lists for some checks
2020-09-13 22:14:01 +03:00
Ramzan Bekbulatov
f926d80ba2
Add missed emoji argument to reply_dice (#395)
* fix: add missed emoji argument to reply_dice

* ref: order arguments for send_dice
2020-09-13 22:13:15 +03:00
Martin Winks
60fe0931a7
docs(readme): prettify readme, update downloads stats badge (#406)
* docs(readme): prettify readme, update downloads stats badge

* chore(readme): describe steps for minimal code

* chore(rme): remove comma etc

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

* chore(rme): add heading for details/summary blocks

* Update README.md

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-13 22:11:27 +03:00
Юрий
00202565e4
fixed type hints of callback_data (#400)
its impotant to remeber all data saved in callback_data is text even if you pass to it integer
insofar as newbies often copy examples and modyfy this typing may help them make no mistake
2020-09-13 22:09:43 +03:00
lyteloli
51547f9745
Fixed usage of deprecated is_private function (#421)
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-13 22:08:55 +03:00
Gabben
a936465f42
add missing attributes (#422)
https://core.telegram.org/bots/api#animation
2020-09-13 22:07:29 +03:00
Daneel L
fce48e3127
comment of RedisStorage2 fix (#423) 2020-09-13 22:07:14 +03:00
Martin Winks
a529619d79
hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term (#415)
* hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term

* feat(utils): deprecated descriptor

deprecate CHOSEN_INLINE_QUERY and always return CHOSEN_INLINE_RESULT instead of incorrect value

* fix(tests): remove example from test

* fix(utils): use stacklevel=3

level on which descriptor is being called
2020-09-10 22:34:20 +03:00
Lamroy95
fc5ccc9d5a
Fixed docs Quick start page code blocks (#417) 2020-09-10 22:33:25 +03:00
Oleg A
56ffa00c8c
I18n example patch (added docs and fixed typos) (#419)
* Update i18n example

1. Replaced one file translation to all project folder translation. It's more usable case. 
2. `For e.g.` --> `E.g.`. E.g. is short for `exempli gratia` which means simply “for example.” So if you write for e.g., you are in effect writing `for for example`. 
3. `xargs` replased with serveral lines, `xargs` is not appliable for Microsoft Windows users. 
4. Added info about translation tools. 
5. Minor edits.

* i18n middlaware typo fix

* i18n example header typo fix
2020-09-10 22:32:56 +03:00
Oleg A
9ab2945267
fixed CallbackQuery.answer() returns nothing (#420) 2020-09-10 22:31:54 +03:00
unintended
17eb8a56d0
Fix #413 parse entities positioning (#414)
* fix entity positioning in parse_entities() #413
* add tests and small fixes
2020-09-04 18:08:15 +03:00
Daniil Kovalenko
d8c6214170
Fix HTML characters escaping (#409)
html.escape replaces " and ' characters by default, but it's not required by Telegram and causes unexpected behavior, quote=False argument fixes that.
2020-08-30 01:06:48 +03:00
Martin Winks
00cff4acf5
fix(handlerObj): fix parameter-spec solving (#408) 2020-08-22 00:07:03 +03:00
Forden
4863675d28
Add exception MessageToPinNotFound (#404) 2020-08-14 17:09:45 +03:00
Forden
22094eb477
Patch 1 (#398)
* Update callback_data_factory.py

* Update callback_data_factory_simple.py
2020-08-05 15:06:02 +03:00
Abstract-X
d1452b1620
Add preparing thumb in send_document method (#391) 2020-07-26 19:43:56 +03:00
Alex Root Junior
7f4f037f3e Fix addStickerToSet method 2020-07-22 23:56:46 +03:00
Ramzan Bekbulatov
659e1dc293
new: command filter with ignore_caption parameter (#383) 2020-07-21 21:30:20 +03:00
csd-oss
7a2fb9779f
Update dispatcher.py (#386) 2020-07-21 21:29:33 +03:00
Ramzan Bekbulatov
d2cf737919
new: add missed answer_poll and reply_poll (#384) 2020-07-13 15:28:38 +03:00
Fenicu
caa0fe69d0
A little documentation revision (#381) 2020-07-09 14:27:19 +03:00
Egor
f904292751
fix: bug IDFilter checking message from channel (#376)
* fix: bug IDFilter checking message from channel

* chore: add mark.asyncio for tests which were ignored previously
2020-07-05 03:08:38 +03:00
Egor
5586e5110d
fix: remove aiomongo completely (#380) 2020-07-05 03:00:00 +03:00
Egor
81b36bd192
feat: add ChatType builtin filter (#356)
* feat: ChatTypesFilter

* feat: add example of usage

* feat: docs

* fix: add import in filters/__init__

* fix: remove some of event_handlers

* fix

* fix imports

* fix: rename to ChatTypeFilter

* fix: rename argument to chat_type

fix: rename example file name

fix: str is container also lol. example fixed also

* fix: respect type hints

* fix: add warning with respect to type hint

* fix: use warnings instead of logging
2020-07-02 14:17:48 +03:00
Egor
d179789ea7
feat: mongo motor (#368)
* initial commit

* replacement by motor

* Delete settings.json

* fix: split to several files

* feat: add test for deleted file

Co-authored-by: morz <morzik45@gmail.com>
Co-authored-by: morzik45 <46727779+morzik45@users.noreply.github.com>
2020-06-29 21:56:35 +03:00
ixearth
3548d40eab
Add missing thumb parameter (#362) 2020-06-29 21:54:47 +03:00
Abstract-X
3d39652e9a
Add methods to register filters and middlewares (#370)
* Add methods to register filters and middlewares

* Fix docstring in filter unregistration method
2020-06-29 21:53:51 +03:00
unintended
f9c367548f
Fix markdown escaping issues (#363)
* #360 - Fix: escape '=' sign in markdown

* fix more escaping issues

* Rename test suite

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-06-27 16:17:38 +03:00
Abstract-X
c9cbde4595
Add setting current context of types (#369) 2020-06-27 16:15:20 +03:00
Yyonging
b004c8af19
fix the #307 (#371) 2020-06-27 16:10:09 +03:00
Alex Root Junior
4647b17c3c Bump version 2020-06-13 21:54:25 +03:00
Alex Root Junior
09f3c35aec Hotfix get_full_command 2020-06-13 21:53:31 +03:00
Alex Root Junior
866011ab2b Merge branch 'dev-2.x' 2020-06-13 21:30:57 +03: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