Commit graph

371 commits

Author SHA1 Message Date
njittam
9241534ba6 Create command_handler_example.py
this is an example of how to write a commandHandler
2015-09-02 16:21:11 +02:00
njittam
256d219862 A command handler
I saw in the TODO list on pypi that you wanted a commandhandler. 
I am not sure about the run and run_once commands.
and  I didn't implement logging yet.
2015-09-02 16:17:57 +02:00
njittam
8fddd3b027 test for commandHandler
Not everything has a test. and I'm quite new to unit testing so I'm not sure if I am doing this the right way.
2015-09-02 16:11:21 +02:00
njittam
3f3cb1edc5 Update AUTHORS.rst 2015-09-02 16:04:15 +02:00
Leandro Toledo
f037a8c776 Update README.rst 2015-08-29 10:55:23 -03:00
Leandro Toledo
98c489c44f Fix Python 3 2015-08-28 17:53:31 -03:00
Leandro Toledo
a86fc6c2ac Improving the design of existing Telegram classes 2015-08-28 17:45:44 -03:00
Leandro Toledo
1c4595123c Add improvements to tests 2015-08-28 13:28:58 -03:00
Leandro Toledo
942706e20f Add PyPy to travis 2015-08-28 13:09:47 -03:00
Leandro Toledo
6837bef9bb Fix tests for Py2.6 2015-08-28 13:07:12 -03:00
Leandro Toledo
6132e65dc3 Fix travis 2015-08-28 13:04:36 -03:00
Leandro Toledo
0f924508f7 Fix tests and minor changes 2015-08-28 13:02:02 -03:00
Leandro Toledo
b20f5af1e1 Improving the design of existing Telegram classes and adding docstrings 2015-08-28 12:19:30 -03:00
Leandro Toledo
ce58f72566 Merge branch 'testing' of https://github.com/leandrotoledo/python-telegram-bot into testing 2015-08-28 11:11:32 -03:00
Leandro Toledo
f4839a3afe Merge pull request #47 from mASOUDd/testing
Extended the Bot class. Added a dispatching mechanism, and decorators to add commands.
2015-08-28 10:50:18 -03:00
Masoud Naservand
25f9eb7898 Extended the Bot class. Added a dispatching mechanism,
and decorators to add command to the bot the flask routing style, e.g:
>>> @bot.command('/start')
... def start(command, user_id):
...    return ('Hello, there', None, None)
2015-08-28 18:08:03 +04:30
Leandro Toledo
c625b9a449 Update README.rst 2015-08-26 21:45:09 -03:00
Leandro Toledo
e239315cca Merge pull request #46 from rahiel/master
add remaining chat actions
2015-08-25 11:22:03 -03:00
rahiel
ccdb999e37 add remaining chat actions 2015-08-25 13:45:02 +02:00
Leandro Toledo
2f99b785b2 Merge pull request #45 from rahiel/master
use long polling in examples
2015-08-24 09:26:20 -03:00
rahiel
41eb45918c use long polling in examples 2015-08-24 11:46:33 +02:00
leandrotoledo
d43e292499 Adding required comments 2015-08-21 23:22:58 -03:00
leandrotoledo
fdb5f2339c Improving the design of existing Telegram classes and adding docstrings 2015-08-21 23:15:29 -03:00
leandrotoledo
d03a394075 Refactoring, improving the design of existing message class and adding docstrings 2015-08-21 14:49:07 -03:00
Leandro Toledo
3658b4231c Update README.rst 2015-08-21 14:09:13 -03:00
leandrotoledo
1d6e9502cb Adding botan.io support 2015-08-20 21:07:49 -03:00
Leandro Toledo
92ca92341a Merge pull request #43 from rahiel/master
confirm processed message in examples
2015-08-20 15:49:21 -03:00
rahiel
0691b1e971 confirm processed message in examples 2015-08-20 19:58:57 +02:00
leandrotoledo
8746222cf6 Releasing v2.7.1 2015-08-19 16:16:06 -03:00
leandrotoledo
32dc05ed36 Fix lines too long 2015-08-19 16:08:03 -03:00
leandrotoledo
ba5902c1d4 Fix serialization when message has reply_to_message, new_chat_participant or new_chat_photo #42 2015-08-19 15:41:09 -03:00
Leandro Toledo
80371c9f6e Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot 2015-08-17 13:15:41 -03:00
Leandro Toledo
a8fd6b5061 Releasing v2.7 2015-08-17 13:15:29 -03:00
Leandro Toledo
53f5911aad Update README.rst 2015-08-17 11:45:28 -03:00
Leandro Toledo
d4870148c7 Add telegram.voice to docs and minor docstring fixes #39 2015-08-17 11:40:21 -03:00
Leandro Toledo
6e2881b31b Adding support for Voice object and sendVoice method #39 2015-08-17 11:34:42 -03:00
Leandro Toledo
686aecb914 Fix tests for Python 3 2015-08-17 10:01:17 -03:00
Leandro Toledo
35f31bf136 Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot 2015-08-17 09:57:07 -03:00
Leandro Toledo
56f6845969 Adding is_json tests and fixes json serialization when a forwared message #38 2015-08-17 09:56:51 -03:00
Leandro Toledo
505df01ae1 Update AUTHORS.rst 2015-08-15 15:19:17 -03:00
Leandro Toledo
3be58b759f Releasing v2.6.1 2015-08-15 15:06:32 -03:00
Leandro Toledo
5dc1e4cac1 Use imghdr instead re to match image headers. Fixes #37 2015-08-15 15:00:28 -03:00
Leandro Toledo
2cecca8324 Releasing v2.6.0 2015-08-14 16:36:39 -03:00
Leandro Toledo
109439022f Minor fixes and cfg for setuptools 2015-08-14 16:30:30 -03:00
Leandro Toledo
59ff1b68b5 clearCredentians and require_authentication are now decapred, bot properties will be called when needed only #33 2015-08-14 16:25:27 -03:00
Leandro Toledo
fda1843593 Remove import pdb 2015-08-14 15:48:33 -03:00
Leandro Toledo
9b6ccaf94b Convert unix timestamp from date and forward_date in messages to date object #35 2015-08-14 15:47:31 -03:00
Leandro Toledo
ea1614631e Update and rename CONTRIBUTING to CONTRIBUTING.rst 2015-08-12 18:57:46 -03:00
Leandro Toledo
6bcc8cdcfd Update AUTHORS.rst 2015-08-12 18:44:40 -03:00
leandrotoledo
9b3ce5069e Releasing 2.5.3 2015-08-11 23:49:26 -03:00