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
Noam Meltzer
b71196dad3
Run test_official in a seperate travis job ( #1491 )
2019-08-28 22:58:58 +03: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
f379a34ccd
Run test_official only on py3.7
2019-08-24 01:13:40 +03:00
Noam Meltzer
4328eaefb2
Fix test_photo.py ( #1479 )
...
Telegram had changed their server behaviour again
2019-08-24 01:10:30 +03: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
3ae14dda80
Remove deprecated regexhandler from examples ( #1426 )
2019-08-23 22:32:12 +03: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
René Filip
3afb0ae6c3
Improve timer_bot.py example ( #1440 )
...
Fixes #1439
2019-08-23 22:09:46 +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
Zhuoyun Wei
2cb6377dab
examples/conversationbot2.py: Use context.error in error()
( #1474 )
2019-08-23 18:24:19 +03:00
Bibo-Joshi
316d046628
Indent return statement in parse*entities ( #1473 )
2019-08-23 18:20:07 +03:00
Marco Marinello
5e0e4c01ff
Prepare debian packetization ( #1476 )
2019-08-23 17:47:00 +03:00
Bibo-Joshi
24546bda67
Make all categories lower case to avoid KeyErrors ( #1475 )
2019-08-18 18:39:29 +03:00
Pieter Schutz
d70577b9cf
remove 3.4 from Appveyor
2019-06-05 22:52:26 +02:00
Pieter Schutz
3fc57479f3
Merge branch '4.3' into RC1
2019-06-05 22:19:48 +02: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
d84551134b
Merge branch 'api4.2-poll' into RC1
2019-06-05 22:11:44 +02:00
Pieter Schutz
cebd2d6a86
test poll de_json
2019-06-05 22:11:28 +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
Jason Rhinelander
2cde878d1e
Fix webhook listen ( #1383 )
...
The `listen` argument wasn't being passed through to Tornado; this fixes
it.
Fixes #1382
2019-04-15 10:28:41 +03:00
Jasmin Bom
984bea16d1
Fix trailing whitespace (flake8 error)
2019-04-05 20:03:44 +02:00
Jasmin Bom
474ff8ae41
Add missing message.text check in PrefixHandler check_update ( #1375 )
...
* Add missing message.text check in PrefixHandler check_update
* Remove message length check
2019-04-05 12:59:50 +02:00
Loo Zheng Yuan
2ed4cbd26d
Fix #1366 : _trigger_timeout() missing 1 required positional argument: 'job' ( #1367 )
...
* Fix #1366 : _trigger_timeout() missing 1 required positional argument: 'job'
* Add comments
2019-04-05 12:59:32 +02:00
Jasmin Bom
7944805627
Fix bot tests
...
- telegram how throws an error if you try to reply to nonexistent msg
- telegram also changed the message when you try to delete old msg
2019-04-01 13:05:45 +02:00
Jasmin Bom
b5891a6a61
Making merged filters short-circuit ( #1350 )
...
* Making merged filters short-circuit
* Add notes to docs about short-circuiting
2019-03-14 09:03:21 +01:00
Jasmin Bom
df813c46e1
Pin pre-commit pylint to v2.3.0
...
Fixes issue seen at https://travis-ci.org/python-telegram-bot/python-telegram-bot/jobs/499853384#L702
2019-02-28 22:02:08 +01:00
Eldinnie
36a74da4f4
fix setting bot on ShippingQuery ( #1355 )
...
* fix setting bot on ShippingQuery
* Fix test to test de_json
2019-02-23 21:33:03 +01:00
Eldinnie
0c10c537f7
fix typo in master
...
[CI skip]
2019-02-23 17:39:04 +01:00
Jasmin Bom
26ce9bb343
Documentation fixes ( #1348 )
...
* Clarify InlineKeyboardButton callback-data docstring
Fixes #1267
* Improve documentation slightly
- Prettier changelog
- Link to examples on frontpage
- Link to wiki on frontpage
- Put telegram.ext in own sidebar thingy
* Improve ext.Filters documentation
Superseeds #1089
- Remove `:obj:Filter` as it's pretty obvious that it's a filter since it's in this module. It also made the html output about 1/3 times longer to scroll through.
- Add an __all__ to reorder so Filter is at the top instead of BaseFilter
- Add a proper docstring for document that documents the attributes (this is the #1089 part)
- Also fix a couple of grammar errors.
* Fix indentation in telegram.rst
* Add `git describe --long --tags` to the `python -m telegram` output
* Use admonition for examples to make them *pop* better
* Remove automodule telegram
Sphinx was whining a lot and it doesn't actually seem to be needed in any way?
* Fix Filters.document docstring per CR
Co-Authored-By: jsmnbom <jsmnbom@gmail.com>
* Fix spelling error in docs index
Co-Authored-By: jsmnbom <jsmnbom@gmail.com>
* Setting needs_sphinx to 1.7.9
so we don't have more issues with incongruent versions
* Fixed last warnings
* Make pre-commit happy
2019-02-18 20:04:52 +01:00
Jasmin Bom
39d686b1a1
Tiny spelling fix in CHANGES.rst [ci skip]
2019-02-14 12:31:00 +01:00
Kirill Vasin
60f2044bbd
Entry returns None ends conversation ( #1270 )
...
* Fix unresolvable promises
* added async test and description
* added test_none_on_first_message for conv_handler
* Small change in ConversationHandler docstring
* Fix test to work with new commandhandler
2019-02-14 12:29:58 +01:00
Jasmin Bom
dda7ca18cd
Update CHANGES.rst
...
Also include #1270 even though not merged yet, but it should be very soon :)
2019-02-14 12:03:20 +01:00
Jasmin Bom
07c51d236b
Fix spelling error in example notice
2019-02-14 11:53:09 +01:00
Jasmin Bom
9f1eccf569
Merge branch 'master' into V12
2019-02-14 11:52:31 +01:00
Eldinnie
cd7c642f49
Add WAITING state and behavior ( #1344 )
...
* Add WAITING state and behavior
* Remove `run_async_timeout` and `timed_out_behavior` arguments
* replace with `WAITING` constant and behavior from states
* never wait for promise to resolve (will hang up entire update queue
* see #1250 for discussion
* Fixing pytest version to 4.2.0
Pytest 4.2.1 has a weird bug on top level collect in 4.2.1 Fixing version to 4.2.0
2019-02-14 11:00:21 +01:00
Bibo-Joshi
f7abb21323
Adjust persistence on exit behaviour ( #1312 )
...
* Adjust persistence of exit behaviour
* Fix binary operators in on_flush
* Fix docstring
* Add test
2019-02-13 23:30:29 +01:00
Eldinnie
7e2dbdd4b3
Fix #1297 ( #1342 )
...
* Fix #1297
This makes a deepcopy of the user_data and chat_data dict as suggested by @Bibo-Joshi
* Fix dictpersistence aswel.
2019-02-13 23:28:48 +01:00
Jasmin Bom
b64698e4b6
Use warnings.warn for conversationhandler warnings. ( #1343 )
...
* FIXED: ConversationHandler errors were logged to root logger
* Use warnings.warn instead of self.logger.warning.
2019-02-13 23:28:23 +01:00
Ambro
d0936f76ad
Only one warning for multiple CallbackqueryHandler's on ConversationHandler ( #1319 )
2019-02-13 22:08:49 +01:00
Jasmin Bom
da342af7ed
Small flake8 fixes
2019-02-13 16:04:48 +01:00
Jasmin Bom
446c54cf8d
Bump to version 12.0.0b1
2019-02-13 13:41:04 +01:00