evgfilim1
d0f6860bac
Fixed tests to use new filters
2017-06-01 07:10:26 +05:00
evgfilim1
d98b18d1e3
Added new status_update
filters
2017-06-01 07:09:30 +05:00
Jannes Höke
1951d6fdcd
Bump version to v6.0.2
2017-05-29 21:24:12 +02:00
Noam Meltzer
ae33d33580
Merge pull request #625 from python-telegram-bot/videonote
...
Add VideoNote
2017-05-26 19:34:13 +03:00
Noam Meltzer
706f79fa99
Fix setup.py with urllib3 vendoring
...
fixes #635
2017-05-26 19:24:54 +03:00
Noam Meltzer
a5bfc52326
videonote: Semantic fix according to CR
2017-05-26 18:36:21 +03:00
Noam Meltzer
858684ab64
Merge pull request #628 from python-telegram-bot/may18minor
...
May 18 minor changes
2017-05-26 18:23:31 +03:00
Jacob Bom
f4c6197c5f
Update filters to new_chat_members instead of new_chat_member
2017-05-25 14:45:47 +02:00
Jacob Bom
a7044562af
Fix stuff as per @tsnoam's comments
2017-05-25 14:16:53 +02:00
Jacob Bom
27a4fa8dba
Move *_duration attributes as to keep backwardscompat
2017-05-25 14:05:08 +02:00
Jacob Bom
a41ee3b040
Actually deprecate new_chat_member to help users switch
2017-05-25 14:02:41 +02:00
Jacob Bom
8499dcc33c
Better deprecation warnings
...
Actually shows where in the users code the error happened, not just where the warning came from in our internal code
2017-05-25 13:53:35 +02:00
Noam Meltzer
ff897ce9ef
Avoid confusion with user's urllib3 by renaming vendored urllib3
2017-05-24 13:14:33 +03:00
Jannes Höke
23b37c9ea4
mention beta version in README
2017-05-21 22:10:08 +02:00
Jacob Bom
5a15d1b5d6
Add mpeg4_duration and gif_duration to inline gif and mpeg4gif
2017-05-21 14:38:12 +02:00
Jacob Bom
ad347b5c02
new_chat_member -> new_chat_members
...
Keep old for now... we can remove it in the future when telegram stops parsing it along.
Also: TODO: write proper Message tests
2017-05-21 14:32:36 +02:00
Jannes Höke
017fdeaae8
run yapf with --diff
2017-05-21 14:29:24 +02:00
Jannes Höke
ba6c4fd517
Bump version to v6.0.1
2017-05-21 14:25:40 +02:00
Jacob Bom
99ecac5649
assertRaisesRegex doesn't exist on py2 (also fuck yapf)
...
This deprecation is totally gonna come back and bite us when the regexp
gets removed completely in never version´
2017-05-21 14:10:55 +02:00
Jannes Höke
1c4c228cf1
add support for User.language_code ( #624 )
...
* add support for User.language_code
* Add language filter
Useful is you wanna do something like restrict your shop to a single or a few locales or something like that.
2017-05-21 14:00:53 +02:00
Jacob Bom
2e89e21261
Fix text_markdown and text_html ( #623 )
...
* Fix text_markdown and text_html
* Missed a few narrow build checks
* Added tests for emoji-first strings and emojis in url
2017-05-21 14:00:07 +02:00
Jacob Bom
7583fa9d65
Tests for video notes
2017-05-21 13:51:58 +02:00
Jacob Bom
2dd5290ec2
Add reply_video_note in line with other reply_*
2017-05-21 13:51:27 +02:00
Jacob Bom
41299244b7
Allow InputFile to handle video notes
2017-05-21 13:50:52 +02:00
Jacob Bom
0e2bcf28a6
Export VideoNote
2017-05-21 13:50:15 +02:00
Jacob Bom
2746ab77e5
Add sendVideoNote to Bot
2017-05-20 19:35:55 +02:00
Jacob Bom
ae39c902ed
Add video_note to Message
2017-05-20 19:30:07 +02:00
Jacob Bom
65929a0813
VideoNote chatactions
2017-05-20 19:26:26 +02:00
Jacob Bom
4426eb0c61
Add VideoNote
2017-05-20 19:25:24 +02:00
Jannes Höke
6479e15578
Bump version to v6.0.0
2017-05-19 21:49:01 +02:00
Jannes Höke
5dd3a660e3
forgot some escaping
2017-05-19 20:57:52 +02:00
Eldinnie
e2a651afc8
Allow edited as seperate input ( #608 )
...
* Allow edited as seperate input
In short made it possible to tune messagehandler more to your wishes. and choose exactly what updates to receive. messages, edited_message or channel_post or a combination.
- Added the edited_updates argument to MessageHandler
- Added DepricationWarning when using allow_edited
- replaced _is_allowed_message and _is_allowed_channel_post with _is_allowed_update
- Modified tests to reflect new way
* oops
Spelled deprecation wrong
made an error in the _is_allowed_update.
* Python 2 does not have assertWarns.
* remove unneeded statements
2017-05-19 20:26:10 +02:00
Evgen
33512ffd2e
Improved CommandHandler ( #613 )
...
* Improved CommandHandler
Now you can pass list of commands instead of one command
* Added tests for list of commands
* Return backward compatibility
Renamed `commands` to `command` in CommandHandler
* Added test for a command not in the list
* Fixed py2 unicode command support in `CommandHandler`
2017-05-19 20:21:37 +02:00
Evgen
c2c5452829
Updated docstring in deleteMessage methods ( #618 )
...
* Removed "undocumented" notice
* Updated docstring according to Bot API documentation
* Removed extra line
2017-05-19 20:21:20 +02:00
Jannes Höke
9aa5522694
sanitize html and markdown in Message.text_html and text_markdown ( #621 )
...
* sanitize html and markdown in Message.text_html and text_markdown
* add import for escape_html
2017-05-19 19:11:40 +02:00
Noam Meltzer
9720f59d7e
Fix docs ( #614 )
...
* Spelling fixes in `README.rst`
Fixes #609 and #610
* Fixed and added some type hints in docstrings
2017-05-17 22:46:06 +03:00
evgfilim1
578627feca
Fixed and added some type hints in docstrings
2017-05-17 21:41:08 +05:00
evgfilim1
257b8321f8
Spelling fixes in README.rst
...
Fixes #609 and #610
2017-05-16 22:59:02 +05:00
Eldinnie
4f2ea5b0f1
Update readme to reflect changed install procedure ( #610 )
...
Fixes #609
2017-05-16 10:32:36 +03:00
Noam Meltzer
9a2d5e0410
Update copyright notice to include 2017 - missing files from another PR
2017-05-15 00:37:40 +03:00
Jacob Bom
1b7f83625c
Update copyright notice to include 2017
...
Not strictly needed, but it helps show that the project is being actively
developed which I find important.
2017-05-15 00:36:49 +03:00
Jacob Bom
da01601ff9
Add equality rich comparision operators to telegram objects ( #604 )
...
fixes #587
2017-05-15 00:29:31 +03:00
Evgen
752b64769d
Fix for #601 ( #603 )
2017-05-12 17:42:02 +02:00
Evgen
f3b75d95c4
Implemented undocumented 'deleteMessage' method ( #602 )
...
* Implemented `Bot.delete_message()` and `Message.delete()` methods
* Added tests for `Bot.delete_message()` and `Messsage.delete()`
* Added myself to `AUTHORS.rst`
* Using `assertRaisesRegexp` instead of `assertRaisesRegex` in tests
Now tests can run on Python 2.7 without raising 'AttributeError'
* Fix docstring
Added a warning to the docstring describing that this method is undocumented and not guaranteed to work
2017-05-12 17:40:57 +02:00
Eldinnie
36b98b0ab4
fix mimetype errors in video tests ( #600 )
2017-05-12 17:39:28 +02:00
Eldinnie
05b85d4334
Skip test_idle() and test_UserSignal on Windows ( #599 )
2017-05-12 17:39:14 +02:00
Eldinnie
f27807552f
refactor self.id -> self._id to let pycharms testrunner run ( #598 )
2017-05-12 17:38:51 +02:00
Eldinnie
f3aca42e69
pass errormessage to Unauthorized ( #597 )
2017-05-12 17:38:36 +02:00
Noam Meltzer
ed49bdb19c
Merge pull request #592 from python-telegram-bot/snake_case
...
prefer snake_case for telegram.Bot methods
2017-05-08 00:30:05 +03:00
Rahiel Kasim
9f3afa5fa2
prefer snake_case for telegram.Bot methods
2017-05-07 16:09:58 +02:00