1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
Commit Graph

77 Commits

Author SHA1 Message Date
eternnoir
9219404a9a Merge branch 'sgomez-fix-video-type' into develop 2015-07-26 20:15:57 +08:00
Sergio Gómez
83ab8a39c9 Fix video type class 2015-07-26 11:19:20 +02: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
b484baea37 Fix doc error. 2015-07-24 13:56:47 +02:00
pieter
2647777b2b Implemented register_for_reply. Closes #26 2015-07-24 13:52:48 +02:00
pieter
b468e8c943 Moved extract_command and is_command to apihelper.py. 2015-07-24 13:09:27 +02:00
eternnoir
0932e603fb Fix python3 Exception message attribute not found. 2015-07-23 09:14:20 +08:00
eternnoir
ba1693dcf0 Bug fix. 2015-07-22 14:02:16 +08:00
eternnoir
99b82b6219 Add logger. 2015-07-20 09:56:17 +08:00
eternnoir
968d30e246 Merge branch 'master' into develop 2015-07-18 17:35:46 +08:00
Nathanael Farley
edddab8956 Changed __stop_polling from bool to threading.Event(). 2015-07-18 10:27:16 +01:00
eternnoir
6bdc313fa6 Message add forward_from forward_date reply_to_message support. 2015-07-17 14:40:49 +08:00
eternnoir
621b191e8d Fix python3 can not send file by string bug.
bug #40
2015-07-17 09:38:28 +08:00
eternnoir
185b3e007e Polling interval support
issue #38
2015-07-15 11:19:29 +08:00
eternnoir
aeeb94d386 Fix api's document change. 2015-07-15 11:02:30 +08:00
eternnoir
6c8d30b063 Add process_new_message public method for webhook.
issue #36
2015-07-14 13:28:39 +08:00
eternnoir
c1bb900d91 send file, photo ...etc. by ID support. #35 2015-07-14 13:24:32 +08:00
eternnoir
913f01dfe8 Edit confused notice. 2015-07-13 09:07:07 +08:00
eternnoir
7144c79efe Add none_stop flag for polling method. 2015-07-13 09:07:07 +08:00
FrankWang
f6a0037f8d Fix thread pool high cpu usage. 2015-07-08 21:00:46 +08:00
eternnoir
a82f4d780f Support python3 queue 2015-07-04 20:25:02 +08:00
eternnoir
da176b770c Create ThreadPool when creat_thread flag is True. 2015-07-04 19:51:06 +08:00
eternnoir
e095a2ffe9 Message handler support create_threads flag. 2015-07-04 17:20:29 +08:00
eternnoir
3d678707ac Add create_threads flag. 2015-07-04 17:00:42 +08:00
pieter
9b3f5f5ba0 Merge pool-impl branch 2015-07-04 02:42:41 +02:00
pieter
bc181572d9 Merge commit '666ab76' into develop
Merge master.
2015-07-03 19:38:03 +02:00
pieter
e061aa051a Fixed API inconsistency (Message.fromUser -> Message.from_user) 2015-07-03 19:34:02 +02:00
pieter
666ab7609d Fix TeleBot#extract_command where the function previously would incorrectly slice /command@botname 2015-07-03 19:28:04 +02:00
pieter
0af4051dfd First implementation attempt 2015-07-03 19:22:26 +02:00
eternnoir
cff3f778bf fix content_type bug. 2015-07-03 10:14:42 +08:00
eternnoir
6833a16b57 fix sendChatAction return value bug. API's result will be boolean. 2015-07-03 09:58:48 +08:00
eternnoir
8187e6b8fd Add delete_chat_photo and group_chat_created support. 2015-07-03 09:43:26 +08:00
eternnoir
de88217c37 Support chat action in message. 2015-07-03 09:41:11 +08:00
eternnoir
c0d93a3fb9 Remove unuse import. 2015-07-03 09:30:30 +08:00
pieter
523c7d433a Added AsyncTeleBot, an Asynchronous version of TeleBot.
All API calls on this class (except for getUpdates, since that is already done in a separate Thread) are piped through AsyncTask.
2015-07-03 01:52:18 +02:00
pieter
21231a3f01 PEP-8 clean-up. 2015-07-02 23:47:05 +02:00
pieter
47ce846ce1 Added TeleBot#reply_to(message, text)
Added examples dir and an EchoBot sample.
2015-07-02 23:38:11 +02: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
bc3e2115ac Made Contact implement JsonDeserializable. 2015-07-02 14:12:10 +02:00
pieter
36ba21643b Resolve merge conflicts. 2015-07-02 13:54:45 +02:00
pieter
86500fc9fa Added some documentation. 2015-07-02 13:43:49 +02:00
eternnoir
1fdf8bd570 Message support contact. 2015-07-02 11:19:38 +08: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
be155afcd8 Deleted last unnecessaty json.dumps 2015-07-02 01:16:17 +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
949dfc0fb0 Fix unnecessary Thread creation when no new messages arrived. 2015-07-01 19:12:12 +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