Noam Meltzer
a5bfc52326
videonote: Semantic fix according to CR
2017-05-26 18:36:21 +03:00
Jacob Bom
a7044562af
Fix stuff as per @tsnoam's comments
2017-05-25 14:16:53 +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
evgfilim1
578627feca
Fixed and added some type hints in docstrings
2017-05-17 21:41:08 +05: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
f3aca42e69
pass errormessage to Unauthorized ( #597 )
2017-05-12 17:38:36 +02:00
Rahiel Kasim
9f3afa5fa2
prefer snake_case for telegram.Bot methods
2017-05-07 16:09:58 +02:00
Joscha Götzer
cdf36a20b7
Fixed deprecation warning ( #586 )
2017-04-29 19:56:27 +02:00
manorom
c5598b96bc
Fix Bug #571 (second try) ( #574 )
...
* Fix Bug #571
ConversationHandler will not process CallbackQuery if per_chat=True and
the CallbackQuery has no message attached to it (as is the case with
buttons on inline results)
* Adds test case for CallbackQuery without Chat
2017-04-29 15:51:48 +02:00
Noam Meltzer
ca4351079f
Merge pull request #542 from python-telegram-bot/urllib3-vendor-beta
...
Vendor (embed) urllib3 with our package.
2017-04-29 16:38:44 +03:00
Jannes Höke
c7dbdce3dc
Allow CallbackQueryHandler in ConversationHandler with per_mess… ( #561 )
...
* 🐛 Allow CallbackQueryHandler in ConversationHandler with per_message=False
but show a warning #556
* ⏪ warning logs instead of ValueErrors
#556
2017-04-29 15:15:17 +03:00
Noam Meltzer
fe5ae8ed84
request.py: Fix warning on stderr irrelevant for most users
...
Attempting to import urllib3.contrib.socks may fail if PySocks is not
installed. Most users won't care for that.
Only import that module if the user requested to use a socks proxy.
2017-04-29 14:42:36 +03:00
Noam Meltzer
a6b28b022a
Merge remote-tracking branch 'origin/master' into urllib3-vendor-beta
2017-04-29 14:09:45 +03:00
John Yong
1d905d567c
GAE support via urllib3.contrib.appengine module #334
2017-04-27 16:59:35 +08:00
Jannes Höke
4541476143
enforce urllib3==1.20 ( #580 )
...
* 🚑 enforce urllib3==1.20
#579
* 🚑 Bump version to v5.3.1
#579
2017-04-25 17:26:54 +02:00
Dickson Tan
11a3de67ea
Remove deprecated code #408 part 1 ( #564 )
...
* Remove non-pep8 dispatcher methods
* callbackqueryhandler: Remove non-pep8 compliant methods
* commandhandler: Remove non-pep8 compliant methods
* handler: Remove non-pep8 compliant methods
* messagehandler: Remove non-pep8 compliant methods
* stringcommandhandler: Remove non-pep8 compliant methods
* stringregexhandler: Remove non-pep8 compliant methods
* test_updater: fix usage of deprecated methods
* dispatcher: fix accidental misalignment of comments by pre-commit hook
* Add myself to list of contributors
2017-04-25 10:39:02 +02:00
Eldinnie
90bf26c09b
Issue 566 ( #577 )
...
* stripping token of whitespaces before starting bot
* Line feed
* - Case insensitivity for commandhandler
- Ignore pylint case on windows.
2017-04-25 10:37:06 +02:00
Eldinnie
b5b09884b1
Group filters ( #575 )
...
* stripping token of whitespaces before starting bot
* Line feed
* show exception that's caused (fixes flake8 failing)
* Add private/group filters
Add filters:
- Filters.private (for messages in private chats)
- Filters.group (for messages in group chats)
* use constants
2017-04-23 23:22:05 +02:00
Iulian Onofrei
44d7bad11c
Update constants.py ( #553 )
...
Add maximum inline query results constant
2017-03-29 17:31:26 +02:00
Jacob Bom
ad5f009ce7
Add the ability to invert (not) filters ( #552 )
...
* Add InvertedFilter and use it from __invert__
* Add docstrings and __str__ for inverting filters
* Tests for inverted filters
2017-03-28 18:38:44 +02:00
Jannes Höke
8fe6e13ff2
Update handlers ( #532 )
...
* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
#507
* ✨ Update RegexHandler to work with edited messages and channel posts
* 🔨 messagehandler.py: refactor channel_posts_updates -> channel_post_updates
* 🔨 handler.py: use effective_ properties
2017-03-26 14:36:45 +02:00
Jannes Höke
ff39e2436e
Refactor Update.extract_
methods to Update.effective_
properties ( #531 )
...
* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
#507
* 🔨 handler.py: use effective_ properties
2017-03-26 14:36:34 +02:00
Alex Hirschfeld
5b14b134dc
Added user defined function for updater's signalHandler ( #512 )
...
* Added user defined function for updater's signalHandler
* Added test_userSignal to test_updater
* Added test_userSignal to test_updater
Fixing paren
2017-03-26 14:36:13 +02:00
Jannes Höke
5897affa07
add missing allowed_updates to start_webhook ( #549 )
...
* 🐛 add missing allowed_updates to start_webhook
#548
* 🔨 fix webhook-related tests
#548
2017-03-25 12:46:37 +01:00
Jannes Höke
9982f3c908
🐛 fix message date parsing for messages without a timestamp ( #550 )
...
#546
2017-03-25 12:15:37 +01:00
thodnev
22142e7cbd
Introduce MessageQueue ( #537 )
...
* Introduce MessageQueue
* minor documentation and terminology fixes according to the review
* minor documentation and terminology fixes according to the review
* minor documentation and terminology fixes according to the review
* pep8 fix
2017-03-15 17:35:33 +01:00
Noam Meltzer
4c8d1c9a5e
Fix Bot.sendDocument
2017-03-11 23:55:26 +02:00
Noam Meltzer
2b930c221d
Sane default for sending files timeout
2017-03-11 16:23:43 +02:00
Jannes Höke
2a1d40bd28
🚧 manipulate sys.path to prefer vendor urllib3
...
#533
2017-03-09 23:29:15 +01:00
Jannes Höke
1d4464ddbd
➕ add git submodule to vendor urllib3
...
#533
2017-03-09 23:16:58 +01:00
Jose Luis Salazar Gonzalez
e78d11a99b
Add filters to commandHandler ( #536 )
...
* Add filters to commandHandler
* Add commandHandler tests with filters
* Add myself to authors
2017-02-28 15:44:55 +01:00
Jannes Höke
cc73469dab
Issue 502 ( #530 )
...
* conversationhandler.py: add per_chat, per_user and per_message
* test_conversationhandler.py: test case per_user=False
* test_conversationhandler.py: add test for callbackqueryhandlers
* ✏️ Fix accidental typo in logging format
2017-02-27 17:52:58 +01:00
Jannes Höke
853d823964
🚨 promise.py: remove pylint warning
...
#529
2017-02-27 16:23:04 +01:00
Jannes Höke
6b7144bbab
🚨 fix yapf
2017-02-27 14:53:28 +01:00
Jannes Höke
f8b13440c1
🔀 Merge thodnev/ptb into ptb/promises-with-exceptions
...
#529
2017-02-27 14:45:12 +01:00