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

2341 Commits

Author SHA1 Message Date
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
3d3dbbdf23 Merge pull request #21 from Zerocchi/patch-1
Correcting code error
2015-07-03 07:43:31 +08:00
ce07b5408e Correcting code error 2015-07-03 06:09:58 +08:00
21231a3f01 PEP-8 clean-up. 2015-07-02 23:47:05 +02:00
47ce846ce1 Added TeleBot#reply_to(message, text)
Added examples dir and an EchoBot sample.
2015-07-02 23:38:11 +02:00
e3025f4154 Updated README.md to fit with the current API. 2015-07-02 23:17:48 +02:00
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
144fa64604 Merge pull request #20 from pevdh/develop
Some new features and minor improvements.
2015-07-02 21:21:57 +08:00
bc3e2115ac Made Contact implement JsonDeserializable. 2015-07-02 14:12:10 +02:00
36ba21643b Resolve merge conflicts. 2015-07-02 13:54:45 +02:00
86500fc9fa Added some documentation. 2015-07-02 13:43:49 +02:00
b17416e718 Update README.md 2015-07-02 11:53:11 +08:00
77d699bc3a Add python 3 to setup.py. 2015-07-02 11:51:50 +08:00
1e221433f0 Update Version 0.1.9
Change log:
- Support python3
- ReplyKeyboardHide
- Message support contact
2015-07-02 11:30:45 +08:00
1fdf8bd570 Message support contact. 2015-07-02 11:19:38 +08:00
13133ac5c6 Implemented command decorator. 2015-07-02 04:17:36 +02:00
23574dee59 Merge pull request #18 from pevdh/master
Implemented #17 (with some small adjustments) and ForceReply
2015-07-02 09:21:25 +08:00
b41330774b Renamed ApiError to ApiException (Subclass of Exception) 2015-07-02 01:18:23 +02:00
be155afcd8 Deleted last unnecessaty json.dumps 2015-07-02 01:16:17 +02:00
2f8d1ad4ed PEP 8 clean-up. 2015-07-01 22:34:40 +02:00
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
b4dc441ffd Update TODO 2015-07-01 19:44:49 +02:00
949dfc0fb0 Fix unnecessary Thread creation when no new messages arrived. 2015-07-01 19:12:12 +02:00
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
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
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
8812765652 Merge branch 'master' of https://github.com/eternnoir/pyTelegramBotAPI
Sync with upstream.
2015-07-01 18:00:17 +02:00
d9bd77503f Merge pull request #16 from ntcong/python3
make telebot compatible with python3
2015-07-01 11:57:41 +08:00
0a58f343fe add python3 to travis test, add python3 to readme 2015-07-01 10:17:45 +07:00
24491f467f make telebot compatible with python3
also two small PEP8 fixes
2015-07-01 09:49:41 +07:00
924099ddfa Update README.md 2015-07-01 09:55:25 +08:00
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
77580e6784 Support ReplyKeyboardMarkup object. 2015-06-30 13:20:44 +08:00
9e27680266 Merge pull request #11 from pevdh/master
Implemented the offset parameter.
2015-06-30 12:53:57 +08:00
af02000534 PEP 8 & IntelliJ code clean-up. 2015-06-30 05:54:04 +02:00
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
53c76e75f7 Merge pull request #10 from eternnoir/revert-9-master
Revert "...actually implemented the offset in TeleBot#get_update now..."
2015-06-30 10:02:15 +08:00
8eda6a4f13 Revert "...actually implemented the offset in TeleBot#get_update now..." 2015-06-30 10:00:19 +08:00
4c28537199 Merge pull request #9 from pevdh/master
...actually implemented the offset in TeleBot#get_update now...
2015-06-30 09:44:19 +08:00
37ffcdf6a6 ...actually implemented the offset now... 2015-06-30 03:39:36 +02:00
284c20f7ca Merge pull request #8 from pevdh/master
Extending ReplyKeyboardMarkup and implementing the offset getUpdates parameter
2015-06-30 09:04:07 +08:00
c9adf52236 Extended the ReplyKeyboardMarkup class to allow easy creation of a complex ReplyKeyboardMarkup (so without the hassle of manipulating json strings directly). 2015-06-30 02:00:47 +02:00
64811a3960 - Implemented an optional "offset" argument in apihelper.py.
- TeleBot#get_update now makes use of this argument, which improves the efficiency of the method.
- Removed useless req.status_code statement in apihelper.py#send_data
2015-06-30 01:44:14 +02:00
7bffd4331b Update README.md 2015-06-29 08:02:06 +08:00
b72c414e55 Update README.md 2015-06-29 08:01:39 +08:00
3d396445b1 Update README.md 2015-06-28 22:34:27 +08:00
2183d0df7c Update README.md 2015-06-28 18:42:46 +08:00
938b685115 Update README.md 2015-06-28 18:07:27 +08:00
a4057e45c1 Update readme. 2015-06-28 18:03:06 +08:00
155b264fb0 Merge branch 'master' of github.com:eternnoir/pyTelegramBotAPI 2015-06-28 18:02:06 +08:00