Commit graph

46 commits

Author SHA1 Message Date
leandrotoledo
f2671ffff3 fix space trailing 2015-08-11 23:46:09 -03:00
Leandro Toledo
3974690b90 Fixes base_url when pickling object 2015-08-11 23:43:40 -03:00
Leandro Toledo
ecdf32b5f6 Apply new Telegram Bot API changes #32 2015-08-11 17:32:06 -03:00
Leandro Toledo
163b27b7dd fix license header 2015-08-11 16:58:17 -03:00
Leandro Toledo
4d59e8a663 Adding coveralls support, adding base_url to pickle rebuild 2015-08-11 14:13:02 -03:00
Leandro Toledo
5bfbaff318 Implements Bot.__reduce__ to allow dump into pickle objs #31 2015-08-11 12:41:26 -03:00
Leandro Toledo
59b247af94 Moving from GPLv2 to LGPLv3 2015-08-10 13:57:31 -03:00
Leandro Toledo
66aaaf9ec0 Disable debug and any logging calls in API to fix #21 2015-08-09 09:41:58 -03:00
Leandro Toledo
ab88afc3d3 PEP8 and minor fixes 2015-08-08 19:35:44 -03:00
Leandro Toledo
a91c158825 Merge pull request #22 from wjt/logging
Don't call logging.basicConfig() in library code
2015-08-08 18:59:38 -03:00
Will Thompson
98e40ee059 Bot._requestUrl: raise if method not in ('GET', 'POST')
If this happens, there is a bug in the library. Better to raise the
error explicitly rather than return a value of a totally unexpected type
and crash later.
2015-07-30 10:47:47 +01:00
Will Thompson
a034317c87 Don't call logging.basicConfig() in library code
Logging should be configured by the application, not by libraries it
uses. Libraries should just get a logger and log to it.

Fixes #21
2015-07-30 07:04:59 +01:00
leandrotoledo
6b7476c18f Updates echobot and getUpdates logging 2015-07-20 08:59:41 -03:00
leandrotoledo
cad325c874 Adding logging 2015-07-20 08:50:30 -03:00
leandrotoledo
61530aeb34 Adding logging decorator 2015-07-20 08:25:04 -03:00
leandrotoledo
92c3f48cda Removing redundant parentheses, Python3 support, user.name property 2015-07-15 10:05:31 -03:00
leandrotoledo
d8912f5290 move isFileRequest to InputFile as @staticmethod, new tests written, README updated 2015-07-14 05:25:44 -03:00
Leandro Toledo
582bb61e5b Adding echobot example and fix IOError typo 2015-07-12 09:54:03 -03:00
Leandro Toledo
5cd153c535 PEP8 and minor typos fixes 2015-07-11 19:14:37 -03:00
Leandro Toledo
2e7e24d16c Merge pull request #3 from JASON0916/simplify-code
Simplify code
2015-07-11 19:05:09 -03:00
Leandro Toledo
2d822b10fd Adding decorators for send* functions. New decorator for authentication 2015-07-11 19:01:02 -03:00
JASON0916
f0a5b756cf create _isFileRequest to simplify _requestUrl 2015-07-11 22:52:28 +08:00
JASON0916
8ca257ca61 simplify _requestUrl 2015-07-11 14:38:43 +08:00
Leandro Toledo
8ab910bd62 Adding URL support to send files 2015-07-10 19:46:15 -03:00
Leandro Toledo
5c6d233179 Fixes unicode erros when sending files 2015-07-10 16:50:33 -03:00
Leandro Toledo
8f8b220bff Get rid of requests requirement, adding sendVideo file test 2015-07-10 13:43:35 -03:00
macrojames
d38a21c697 Adding setWebhook 2015-07-09 18:26:17 +02:00
Leandro Toledo
b90b608fb1 Add to_json method to classes 2015-07-09 11:40:44 -03:00
Leandro Toledo
ff0f875b85 Keyboards models and PEP8 2015-07-08 22:33:13 -03:00
Leandro Toledo
0214910741 Adding ReplyMarkup, ForceReply, renaming methods and minor fixes 2015-07-08 21:15:46 -03:00
Leandro Toledo
b39b6241b5 Updating README and minor fixes 2015-07-08 17:58:50 -03:00
Leandro Toledo
f79c47bffb Adding Auth validation 2015-07-08 17:23:18 -03:00
Leandro Toledo
804db5207c Adding TelegramError for handling 2015-07-08 16:58:18 -03:00
Leandro Toledo
dadad120fc Adding UserProfilePhotos doc and flake8 minor fixes 2015-07-08 10:14:07 -03:00
Leandro Toledo
0b19099eea Adding getUserProfilePhotos 2015-07-08 10:10:08 -03:00
Leandro Toledo
c20d6465fc Adding sendChatAction, its tests and minor fixes 2015-07-08 09:55:06 -03:00
Leandro Toledo
86c1f68419 Adding sendLocation, its tests and minor fixes 2015-07-08 09:37:25 -03:00
Leandro Toledo
6bb8c4e4a0 Adding getUpdates doc 2015-07-08 09:22:31 -03:00
Leandro Toledo
5963649c9a Adding sendVideo and minor fixes 2015-07-08 09:17:18 -03:00
Leandro Toledo
635fae04e6 Adding Sticker and its tests 2015-07-07 23:52:12 -03:00
Leandro Toledo
368fe234f3 Adding Document and minor fixes 2015-07-07 21:12:51 -03:00
Leandro Toledo
0b0bc3d550 Adding sendAudio method 2015-07-07 20:10:43 -03:00
Leandro Toledo
f5976fc0d7 Adding documentation 2015-07-07 19:54:00 -03:00
Leandro Toledo
5e2f60ed7d Adding sendPhoto method by file_id 2015-07-07 19:06:17 -03:00
Leandro Toledo
f7a15306a8 Adding sendPhoto method 2015-07-07 18:46:32 -03:00
Leandro Toledo
fdc913a580 Adding Travis CI 2015-07-07 16:50:36 -03:00