Leandro Toledo
5738dc553f
Releasing v2.8.5
2015-09-24 09:29:23 -03:00
Leandro Toledo
386accab80
Merge pull request #74 from leandrotoledo/http_bad_gateway_as_except
...
Handles HTTP Bad Gateway error (503) on request module #63
2015-09-24 09:26:19 -03:00
Leandro Toledo
6c9490f2c6
Handles HTTP Bad Gateway error (503) on request module #63
2015-09-24 09:17:50 -03:00
Leandro Toledo
855ab19dea
Fixes regression on Audio and Document models for unicode fields #65
2015-09-24 09:10:33 -03:00
Sergio Oller
4e1597c614
[doc] fix "Telegram user" -> "telegram sticker"
2015-09-22 11:52:10 +02:00
Leandro Toledo
75e338d5df
Releasing v2.8.4
2015-09-20 12:52:40 -03:00
Leandro Toledo
a1f35355f6
Keep bleeding edge features on testing branch
2015-09-20 12:43:32 -03:00
Leandro Toledo
b79530b10c
Adding File and its tests
2015-09-20 12:28:10 -03:00
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
leandrotoledo
1d6e9502cb
Adding botan.io support
2015-08-20 21:07:49 -03: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
a8fd6b5061
Releasing v2.7
2015-08-17 13:15:29 -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
56f6845969
Adding is_json tests and fixes json serialization when a forwared message #38
2015-08-17 09:56:51 -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
9b6ccaf94b
Convert unix timestamp from date and forward_date in messages to date object #35
2015-08-14 15:47:31 -03:00
leandrotoledo
9b3ce5069e
Releasing 2.5.3
2015-08-11 23:49:26 -03:00
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
eeaf8d9abb
Releasing 2.5.2
2015-08-11 17:37:28 -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
6b714bc805
Empty text message return empty string instead None #30
2015-08-11 10:48:29 -03:00
Leandro Toledo
85e356403a
Releasing v2.5.1
2015-08-10 14:48:24 -03:00
Leandro Toledo
59b247af94
Moving from GPLv2 to LGPLv3
2015-08-10 13:57:31 -03:00
Leandro Toledo
c4087e96d9
Releasing 2.5
2015-08-09 10:17:32 -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
adcf9b1fd5
Releasing 2.4
2015-08-08 19:37:14 -03:00
Leandro Toledo
ab88afc3d3
PEP8 and minor fixes
2015-08-08 19:35:44 -03:00
Leandro Toledo
af9acb3328
Merge pull request #24 from franciscod/py3-emoji
...
Fix emojis on py3
2015-08-08 19:28:00 -03:00
Leandro Toledo
0dc59efeb8
Releasing 2.3
2015-08-08 19:18:58 -03:00
Leandro Toledo
448cbdbd00
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot
2015-08-08 19:10:02 -03:00
Leandro Toledo
0c6ec763b1
Fixes ForceReply class
2015-08-08 19:09:24 -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
Francisco Demartino
7d2672f711
use byte literals for emojis
2015-08-06 02:45:15 -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
d90a4c9acc
Releasing 2.2
2015-07-25 18:31:01 -03: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
b6fb2bc6bf
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot into testing
2015-07-20 08:26:29 -03:00
leandrotoledo
61530aeb34
Adding logging decorator
2015-07-20 08:25:04 -03:00
leandrotoledo
5cd8d5b332
Releasing 2.1
2015-07-20 08:03:47 -03:00
leandrotoledo
185a9e9918
Fixes bug when to_data thumb for document and video
2015-07-20 08:01:14 -03:00
leandrotoledo
a1899a75e4
Releasing 2.0
2015-07-19 23:40:12 -03:00
leandrotoledo
f4ad7037e1
Fixes #12 and changes to_data to to_dict
2015-07-19 23:25:44 -03:00
leandrotoledo
859f04e566
Resolves #45 creating to_data abstractmethod on TelegramObject (new base class)
2015-07-19 23:06:04 -03:00
Leandro Toledo
ded002a0c8
Adding newline at EOF
2015-07-19 22:06:07 -03:00
Leandro Toledo
82f1496d4a
Add support for GIFs sent as document
2015-07-19 22:05:22 -03:00
Leandro Toledo
ae0283f98d
Fix error class import
2015-07-17 14:55:36 -03:00
JASON0916
ce852de9a8
base class for telegram class
2015-07-17 22:53:54 +08:00
leandrotoledo
acc939b5b9
Releasing 1.9
2015-07-15 11:48:33 -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
leandrotoledo
b83a659bc2
hack to detect image from stream
2015-07-13 18:53:30 -03:00
Leandro Toledo
3df9d2b429
Working on Python 3 support
2015-07-12 10:39:11 -03:00
Leandro Toledo
649fbc40c8
Encode to UTF8 text messages
2015-07-12 10:30:35 -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
Leandro Toledo
59d55df99e
Fixes crash when username is not defined on chat
2015-07-11 10:01:07 -03:00
Alex Root
164d6d2942
user without username
...
fix library crash when connect user without username
2015-07-11 09:57:27 +03: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
2cbb9e45b7
Fixing Emojis model and updated the README
2015-07-09 09:48:41 -03:00
Leandro Toledo
29c1f7e027
lint fixes
2015-07-08 23:38:07 -03:00
Leandro Toledo
e2cbc511ba
Adding Emoji model
2015-07-08 23:27:49 -03:00
Leandro Toledo
ff0f875b85
Keyboards models and PEP8
2015-07-08 22:33:13 -03:00
Leandro Toledo
b2a4d4f5fc
PEP8
2015-07-08 21:58:13 -03:00
Leandro Toledo
bfe5b79ad9
PEP8
2015-07-08 21:32:48 -03:00
Leandro Toledo
0214910741
Adding ReplyMarkup, ForceReply, renaming methods and minor fixes
2015-07-08 21:15:46 -03:00
Leandro Toledo
a2c58b17d5
Build PyPi package
2015-07-08 18:33:28 -03:00
Leandro Toledo
399a39631b
Preparing for PyPi package
2015-07-08 18:22:58 -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
0c7f649f41
Adding Contact model
2015-07-08 10:20:43 -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
c4cfcaecec
Adding PhotoSize and Audio models
2015-07-07 20:52:57 -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