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

1297 Commits

Author SHA1 Message Date
Badiboy
5fda52cf5d
Merge pull request #970 from meoww-bot/master
UPG: Added the field reply_markup to the Message object
2020-09-07 13:09:46 +03:00
meoww-bot
9ab906e60c
fix: simplify code
json.loads(button.to_json()) equals to button.to_dict()
2020-09-02 18:09:14 +08:00
meoww-bot
698b4371e6
test: Add tests for InlineKeyboardMarkup and ...
Add tests for InlineKeyboardMarkup and InlineKeyboardButton
2020-09-02 10:33:32 +08:00
meoww-bot
a803edd09b
fix: button in markup should be obj, not json text 2020-09-02 09:25:23 +08:00
meoww-bot
32a9e65ecc
fix: reply_markup does not change content_type 2020-09-02 09:12:49 +08:00
meoww-bot
decad450d0
feat: make InlineKeyboardMarkup JsonDeserializable
feat: make InlineKeyboardMarkup JsonDeserializable, add de_json func to InlineKeyboardMarkup object
2020-09-01 18:13:22 +08:00
meoww-bot
630a9a5b2c
feat: make InlineKeyboardButton JsonDeserializable
feat: make InlineKeyboardButton JsonDeserializable, add de_json func to InlineKeyboardButton Object
2020-09-01 18:07:45 +08:00
meoww-bot
cdae65116b
feat: make LoginUrl JsonDeserializable
feat: make LoginUrl JsonDeserializable, add de_json func
2020-09-01 18:03:21 +08:00
meoww-bot
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
Badiboy
d15cb16bef
Merge pull request #969 from ArtemFrantsiian/patch-1
Fix an error with the is_pil_image function
2020-08-29 22:04:36 +03:00
Artem Frantsiian
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
Badiboy
79ff9191f3
Merge pull request #967 from meoww-bot/patch-1
Added the field `file_unique_id` (Bot API 4.5)
2020-08-29 11:18:00 +03:00
meoww-bot
bdfb793e34
test: Added file_unique_id from Bot API 4.5 2020-08-29 12:07:38 +08:00
meoww-bot
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
Badiboy
1eb9651894
Merge pull request #963 from Badiboy/master
Minor readme update
2020-08-26 00:53:12 +03:00
Badiboy
309e55845c Minor readme update 2020-08-26 00:51:55 +03:00
Badiboy
2bc5c1a500
Merge pull request #960 from CrafterKolyan/patch-1
Add last_update_id parameter for constructor
2020-08-25 21:58:33 +03:00
Badiboy
7acad2d825
Merge pull request #958 from Badiboy/master
Bot API support checked/updated up to 4.2
2020-08-25 21:49:40 +03:00
Nikolay Korolev
5120650774
Move parameter to the end of list 2020-08-25 21:45:30 +03:00
Nikolay Korolev
c13f9a7f98
Add last_update_id parameter for constructor 2020-08-25 21:26:28 +03:00
Badiboy
bab9b4077d Bot API support checked/updated up to 4.2 2020-08-25 18:18:51 +03:00
Badiboy
47b9c1d3fb
Merge pull request #957 from Badiboy/master
Empty list optimization, Py2 arteacts removed
2020-08-25 16:46:28 +03:00
Badiboy
06ed637f2f Merge remote-tracking branch 'upstream/master' 2020-08-25 16:24:07 +03:00
Badiboy
7bf432170e
Merge pull request #956 from Pablo-Davila/master
Append bots to list
2020-08-25 16:23:52 +03:00
Pablo Dávila Herrero
8cd18945c5 Append bots to list
TasksListsBot
MyElizaPsychologistBot
2020-08-25 15:45:08 +02:00
eternnoir
48b53f6a8e Update version.X 2020-08-24 21:36:27 +08:00
Badiboy
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
Badiboy
513a85cad9 Merge remote-tracking branch 'upstream/master' 2020-08-24 13:00:30 +03:00
Badiboy
c1c84a588d
Merge pull request #955 from fgallaire/master
Fix 'NoneType' object assignment error from #892 and #954
2020-08-22 18:32:25 +03:00
Florent Gallaire
5e19965b0c Fix 'NoneType' object assignment error from #892 and #954 2020-08-22 16:11:52 +02:00
Badiboy
17f48916ad Merge remote-tracking branch 'upstream/master' 2020-08-21 17:40:56 +03:00
Badiboy
5b70980bda Resolve conflicts 2020-08-21 17:38:54 +03:00
Badiboy
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
Badiboy
818905de32
Merge pull request #954 from rfoxxxy/master
Added missing thumb parameters to send_document, send_animation and send_video_note
Implemented getting the runtime version of pyTelegramBotAPI
Fixed docstring for send_video_note function
2020-08-21 17:33:22 +03:00
rf0x1d
cab33ad0d9 fixed thumb processing 2020-08-21 14:09:38 +03:00
rf0x1d
9ca3c78c84 back version to 3.7.2 2020-08-21 11:22:24 +03:00
rf0x1d
0ab4046a4f Create version.py 2020-08-21 11:09:53 +03:00
rf0x1d
8b50dc488b added missing thumb params and more 2020-08-21 11:09:43 +03:00
Badiboy
83df269730
Merge pull request #953 from Badiboy/master
Two None checks
2020-08-20 00:00:57 +03:00
Badiboy
18eb8eb605 Two None checks 2020-08-19 23:57:48 +03:00
Badiboy
19aaf83d88
Merge pull request #950 from BLUE-DEVIL1134/master
Update README.md
2020-08-17 11:48:59 +03:00
Akash
3b57c288b4
Update README.md 2020-08-17 14:08:20 +05:30
FrankWang
8f1c34db76
Merge pull request #947 from BLUE-DEVIL1134/master
Update README.md
2020-08-14 22:07:47 +08:00
Akash
2aaff09c39
Update README.md 2020-08-14 11:38:57 +05:30
Akash
1cd36253f0
Update README.md 2020-08-14 11:36:04 +05:30
Akash
484c3a4c48
Update README.md 2020-08-14 10:50:56 +05:30
Badiboy
5347a068e0
Merge pull request #944 from barbax7/patch-1
Update README.md
2020-08-13 18:25:23 +03:00
Andrea Barbagallo
52511fce48
Update README.md
Added my bot to the list.
2020-08-13 12:14:57 +02:00
Badiboy
507d524215
Merge pull request #939 from mrpes/patch-6
Keyboard bugfix
2020-08-04 22:03:00 +03:00
Mr. Dog
ec79d1dc1e
Keyboard bugfix 2020-08-04 23:45:33 +05:00