Eana Hufwe
d9d65cc2ac
Add poll messages support to filters ( #1673 )
2020-01-26 22:57:48 +02:00
Bibo-Joshi
62f514f068
CallbackContext: Expose dispatcher as a property ( #1684 )
...
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com>
2020-01-26 22:55:00 +02:00
Viktor Oreshkin
3d59b2f581
Docstring fix: thumb limits were changed with Bot API 4.2 ( #1669 )
2020-01-26 22:30:26 +02:00
rizlas
e3c8466e41
Rename enocde_conversations_to_json() -> enocde_conversations_to_json() ( #1661 )
...
Fixes #1660
2020-01-26 22:24:00 +02:00
Bibo-Joshi
33280a7fe0
Add missing name for Filters.update classes ( #1632 )
2020-01-26 22:18:29 +02:00
Bibo-Joshi
883c6b5901
Add dispatcher argument to Updater ( #1484 )
2020-01-26 21:59:47 +02:00
Hinrich Mahler
90496f70a5
Prepare for v12.3.0
2020-01-11 20:57:58 +02:00
tobiaswicker
940b42e048
ConversationHandler: Fix wrong signature call for timeout handlers
...
Fixes #1652
Co-authored-by: Eldinnie <Eldinnie@users.noreply.github.com>
2020-01-11 20:51:31 +02:00
Eldinnie
3d42df3366
Fix documentation about return values in message ( #1656 )
...
* Fix documentation about return values in message
* flake8 satisfaction
2019-12-16 14:22:11 +01:00
Poolitzer
2c67a9833b
add private /c links to message.links object ( #1619 )
...
* add private /c links to message.links object
* fixing ids for basic groups
* fixing ids for non basic chats and the test
* Improve tests for Message.link
* Simplify id_to_link
2019-11-29 13:50:44 +01:00
Bibo-Joshi
5e8a961669
Refactor msg_in ( #1631 )
...
* Revert "Add msg_in filter (new) (#1570 )"
This reverts commit 34bdbc632a
.
* Refactor msg_in, add Filters.caption on the fly
* Update docstrings
* Fix copy-paste typo
2019-11-29 13:09:44 +01:00
Bibo-Joshi
a5ba64becb
Remove checks for None on assignement for opt args ( #1600 )
2019-11-23 18:05:03 +02:00
Noam Meltzer
2a3169a22f
Fix deprecation warning with Python 3.8 triggered by vendored urllib3 ( #1618 )
...
Fixes #1586
2019-11-16 14:37:15 +02:00
Paolo Lammens
4e717a172b
Fix UTC/local inconsistencies for naive datetimes ( #1506 )
2019-11-15 22:51:22 +02:00
Bibo-Joshi
34bdbc632a
Add msg_in filter (new) ( #1570 )
...
Closes #1144
2019-10-27 01:12:54 +03:00
Bibo-Joshi
bbcff96804
Doc fixes ( #1572 )
...
Fixes #1576
2019-10-27 01:04:48 +03:00
Bibo-Joshi
93449443b2
Add *args, **kwargs to Message.forward() ( #1574 )
2019-10-27 01:00:27 +03:00
Iulian Onofrei
88eccc6608
Add MAX_PHOTOSIZE_UPLOAD size limit constant ( #1560 )
...
* Add MAX_PHOTOSIZE_UPLOAD size limit constant
* Add the other source of the constants' values
2019-10-17 22:24:44 +02:00
Lorenzo Rossi
3d8771bbdf
🔀 Add mutex protection on ConversationHandler ( #1533 )
...
* Add mutex protection on ConversationHandler
* Remove timeout job before child update
* Make locks private
* Add conversation timeout conflict test
2019-10-17 00:03:53 +02:00
Noam Meltzer
98147fce32
Bump version to v12.2.0
2019-10-14 21:12:13 +03:00
Paolo Lammens
3318239cf6
tests: refactor `test_commandhandler.py
` ( #1408 )
...
- Improved usage of fixtures
- Replaced fixtures for directly callable factories where
multiple mock objects were needed in the same test function
- Extracted fixtures where possible (in place of literals or
global constants)
- Moved some fixtures to ``conftest.py`` to be used by other
modules
- Made a common base class for both ``TestCommandHandler`` and
``TestPrefixHandler``, extracting common methods, patterns and
signatures
- The extracted patterns in test methods have been named with
leading ``_test``
- Extracted other repeatedly used test utilities into functions
(e.g. ``is_match``) and methods (e.g. ``make_default_handler``)
2019-10-12 16:11:09 +03:00
Bibo-Joshi
aadb6df271
Nested ConversationHandlers ( #1512 )
...
Fixes #405
2019-10-11 22:59:36 +03:00
Noah Evans
2cc9aac7dc
Fix Bot.to_dict to use proper first_name ( #1525 )
...
Fixes #1519
2019-10-11 22:37:28 +03:00
Noam Meltzer
e60a42010b
Bump version to v12.1.1
2019-09-17 11:30:52 +03:00
Noam Meltzer
ae88129f0f
Revert accidental change to the git revision of the urllib3 submodule ( #1517 )
...
Fixes #1516
2019-09-17 11:25:54 +03:00
Noam Meltzer
3812251dac
small fix for documentation to compile
2019-09-13 22:31:02 +03:00
Noam Meltzer
e1193425ca
Bump version to v12.1.0
2019-09-13 22:29:06 +03:00
Joscha Götzer
ccf5e6c692
Implemented Tools for deep linking ( #1049 )
2019-09-13 22:09:05 +03:00
zeshuaro
32dd415fb8
Add instance methods to Animation and ChatPhoto ( #1489 )
...
get_file, get_small_file, get_big_file
2019-09-13 22:07:56 +03:00
Bibo-Joshi
f13aeaa2a1
Doc fixes ( #1499 )
2019-09-13 21:49:04 +03:00
Bibo-Joshi
fba3cc90d9
API 4.4 small code cleanup ( #1510 )
2019-09-07 12:42:26 +03:00
Bibo-Joshi
965ad17af8
API 4.4 ( #1464 )
2019-09-06 22:41:43 +03:00
Poolitzer
d5399de99b
raise attribute errors when someone tries to assign values to chat/us… ( #1495 )
...
* raise attribute errors when someone tries to assign values to chat/user_data (closes #1402 )
* fix test
* something something not switching entirely and using a messy patch and no not anymore and argh
2019-09-05 22:48:28 +02:00
Noam Meltzer
c84e21d8eb
Bump version to v<VERSION>
2019-08-29 21:33:51 +03:00
Poolitzer
ec6dc7fa10
fix typo in PicklePersistence ( #1488 )
...
* fix single typo
* fix unitests for picle singe_file -> single_file
2019-08-29 19:09:38 +02:00
Bibo-Joshi
425912da4a
Use UTC in from_timestamp (breaking change) ( #1485 )
2019-08-28 22:06:41 +03:00
Poolitzer
2c92c356b8
Error handlers now handle all errors ( #1483 )
...
* python3.4 is no longer supported
* Prepare CHANGES.RST & README.rst for v12.0.0 release
* CHANGES.rst: small fix
* Add Bibo-Joshi to Credits
* improving error_handler
* fixing affected tests
2019-08-27 09:09:02 +02:00
Noam Meltzer
79dc6edf25
Merge remote-tracking branch 'origin/V12'
2019-08-24 01:04:10 +03:00
Bibo-Joshi
c7e9281068
Make MessageEntity objects comparable ( #1465 )
2019-08-24 00:54:04 +03:00
Eldinnie
edad6e8b53
Add a prefix to threads ( #1358 )
...
* Add a prefix to worker thread
This adds a prefix of `Bot:<id>:worker:` to the name of the worker threads.
Fixes #1332
* Also prefix other threads
* Fix test
* Fix test and remove helper method.
2019-08-23 22:57:08 +02:00
zeshuaro
7eb7c30741
updated inputmedia docstring ( #1436 )
2019-08-23 22:03:43 +02:00
Eldinnie
ac60d057a5
All api 4.2 and 4.3 changes ( #1418 )
2019-08-23 22:20:41 +03:00
Marchello00
e492d5b97b
Fix send_location() - latitude may be 0 ( #1437 )
...
Fixes #1435
2019-08-23 22:13:29 +03:00
Ales Dokshanin
179cf14bd8
#1410 Call task_done() on update queue after update processing finished ( #1428 )
2019-08-23 21:54:07 +03:00
Bibo-Joshi
a1eabc0cae
Fix for #1452 ( #1462 )
...
Dispatcher force updating persistence object's chat data attribute
2019-08-23 21:52:14 +03:00
Bibo-Joshi
5e90231f4e
Make updates persist even on DispatcherHandlerStop ( #1463 )
2019-08-23 21:38:29 +03:00
Bibo-Joshi
316d046628
Indent return statement in parse*entities ( #1473 )
2019-08-23 18:20:07 +03:00
Pieter Schutz
e11efa2e5b
Add bot api 4.3
...
Add LoginUrl to InlineKeyboardButton
Add reply_markup to message
2019-06-05 22:15:32 +02:00
Pieter Schutz
725c21b88d
API 4.2 changes
...
actually works now
Add tests
Fix flake8 issues.
Add poll argument to Update.
Fix pre-commit config
Finalizing 4.2
No notify on pin
2019-06-05 15:00:07 +02:00
Noam Meltzer
9d005d5124
jobqueue: Add docstring note about intervals and DST ( #1397 )
...
Fixes #1381
2019-04-27 20:10:56 +02:00