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

566 Commits

Author SHA1 Message Date
82838e1d26 Infinity polling fall down fixed 2021-01-14 03:44:37 +03:00
52ebb5a1a7 drop_pending_updates in set_webhook 2021-01-09 21:22:49 +03:00
0900acfae9 Release version 3.7.5 2021-01-07 20:46:50 +03:00
c6cf615722 Merge pull request #1062 from Badiboy/master
Added timeout to xxx_webhook
2021-01-07 02:38:26 +03:00
5dc008a762 Added timeout to xxx_webhook 2021-01-07 00:13:44 +03:00
6b0484b9db Modify RedisHandlerBackend, add argument "password=None" to __init__()
With argument "password=None" in method __init__(), and argument "password" in "self.redis = Redis(host, port, db, password)", will be able to use Redis with password protection, if password is set .
2021-01-05 13:06:14 +02:00
6559f431b7 Bot API update
Bot API conformance up to 4.4

Added webhook parameters from 5.0
2020-12-29 19:24:41 +03:00
c4e624d999 Avoid dead threads in treaded polling 2020-12-24 23:55:12 +03:00
2534dc5925 Exception if middleware is used but not enabled. 2020-12-24 19:55:24 +03:00
96686e5221 fix restrict_chat_member method 2020-12-22 21:38:38 +03:00
4658d2b8da Fix unban_chat_member in async 2020-12-16 01:57:30 +03:00
65c3ca58da Update __init__.py
Allow parse_mode = "" to disable default parse mode.
2020-12-09 01:41:07 +03:00
6cc80f25d7 Bot API 5.0 pinning-unpinning logic post-fix. 2020-11-29 15:33:39 +03:00
b9898bbdda Fix 0a2216a22b #2
+ message_id arg of unpin_chat_message() passing to the helper
- removed passing arg to unpin_all_chat_messages()
2020-11-29 15:21:59 +03:00
00c9351f83 Hotfix 0a2216a22b
* message_id made optional as API declares
2020-11-29 15:12:14 +03:00
0a2216a22b Bot API 5.0 pinning-unpinning logic update
+ add unpin_all_chat_messages() (former unpin_chat_message())
* update unpin_chat_message() (add message_id arg)
2020-11-29 14:47:53 +03:00
640f398262 Version 3.7.4 release 2020-11-20 23:49:55 +03:00
5824d47590 added only_if_banned to unban_chat_member 2020-11-18 02:22:52 +03:00
bd27645965 set_webhook bugfinx
set_webhook does not reset allowed_updates for empty list (to default)
2020-11-11 00:32:34 +03:00
00d125a298 long_polling_timeout update 3 2020-11-07 14:59:45 +03:00
a548374a4d long_polling_timeout update 2 2020-11-07 14:43:17 +03:00
03e1aef70e long_polling_timeout update 1 2020-11-07 14:02:11 +03:00
7a3fd30f6a Long polling updates and combo content types 2020-11-07 12:52:51 +03:00
fa3ca84d24 Animation content_type
"When you send gif telegram gives you animation and document at same time in update and when you parse that first if is animation and second is document because of this the content_type set document not animation"
2020-11-03 17:46:19 +03:00
36a3ce62c4 Fix broken text_mention html formatting 2020-10-14 12:06:49 +03:00
00c2e9b51c Piece death fix 2020-09-22 01:41:51 +03:00
29711e2425 Merge remote-tracking branch 'upstream/master' 2020-09-22 01:34:55 +03:00
75a5dd1492 Minor bugfix 2020-09-22 01:34:49 +03:00
9ab906e60c fix: simplify code
json.loads(button.to_json()) equals to button.to_dict()
2020-09-02 18:09:14 +08:00
a803edd09b fix: button in markup should be obj, not json text 2020-09-02 09:25:23 +08:00
32a9e65ecc fix: reply_markup does not change content_type 2020-09-02 09:12:49 +08:00
decad450d0 feat: make InlineKeyboardMarkup JsonDeserializable
feat: make InlineKeyboardMarkup JsonDeserializable, add de_json func to InlineKeyboardMarkup object
2020-09-01 18:13:22 +08:00
630a9a5b2c feat: make InlineKeyboardButton JsonDeserializable
feat: make InlineKeyboardButton JsonDeserializable, add de_json func to InlineKeyboardButton Object
2020-09-01 18:07:45 +08:00
cdae65116b feat: make LoginUrl JsonDeserializable
feat: make LoginUrl JsonDeserializable, add de_json func
2020-09-01 18:03:21 +08:00
6832c33733 feat: Added the field reply_markup to the Message
Added the field `reply_markup` to the Message object
2020-08-31 12:00:56 +00:00
81100f249c Fix an error with the is_pil_image function
When I've tried to send_photo as shown in detailed_example, I got an error: "AttributeError: module 'PIL' has no attribute 'Image'". 
This error was described well here: https://stackoverflow.com/a/11911536/9092263. So in accordance to prescriptions, I've made changes and It works fine for me.

Steps to reproduce:
1. initiate bot via TeleBot constructor
2. call function bot.send_photo(call.message.chat.id, open("some_image.jpg", "rb"))

P.S.
Error Environment: 
- python==3.8.5
- pyTelegramBotAPI==3.7.3
- PIL==7.2.0
2020-08-29 21:57:41 +03:00
e811163b5f UPG: Added the field file_unique_id
Added the field file_unique_id to the objects Animation, Audio, Document, PassportFile, PhotoSize, Sticker, Video, VideoNote, Voice, File and the fields small_file_unique_id and big_file_unique_id to the object ChatPhoto. (Bot API 4.5)
2020-08-29 04:29:02 +08:00
2bc5c1a500 Merge pull request #960 from CrafterKolyan/patch-1
Add last_update_id parameter for constructor
2020-08-25 21:58:33 +03:00
5120650774 Move parameter to the end of list 2020-08-25 21:45:30 +03:00
c13f9a7f98 Add last_update_id parameter for constructor 2020-08-25 21:26:28 +03:00
bab9b4077d Bot API support checked/updated up to 4.2 2020-08-25 18:18:51 +03:00
cdd48c7aed Empty list optimization, Py2 arteacts removed,
Empty list optimization: None instead of [].

Py2 arteacts removed: no more six moudle used.
2020-08-24 16:02:35 +03:00
513a85cad9 Merge remote-tracking branch 'upstream/master' 2020-08-24 13:00:30 +03:00
5e19965b0c Fix 'NoneType' object assignment error from #892 and #954 2020-08-22 16:11:52 +02:00
17f48916ad Merge remote-tracking branch 'upstream/master' 2020-08-21 17:40:56 +03:00
5b70980bda Resolve conflicts 2020-08-21 17:38:54 +03:00
73487f96c4 Custom exception handler for poll mode
Initial beta of custom exception handler for poll mode.

Use ExceptionHandler class and bot.exception_handler to proceed unhandled exceptions in poll mode.
2020-08-21 17:36:08 +03:00
cab33ad0d9 fixed thumb processing 2020-08-21 14:09:38 +03:00
9ca3c78c84 back version to 3.7.2 2020-08-21 11:22:24 +03:00
0ab4046a4f Create version.py 2020-08-21 11:09:53 +03:00