* 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
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
* 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
* 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
* 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
* 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>
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', '', '')