Eldinnie
d5c9212f2e
Add two arguments to send_invoice ( #986 )
...
Telegram silently added `send_phone_number_to_provider` and `send_email_to_provider` to the send_invoice method.
2018-02-10 17:54:09 +02:00
Noam Meltzer
8690ba256e
webhookhandler: Fix exception thrown during error handling ( #985 )
...
BaseServer.handle_error() default behaviour is to print to stdout or
stderr (depends on the python version). In case that the file descriptor
is closed an additional exception will be raised, causing the webhook
thread to quit.
Fixes #970
2018-01-25 10:42:48 +02:00
Noam Meltzer
d6b47da593
Update code of conduct ( #980 )
...
* Update code of conduct
* fix typo [ci skip]
* remove ending periods [ci skip]
2018-01-20 18:17:06 +01:00
Noam Meltzer
ddf3a1fcad
jobqueue: Thread safety fixes ( #977 )
...
- Fix JobQueue.jobs to obtain a lock on the internal queue object prior
to iterating over it.
- Rename JobQueue.queue to JobQueue._queue. This shouldn't be
accessible by the user directly, but rather only with sanitized
thread safe methods.
- JobQueue.interval_seconds - access self.interval only once to avoid
race conditions.
Fixes #968
2018-01-20 15:27:01 +02:00
Eldinnie
820f4e1d59
Fix user profile photo unitests ( #967 )
...
Telegram changed something again.
2018-01-09 17:56:43 +02:00
Mischa Krüger
eb67c039f1
Updater: Issue INFO log upon received signal ( #951 )
...
Fixes #946
2018-01-09 17:54:07 +02:00
Jacob Bom
2ca7ff82ef
Update headers to 2018 ( #962 )
...
Also add two missing headers.
[ci skip]
2018-01-04 17:16:06 +02:00
Noam Meltzer
a2c04313d3
Fix documentation & coding style of User.name & User.full_name ( #956 )
...
- Use string `format` instead of dict comprehension.
- Better documentation to signify the semantics difference between
`name` and `full_name`.
- Use string `format` instead of dict comprehension.
- Better documentation to signify the semantics difference between
`name` and `full_name`.
* Removed the NOTE and mentinoed the "@" prefix.
2017-12-30 22:58:32 +02:00
Eldinnie
0faa19726a
wrong link to paymentbot ( #942 )
...
[CI skip]
2017-12-30 15:17:36 +02:00
graynk
d347c0d45e
User.full_name convinience property ( #949 )
...
Fixes #943
2017-12-30 15:13:06 +02:00
Daniel Reed
5c8470e552
Store bot in PreCheckoutQuery ( #953 )
...
Fixes #937
2017-12-30 14:48:38 +02:00
Eldin
3d4e0500bf
Bump to 9.0.0 + changelog
2017-12-08 23:08:42 +01:00
Eldinnie
042d4bb2a4
add support for 3.5 api ( #920 )
...
* add support for 3.5 api
* removed "unused" import by accident
* Hardcoded values
Appearantly TG decided to change the size of a send image (again)
* test_official
* Improve coverage
* Finishing up
* spelling error
* pytest fixed tot < than 3.3 for python 3.3 support
* flake8
* rollback requirements
* as per CR
* object for provider_data
Make it possible to send an object that will be json-serialized for send_invoice + tests
* shorten error message
* using string_types
2017-12-08 22:38:59 +01:00
Eldinnie
1e22d570a3
Drop 3.3 from support ( #930 )
...
* Remove 3.3 from testsuite and setup.py
* add changelog to the docs
[CI skip]
2017-12-08 22:38:23 +01:00
Jacob Bom
2719c54899
Small changes to the examples readme ( #893 )
...
- Add paymentbot.py
- More docs links
2017-12-06 13:26:51 +01:00
Erjan Kalybek
a5c8e98ee7
Fix sendPhoto method description ( #919 )
2017-12-06 13:24:34 +01:00
Eldinnie
40113bb3ad
make codecov less aggressive ( #929 )
...
[CI skip]
2017-12-06 13:23:49 +01:00
Eldinnie
e8fac19de3
codecov tweaking ( #897 )
...
Reduces the size and amount of info from the codecov bot on PR
2017-11-07 14:33:24 +01:00
Jacob Bom
820ae3b7d6
Create CODE_OF_CONDUCT.md ( #892 )
2017-10-26 19:57:38 +02:00
Noam Meltzer
4b3315db6f
Fix race condition in dispatcher start/stop ( #887 )
...
fixes #881
2017-10-21 14:40:24 +03:00
Jannes Höke
3ed05991ad
log error trace if there is no error handler registered ( #694 )
2017-10-21 12:35:11 +03:00
Simon Schürrle
38637ecf62
Update examples with consistent string formatting ( #870 )
...
* Use the modern string.format().
* Wherever logging is involved, let logging take care of the expansion.
2017-10-20 21:24:00 +03:00
Simon Schürrle
bb5357a815
Fix typo in the docstring ( #878 )
...
Changed `Filters.status_update.new_chat_member` to `Filters.status_update.new_chat_members`
Thanks to @ajbvn for pointing it out.
[ci skip]
2017-10-18 22:00:17 +03:00
Rahiel Kasim
f55018abd9
CHANGES.rst: fix some typo's ( #874 )
2017-10-15 16:59:41 +02:00
Jacob Bom
8df35fd53b
Fix for crashes on 8.1 ( #873 )
...
* Make Commandhandler not crash on single char messages
* Bump release and update CHANGES.rst for 8.1.1
* No error on single / and test
2017-10-15 16:59:10 +02:00
Noam Meltzer
23774383dc
Bump version & update CHANGES.rst for 8.1.0 release
2017-10-15 00:04:35 +03:00
Eldinnie
28680ac1d5
edited_updates also for channel_posts ( #832 )
2017-10-14 23:48:06 +03:00
Jannes Höke
ec9b16ac7b
Fix command not recognized if it is directly followed by a newline ( #869 )
...
fixes #868
2017-10-14 21:04:02 +03:00
Eldinnie
bfad2fa1f3
support 3.4 API ( #865 )
2017-10-14 21:03:02 +03:00
Noam Meltzer
8a8b1215c8
Fix documentation of Request object initialization (for advanced users) ( #866 )
...
fixes #676
2017-10-12 00:39:09 +03:00
Eldinnie
2aa456d637
remove Bot._message_wrapper ( #822 )
...
Moved tho code to the @message decorator instead
fixes #752
2017-10-11 23:38:00 +03:00
Jannes Höke
445bcde686
Update README.rst
2017-10-10 13:09:11 +02:00
Rahiel Kasim
6facde9534
README: show AppVeyor logo in badge ( #861 )
2017-10-09 15:23:59 +02:00
Rahiel Kasim
046ec28361
README: add AppVeyor badge ( closes #591 ) ( #856 )
2017-10-07 18:36:31 +02:00
Eldinnie
3d00ae25df
Update .codeclimate.yml
...
Last edit :S
2017-09-25 21:42:17 +02:00
Eldinnie
aeedcfb874
Update .codeclimate.yml
2017-09-25 21:38:47 +02:00
Eldinnie
6d7a61ae72
mistake in codeclimate
2017-09-25 21:37:53 +02:00
Eldinnie
d75e0f6014
Stabilize Coverage ( #846 )
...
* test_error added
* ignore unstables for coverage
2017-09-25 20:58:10 +02:00
Jeff
dbb3b16edc
Add Job Class to docs ( #845 )
...
* fix job class missing from docs
* fix typo
2017-09-25 20:57:53 +02:00
Eldinnie
7c3bba42cc
loosen codeclimate ( #833 )
...
Codeclimate's defaults are pretty strict. Our complexity is High for objects and bot methods so I decreased the RADON-setting to be a bit more forgiving.
Secondly I removed the warning for `similar` code leaving only `duplicate` code.
2017-09-25 20:57:06 +02:00
Eldinnie
8754980448
add utils.helpers to docs ( #828 )
2017-09-25 20:56:28 +02:00
Jeff
5614af1847
Docstring Fix for ext/filters.py ( #830 )
2017-09-15 23:56:16 +02:00
Marco Túlio Zuquim
e362a5b59d
Small documentation fix in user.py ( #829 )
2017-09-15 23:55:35 +02:00
Eldinnie
dd20237f55
Enable appveyor ( #823 )
...
* modify tests and appveyor.yml
* modify test_meta
* Add pytest-cov to requirements
* appveyor.yaml adjustment
* another try
* oops
* skipping jobqueue tests on appveyor
appveyor is terrible at precise timings.
* adding reasons to skips
* modify test_official
* coverage trouble
* Make it look good
* appveyor.yml
* codecov flags
* oops
* update appveyor.yml
* shorten decorators
* removed redundant quotes
2017-09-14 17:54:00 +02:00
Eldinnie
c5ab8930b9
Update appveyor.yml
...
small update
2017-09-09 23:53:49 +02:00
Jacob Bom
f5b746f1ba
Switch to codecov ( #819 )
...
* Switch to codecov
We've talked about it in the dev group for a while now, finally doing it
* Update coverage in readme
[ci skip]
2017-09-09 23:38:19 +02:00
Eldinnie
4fe4eea893
only run coverage for relevant test ( #818 )
...
* fix test troubles
* another try
* testing travis build?
* trying pytestmark
2017-09-09 23:37:07 +02:00
Yii Kuo Chong
e39b6abe61
Small documentation fix ( #815 )
...
Fixes #799
2017-09-07 22:55:06 +03:00
Pieter Schutz
6012fa65c1
Bump to version 8.0
2017-09-01 10:38:15 +02:00
Pieter Schutz
ef9dbacf7e
Fix last issues for new release
2017-09-01 10:38:04 +02:00