ce6a21cd09
Merge branch 'master' into patch-4
2020-08-04 19:49:55 +05:00
a5fd407eb6
Bugfix and DISABLE_KEYLEN_ERROR
...
Bugfix and DISABLE_KEYLEN_ERROR to supress keyboard length errors.
2020-08-04 12:29:56 +03:00
1bb98483c2
Update apihelper.py
2020-08-04 05:34:13 +05:00
c17a2379ba
Exceptions classes redesign followup
2020-08-03 06:39:12 +05:00
97aa9637cb
Update apihelper.py
2020-07-31 10:45:58 +05:00
67536d4eec
Fixing backward compatibility issue
...
Just realized that renaming ApiException to BaseApiException will cause backward compatibility issue
2020-07-31 03:30:03 +05:00
a14424704e
Exception classes redesign
...
Replacing 1 exception class with 3 more specific classes:
HTTP Exception (server returned http code != 200),
Invalid JSON Exception (server returned invalid json),
Telegram Expection (telegram returned ok != true)
All 3 classes extend BaseApiException so we can handle all API exceptions at the same time
2020-07-31 03:10:34 +05:00
0ac64469b0
Retry on requests error
...
Added RETRY_ON_ERROR var. If its value is true, we'll try to get proper result MAX_RETRIES times, with RETRY_TIMEOUT delay between requests. Last request will be called outside of the try block, so it will throw an exception on failure
P.S.
I'm actually not sure if there are better ways to solve this problem, but this was my way of solving it
2020-07-30 09:34:51 +05:00
ce3c91b619
Merge pull request #919 from Badiboy/master
...
Minor updates in code
2020-07-21 01:27:32 +03:00
dbe9ce49df
Minor updates in code
2020-07-21 01:20:01 +03:00
7c94eee3a2
Update apihelper.py
2020-07-11 20:09:48 +03:00
f4d978cd98
Update apihelper.py
2020-07-02 17:51:34 +03:00
f83f69ed50
Update apihelper.py
2020-07-02 17:50:14 +03:00
4afde9f557
Update apihelper.py
2020-07-02 17:46:41 +03:00
99de5490a0
Added thumb parameter to send_video
2020-06-23 20:17:21 +02:00
4f4c0891d9
Added thumb support to send_audio
2020-06-23 20:10:12 +02:00
5facf7de92
Merge pull request #808 from pikss86/master
...
Add possibility to create and use custom session, for examle - torpy
2020-05-29 12:17:58 +03:00
32dc03ec44
send_chat_permissions fix
2020-05-20 11:57:41 +03:00
2368421332
Correct processing of bool parameters. Some timeouts added.
2020-05-16 17:34:56 +03:00
a60253bf60
UPG: Add ChatPermissions, set_chat_permissions
2020-05-11 16:38:09 +03:00
a80927baf9
UPG: add setChatAdministratorCustomTitle
2020-05-09 23:23:08 +03:00
2849e67029
Fix to_dic->to_dict refactoring
2020-05-09 00:51:18 +03:00
a56fb8cc54
UPG: Add BotCommand, setMyCommands
2020-05-08 21:06:39 +03:00
e2d70da694
Fix poll options serialization
2020-05-02 13:27:39 +03:00
6e1cf24946
send_poll revised to standart signature
2020-05-02 13:09:52 +03:00
99c63e9eba
add emoji field for dice
2020-04-27 06:30:05 +01:00
bb4f6a7190
Polls are updated to the latest API state.
...
Polls are updated to the latest API state.
Minor code refactoring.
2020-04-25 22:22:08 +03:00
197dd2a582
add requests session for use torpy
2020-04-24 23:30:10 +05:00
b1b2726ef6
Update apihelper.py
...
added can_invite_users parameter to restrict_chat_member function
2020-04-24 00:21:05 +04:30
51b1fb7695
added Dice and send_dice
2020-04-15 06:10:05 +01:00
ec86182f62
Possibility to use alternative serializer
...
With apihelper.CUSTOM_SERIALIZER you can replace pickle with other "dumper" like dill.
2020-04-11 13:42:34 +03:00
932ac9477b
Add ENABLE_MIDDLEWARE=False in apihelpers to keep backward compatibility
2020-04-11 13:02:50 +05:00
59810b5e2a
Merge pull request #620 from nev3rfail/send_animation
...
Added reduced version of sendAnimation (no width/height/thumb).
2020-01-03 17:12:29 +03:00
2efb33fc29
Merge branch 'master' into patch-1
2020-01-03 16:45:43 +03:00
e3b126807e
Merge pull request #713 from dtalkachou/patch-1
...
Correct work with empty base_url in make_request
2020-01-03 01:33:27 +03:00
86644c05f7
Merge pull request #539 from Badiboy/master
...
"timeout" parameter for send_message
Fix kick_chat_member return type
HTML symbols not replaced
2020-01-03 00:50:24 +03:00
68db599790
Delete duplicate string
2019-11-23 21:25:29 +03:00
a749acde15
Update apihelper.py #2
...
Merge Fixes # 684
2019-11-05 17:37:53 +03:00
575fb9da7f
Merge branch 'master' into patch-1
2019-10-30 21:24:43 +08:00
1a30a9a249
Fixed #578
2019-10-30 14:02:00 +03:00
6fb9e18385
Update apihelper.py
...
Hi, to indicate a third-party api-url (reverse proxy) added conditions.
Perhaps not the most elegant solution, but this functionality is very lacking.
apihelper.API_URL = "http://reverseproxy.example.com/bot{0}/{1} "
2019-08-12 17:09:52 +03:00
9624b45314
add Poll, sendPoll, stopPoll
2019-06-06 21:47:08 +03:00
1a58731fb7
Add 'method' parameter to methods that edit message
2019-02-23 16:15:20 +02:00
99df992a66
Added the method sendAnimation, which can be used instead of sendDocument to send animations, specifying their duration.
2019-02-15 18:46:18 +00:00
ad4be5c0ae
Merge branch 'master' of https://github.com/eternnoir/pyTelegramBotAPI
2018-10-19 13:40:14 +03:00
8636b282d7
Merge branch 'master' into analyzer-fixes
2018-09-07 18:07:37 +03:00
bab9f7bbb9
enh: reset requests.Session feature
...
Need for proxy changing and other reconnection stuff
2018-09-06 12:48:08 +03:00
feec1dde56
fix: little style fixes
2018-08-17 12:49:37 +03:00
cf69a06ab8
enh: make code better and enhance test case
2018-08-10 16:48:09 +03:00
8ac6e664c5
new: InputMediaAnimation, InputMediaAudio, InputMediaDocument, editMessageMedia
...
Added support for editing the media content of messages: added the method editMessageMedia and new types InputMediaAnimation, InputMediaAudio, and InputMediaDocument.
2018-08-09 19:16:38 +03:00