Commit graph

147 commits

Author SHA1 Message Date
Leandro Toledo
f623db06ea Revert "Feature/requests" 2015-09-16 00:21:45 -03:00
pecheny
d5a9c185f0 use requests instead of urllib if possible; add timeout and decorator to get and post 2015-09-14 19:13:22 +03:00
Leandro Toledo
cbdeacd22d Releasing v2.8.3 2015-09-10 21:00:05 -03:00
Leandro Toledo
1e2fdedc45 Removing command_handler from master (under dev) 2015-09-10 20:44:23 -03:00
Leandro Toledo
eb557e0eba Keeping features under development off this release 2015-09-10 20:37:25 -03:00
Leandro Toledo
a7ac4193fe PEP8, lint and TelegramError class refactor 2015-09-10 20:08:24 -03:00
ErgoZ
c8a14bf34d Merge branch 'testing' of https://github.com/leandrotoledo/python-telegram-bot into ISSUE-58
Conflicts:
	telegram/__init__.py
2015-09-10 20:42:56 +03:00
ErgoZ
53c44f14bd Add Markdown support for sendMessage method. 2015-09-10 20:15:20 +03:00
Leandro Toledo
e75deea25c Merge pull request #59 from ergoz/PR57-Fix
Code cleanup for filename. Filename uses only for sendDocument.
2015-09-10 08:56:11 -03:00
ErgoZ
17b8bb4881 Code cleanup for filename. Filename uses only for sendDocument. 2015-09-10 14:46:49 +03:00
leandrotoledo
009862593b Fix Py3 2015-09-09 09:34:45 -03:00
leandrotoledo
e2fa052f54 Send JSON requests over urlencoded post data 2015-09-09 09:29:23 -03:00
leandrotoledo
dcfe08dbda Add sticker as an inputfile 2015-09-09 09:28:58 -03:00
Leandro Toledo
7059930b5d Merge pull request #55 from njittam/testing
add a father command. and hide commands in help.
2015-09-09 09:08:39 -03:00
leandrotoledo
77977b99b1 Add tests to custom filename arg #56 2015-09-08 15:52:10 -03:00
ErgoZ Riftbit Vaper
c7f2add463 small pretty fix for self.data.pop('filename') 2015-09-08 21:17:54 +03:00
ErgoZ Riftbit Vaper
8a074fd719 Delete unused check (forget from previous local version) 2015-09-08 21:13:11 +03:00
ErgoZ Riftbit Vaper
6237bb636c Fix InputFile class for python 3+ support 2015-09-08 20:54:50 +03:00
ErgoZ
4a761d0611 Add ability to set custom filename (fix InputFile class)
For commands that uses InputFile class
2015-09-08 20:43:28 +03:00
ErgoZ
714adc13ee Add ability to set custom filename
For commands that uses InputFile class
2015-09-08 20:42:23 +03:00
leandrotoledo
e1edeb7bec Improve design of this class 2015-09-07 15:54:12 -03:00
leandrotoledo
a409fc511d Improve raise of empty chat_id 2015-09-07 15:53:43 -03:00
leandrotoledo
69d705a99f strize raw String properties for Telegram Objects 2015-09-07 15:53:09 -03:00
mattijn
89bab207b6 pep8 2015-09-07 05:11:08 +02:00
mattijn
69aa1c252b added an easier way to get frequent commands from message. 2015-09-07 04:55:00 +02:00
mattijn
5b8f41b3c1 pep 8 command_handler.py 2015-09-07 04:17:43 +02:00
mattijn
ea5c690e7a add a help for extra commands. 2015-09-07 03:38:07 +02:00
mattijn
9145f24efa added a father command. and some other a way to hide commands in the help. 2015-09-07 03:13:40 +02:00
leandrotoledo
c590d9c2fd Moving _requestURL method to utils package 2015-09-05 11:56:06 -03:00
leandrotoledo
cfd401f22b Moving _requestURL method to utils package 2015-09-05 11:55:55 -03:00
leandrotoledo
7f790c3cb2 Releasing v2.8.2 2015-09-04 23:23:41 -03:00
leandrotoledo
30749c3b66 Merging testing 2015-09-04 23:21:31 -03:00
leandrotoledo
df000f8086 Fix regression on ReplyMarkup and add certificate to is_inputfile method 2015-09-04 23:20:14 -03:00
leandrotoledo
f355af1d2b Restoring new features after rebase 2015-09-04 19:11:31 -03:00
leandrotoledo
82f1d18f4b Releasing v2.8.1 2015-09-04 19:00:54 -03:00
leandrotoledo
49ff02dcf4 Fix regression on Telegram objects with thumb properties 2015-09-04 18:50:26 -03:00
leandrotoledo
bb84113272 Releasing 2.8 2015-09-04 18:19:05 -03:00
leandrotoledo
245238b3a2 Keep off some features still in progress 2015-09-04 18:03:04 -03:00
leandrotoledo
05b7fda4a1 Add certificate arg to setWebhook function 2015-09-04 17:53:39 -03:00
leandrotoledo
910959b672 Raises error when chat_id is not set 2015-09-04 17:15:44 -03: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
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
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
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
rahiel
ccdb999e37 add remaining chat actions 2015-08-25 13:45:02 +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