eternnoir
d2e7f4d8f2
Add 2.1 new method.
2016-06-07 19:00:44 +08:00
eternnoir
ce24aa25f2
Fix #179 .
2016-06-02 13:25:50 +08:00
Diego Muñoz Callejo
3413669a23
Added optional connection (aka sending) timeouts to methods that may upload big chunks of data: send_audio, send_voice, send_document, send_sticker and send_video.
2016-05-22 18:35:20 +02:00
eternnoir
84257b6ba9
Fix typo.
2016-04-23 01:21:45 +08:00
eternnoir
16d4c64b00
Remove duplicated method.
2016-04-19 08:13:37 +08:00
eternnoir
e913635755
fix next_offset is empty will not set bug.
2016-04-17 23:28:47 +08:00
eternnoir
7490f63f25
Add send_contact
2016-04-16 15:07:52 +08:00
eternnoir
22ab50989e
Add answer_callback_query.
2016-04-16 14:53:41 +08:00
eternnoir
228683aeda
Add new param for anser inline query.
2016-04-14 15:32:08 +08:00
eternnoir
4fe4061a0f
All Updating messages methods done.
2016-04-14 15:17:53 +08:00
eternnoir
f873658aac
Fix edit message error.
2016-04-14 15:06:46 +08:00
eternnoir
13327c371a
Add editMessageText.
2016-04-14 15:03:07 +08:00
eternnoir
4dc7af71a0
Add bot2.0 new methods.
2016-04-14 14:48:26 +08:00
eternnoir
209764a5d7
Add connect timeout. Fix #108
2016-04-14 14:34:37 +08:00
eternnoir
c1247249c7
Add send venu method.
2016-04-14 13:55:28 +08:00
eternnoir
292191038f
Add disable_notification
2016-02-27 11:17:35 +08:00
Igor Starikov
e851f37712
answer_inline_query made POST
...
The default GET produces `414 Request-URI Too Large` response.
2016-02-14 00:08:37 +05:00
eternnoir
94f1bbd402
Almost done.
2016-01-05 14:07:47 +08:00
ivan tkachenko
413f081b19
style unification for method_url in apihelper.py.
2015-11-08 10:30:09 +08:00
Pieter
1e6361dd57
Fix #83
...
Added a `encode('utf8')` statement to support non-ASCII symbols in error log messages.
2015-10-06 22:36:57 +02:00
pieter
941b8ac5d0
Added webhooks support with set_webhook and remove_webhook in the TeleBot class
2015-09-30 18:19:31 +02:00
pieter
1038d4fafa
Added download_file
2015-09-18 20:53:10 +02:00
pieter
fd1f16598b
Added File & getFile, including testing
2015-09-18 20:31:29 +02:00
eternnoir
e7b4e95fbc
Merge remote-tracking branch 'origin/master' into develop
2015-09-09 09:34:13 +08:00
pieter
99f6829ede
Fix failing test case in Py2.6 because of using {} instead of {0..9}
2015-09-08 22:34:55 +02:00
pieter
89288b166e
Implement parse_mode
2015-09-08 21:51:45 +02:00
pieter
710fc273d6
Better log messages
2015-09-08 19:47:55 +02:00
pieter
3c8faa155f
Created util.py to clean up __init__.py and apihelper.py and updated README accordingly
...
Fixed failing send_document_by_id and send_photo_by_id
2015-08-31 11:49:03 +02:00
97Pedrito
596df2ef2c
Extended error descriptions
...
They should provide more information about the origin of the failure.
2015-08-19 21:30:44 +02:00
eternnoir
c3300af656
New audio,voice supported.
2015-08-19 18:08:01 +08:00
eternnoir
821a63e3a7
Support new sendVideo API method.
2015-08-01 10:12:15 +08:00
pieter
20e3f731f7
Added split_string to apihelper.py
...
Added a warning to send_message to not exceed 5000 characters per message.
Changed send_message to use HTTP POST instead of GET, to stretch the maximum character limit a little more.
2015-07-25 21:31:58 +02:00
pieter
b468e8c943
Moved extract_command and is_command to apihelper.py.
2015-07-24 13:09:27 +02:00
eternnoir
99b82b6219
Add logger.
2015-07-20 09:56:17 +08:00
eternnoir
621b191e8d
Fix python3 can not send file by string bug.
...
bug #40
2015-07-17 09:38:28 +08:00
eternnoir
c1bb900d91
send file, photo ...etc. by ID support. #35
2015-07-14 13:24:32 +08:00
pieter
111ebf5c16
Extended the message_handler decorator.
...
TeleBot now makes use of the API's getUpdates timeout optional parameter instead of time.sleep. This yields quicker response times.
2015-07-02 22:32:18 +02:00
pieter
86500fc9fa
Added some documentation.
2015-07-02 13:43:49 +02:00
pieter
13133ac5c6
Implemented command decorator.
2015-07-02 04:17:36 +02:00
pieter
b41330774b
Renamed ApiError to ApiException (Subclass of Exception)
2015-07-02 01:18:23 +02:00
pieter
2f8d1ad4ed
PEP 8 clean-up.
2015-07-01 22:34:40 +02:00
pieter
a03769adde
Created _make_request and removed check_result in apihelper.py for efficiency and consistency improvements.
...
Created JsonSerializable (previously Jsonable) and JsonDeserializable.
All relevant classes now subclass JsonDeserializable to eliminate unneeded json -> string -> json conversions.
2015-07-01 22:16:13 +02:00
pieter
0068388872
Implemented #17 (with some small adjustments) and ForceReply
...
Changed apihelper#convert_markup
Constructed the Jsonable abstract class. All subclasses must override Jsonable#to_json.
Made ReplyKeyboardHide, ReplyKeyboardMarkup and ForceReply a subclass of Jsonable to make things less complicated in convert_markup.
2015-07-01 18:56:21 +02:00
pieter
938c98ced1
Merge branch 'develop' of https://github.com/eternnoir/pyTelegramBotAPI
...
Merge develop to receive the Python3 compatible version of pyTelegramBotAPI.
2015-07-01 18:29:29 +02:00
pieter
b444565b7b
Implemented #17 (with some small adjustments) and ForceReply
...
Changed apihelper#convert_markup
Constructed the Jsonable abstract class. All subclasses must override Jsonable#to_json.
Made ReplyKeyboardHide, ReplyKeyboardMarkup and ForceReply a subclass of Jsonable to make things less complicated in convert_markup.
2015-07-01 18:29:11 +02:00
CongNT
24491f467f
make telebot compatible with python3
...
also two small PEP8 fixes
2015-07-01 09:49:41 +07:00
pieter
759474924d
Implemented getUserProfilePhotos (Though I do not see the use of it currently, because bots cannot download photos with the API)
2015-06-30 16:40:44 +02:00
eternnoir
77580e6784
Support ReplyKeyboardMarkup object.
2015-06-30 13:20:44 +08:00
pieter
af02000534
PEP 8 & IntelliJ code clean-up.
2015-06-30 05:54:04 +02:00
pieter
34da2552dd
Implemented the offset parameter.
...
Implemented the offset parameter for the getUpdates API call according to https://core.telegram.org/bots/api#getupdates
In short: the offset is calculated by adding 1 to the id of the last received Update.
Caching messages in a list is now redundant, so the cache is removed. Only the id of the last received Update is kept for future getUpdates calls.
2015-06-30 05:49:35 +02:00