97aa9637cb
Update apihelper.py
2020-07-31 10:45:58 +05:00
0ab908705b
Support for PIL images as photo argument
...
Added autoconversion of PIL image to file-like object. PIL module is optional
2020-07-31 10:39:04 +05:00
88e0f1337b
Merge pull request #928 from mrpes/patch-2
...
Exception classes redesign: additional Exception subclasses added
2020-07-31 01:37:32 +03: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
b790e4e6ba
Merge pull request #927 from mrpes/patch-1
...
Optional retry on requests error
2020-07-30 11:14:51 +03: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
48e48610f3
Merge pull request #918 from daveusa31/master
...
Documented the default parse_mode installation
2020-07-18 23:01:25 +03:00
d7aaccef63
Merge pull request #917 from EskiSlav/master
...
Added strike and underline entities to parse to html
2020-07-18 21:19:47 +03:00
a02f499a20
Documented the default parse_mode installation
2020-07-18 19:02:07 +03:00
c533a52e39
Restored necessary comment
2020-07-18 00:25:00 +03:00
b50eb1bafb
Added nested entities from Bot API 4.5
2020-07-17 13:43:45 +03:00
40e19e5af1
Merge pull request #915 from zeph1997/editreadme
...
Added JoinGroup Silencer Bot into the "Bots using this API" in README
2020-07-16 14:22:45 +03:00
bc5d9c8d69
Update README.md
2020-07-16 19:09:37 +08:00
6049de4356
Update README.md
2020-07-16 19:07:39 +08:00
b38ceaaec8
Merge pull request #913 from Aragroth/master
...
Added ability to specify params of width and height for video
2020-07-11 22:30:53 +03:00
7c94eee3a2
Update apihelper.py
2020-07-11 20:09:48 +03:00
00798df0c0
Merge pull request #909 from iPurya/patch-1
...
Fix Sticker tests
2020-07-07 09:17:01 +03:00
d2d7cc39be
Update test_types.py
2020-07-07 03:39:00 +04:30
d74f47e16c
Merge pull request #908 from iPurya/patch-2
...
Added field file_unique_id to Sticker.
2020-07-07 01:31:08 +03:00
d5e9f73821
Update test_types.py
...
tests updated for pull request #908 .
2020-07-07 02:38:06 +04:30
49398f5c61
Update types.py
...
Sending stickers everytime have different file_id, so for detecting special stickers we need a unique parameter.
2020-07-07 01:31:33 +04:30
f42ec4fe0d
Bump version.
3.7.2
2020-07-06 00:37:17 +08:00
e9f925e14c
Merge pull request #906 from daveusa31/master
...
Added ability to set default parse_mode in main TeleBot class.
3.6.8
2020-07-04 22:29:32 +03:00
0304e6507f
Append default parse_mode
2020-07-04 21:07:42 +03:00
0f387db8d2
Fix tabs
2020-07-04 20:45:48 +03:00
30664f396a
Merge pull request #904 from timbyxty/master
...
Added NST bot to the bot list
2020-07-04 00:17:43 +03:00
cdffeba829
added NST
2020-07-03 22:05:47 +05: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
a69a358ebd
Update __init__.py
2020-07-02 17:47:38 +03:00
4afde9f557
Update apihelper.py
2020-07-02 17:46:41 +03:00
8e82d1c462
Merge pull request #902 from 0xnu/patch-1
...
Update README.md
2020-07-02 16:08:22 +03:00
b5a4276282
Update README.md
...
Link to Sports bot added.
2020-07-02 13:27:51 +01:00
d43292e42b
Merge pull request #892 from Otxoto/Otxoto-patch-2
...
Added thumbnail support for send_audio and send_video
2020-06-24 19:10:15 +03:00
99de5490a0
Added thumb parameter to send_video
2020-06-23 20:17:21 +02:00
53ccef5e5e
added thumb parameter to send_video
2020-06-23 20:14:52 +02:00
29b432e65a
Added thumb to send_audio
2020-06-23 20:12:46 +02:00
4f4c0891d9
Added thumb support to send_audio
2020-06-23 20:10:12 +02:00
03b1531bd7
Merge pull request #890 from Otxoto/master
...
Update User type
Added:
can_join_groups
can_read_all_group_messages
supports_inline_queries
2020-06-22 23:14:45 +03:00
ab496f995e
Merge pull request #1 from Otxoto/Otxoto-patch-1
...
Complete User Class
2020-06-22 13:18:42 +02:00
44872ce87d
Complete User Class
...
Added following fields:
can_join_groups
can_read_all_group_messages
supports_inline_queries
2020-06-22 13:18:13 +02:00
c24d1e2d0b
Update README.md
2020-06-07 02:50:30 +08:00
38694a9173
Merge pull request #865 from Badiboy/master
...
Update test_telebot.py
2020-05-29 12:43:24 +03:00
1494946d02
Update test_telebot.py
...
Build fix.
2020-05-29 12:37:23 +03: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
f7008d4d99
Merge pull request #856 from Badiboy/master
...
send_chat_permissions fix
2020-05-20 12:03:05 +03:00
32dc03ec44
send_chat_permissions fix
2020-05-20 11:57:41 +03:00