Badiboy
776a699a8d
_notify_next_handlers skips sequential messages
...
Is there are several sequential messages and next_step_handlers are set, the _notify_next_handlers will process only every even message dew to execute both .pop(i) and i+=1
2018-05-29 18:55:41 +03:00
Badiboy
78afd045d8
_notify_next_handlers drops messages if empty handler list
...
After calling
clear_step_handler(...)
code:
self.next_step_handlers[chat_id] = []
left the key in next_step_handlers.
When a next message arrives, the old handler executes nothing (no handlers), but still remove message from message queue:
new_messages.pop(i).
Updated to pop message only when there are real handlers in the list.
2018-05-27 23:24:37 +03:00
Badiboy
9c79ba2f87
html_text fix and html_caption
...
html_text now works with text_link
html_caption now works for caption/caption_entities
2018-05-14 13:29:34 +03:00
FrankWang
42343c3a7f
Merge pull request #490 from CoconutWaffle/master
...
Fixing and upgrading next step and reply handlers. + minor fixes
2018-05-04 07:20:18 +08:00
FrankWang
5a102ed8fa
Merge pull request #492 from sviat9440/master
...
Bugfixes (message.html_text offset)
2018-05-04 07:19:28 +08:00
Waffle
3ba9799b98
Renaming back pytelegrambotapi module to telebot
2018-04-28 13:50:59 +03:00
eternnoir
91f213ff34
Fix #501
2018-04-27 15:47:03 +08:00
eternnoir
8f55460924
Fix cache time is zero.
2018-04-26 09:53:55 +08:00
khabibr
99ff104a3f
Update apihelper.py
...
Correct files downloading when proxy used.
2018-04-24 16:48:39 +06:00
Benny
5dd88f8223
fix issue #403 : UnicodeEncodeError when sending a non-ASCII file in Python 2.7
2018-04-18 15:00:05 +08:00
sviat9440
ffe3a0c3d7
Update types.py
...
-- Fix encoding bug (emoji shifted offset)
2018-04-15 19:19:29 +03:00
Waffle
7957bc45a8
Fixing and upgrading next step and reply handlers. + minor fixes
...
Rename telebot package to pytelegrambotapi becouse lib named telebot exists and it raising many errors
Add methods:
| register_for_reply_by_message_id,
| register_next_step_handler_by_chat_id,
| clear_reply_handlers,
| clear_reply_handlers_by_message_id
2018-04-12 13:45:32 +03:00
sviat9440
36d088dfbf
Bugfixes and minor improvements
2018-04-04 10:47:37 +03:00
FrankWang
9ae20b4815
Merge pull request #482 from sviat9440/master
...
Minor improvements
2018-03-25 21:39:27 +08:00
sviat9440
e761e1e1d9
Update apihelper.py
2018-03-25 14:54:28 +03:00
sviat9440
cb0256b37d
Update __init__.py
2018-03-25 13:22:35 +03:00
sviat9440
ff3cbaf45b
Update apihelper.py
2018-03-25 13:21:55 +03:00
eternnoir
7f47f11444
Fix #481
2018-03-23 19:58:43 +08:00
sviat9440
0422e62f65
Update types.py
...
Fix
2018-03-21 10:45:34 +03:00
sviat9440
82e252ec46
Update types.py
...
Fix
2018-03-21 10:44:37 +03:00
sviat9440
c11a9f810c
Update types.py
...
Added 'json' property to class 'Message', to quickly save a message to the database
2018-03-21 07:35:42 +03:00
eternnoir
48e6757686
Fix import logger problem.
2018-03-10 14:41:34 +08:00
heyyyoyy
518c49f23a
fixing formatting of caption in the method send_document
2018-02-16 18:29:29 +03:00
heyyyoyy
903b1dfd50
added parse_mode in edit_message_caption
2018-02-16 14:19:35 +00:00
heyyyoyy
2e199a5684
Bot Api 3.6
2018-02-14 20:27:55 +00:00
FrankWang
55302cb972
Merge pull request #445 from heyyyoyy/update_send_media_group
...
Added support for local files in the sendMediaGroup method
2018-02-01 19:24:50 +08:00
eternnoir
afac177d7d
Fix missing media_group_id in message.
2018-01-24 19:05:38 +08:00
heyyyoyy
2637e29dbe
Updated sendMediaGroup method
2018-01-15 16:08:50 +03:00
FrankWang
e2ed4cf065
Merge pull request #387 from fumycat/patch-1
...
Fix optional parameter
2018-01-15 10:23:26 +08:00
JekaFST
60596a95b8
Edit and stop live location fixes
...
.token was missed in apihelper's methods calls
2017-12-05 01:31:47 +03:00
JekaFST
8aa8fa5986
Fix for SendLocation with live period
...
Fix for payload['live_perion'] typo -> payload['live_period']
2017-12-05 00:21:05 +03:00
eternnoir
b2f376a906
Remove debug message. Add content_type
2017-11-30 23:34:07 +08:00
eternnoir
c300195b49
Add provider_data .
2017-11-29 13:59:47 +08:00
eternnoir
2493b200a4
Add provider_data to sendInvoice.
2017-11-29 13:53:39 +08:00
eternnoir
8528ca9e4e
Add some message content type. Fix #426
2017-11-29 13:48:34 +08:00
eternnoir
e1a3ccadb7
Add sendMediaGroup method.
2017-11-29 13:45:25 +08:00
eternnoir
7ac246b801
Fix inline_query_handler not work.
2017-11-15 00:42:27 +08:00
eternnoir
8bdbc24014
Fix ShippingOption to_json. #414
2017-11-13 10:25:39 +08:00
eternnoir
46c803bf55
Fix shipping_options bug. #414
...
Update version.
2017-11-13 10:14:10 +08:00
eternnoir
3986f33d3a
Fix caption_entities without default value.
2017-11-06 08:42:57 +08:00
Vitaliy
d8587419e1
Fixed bug when message has next step handler and exec command handlers.
2017-11-04 15:09:29 +02:00
Evgeny Petrov
8e71a612a6
Added missing methods definitions to __init__.py and Async Telebot
2017-10-22 20:07:51 +03:00
Evgeny Petrov
5f8d99664e
Bot API 3.4: new methods for live locations, new objects.
2017-10-22 19:50:51 +03:00
Evgeny Petrov
600c014515
Added missing author_signature field to Message object
...
`author_signature` field was checked, but never added to `Message` object.
2017-09-22 01:08:54 +03:00
Evgeny Petrov
211f1c607d
Bot API 3.3:
...
- Added the new field pinned_message to the Chat object.
- Added the new fields author_signature and forward_signature to the Message object.
- Added the new field is_bot to the User object.
2017-08-23 10:30:32 +03:00
mostafaqanbaryan
15d287919d
Update __init__.py
...
Add clear_step_handler() for resetting bot
2017-08-21 14:40:47 +04:30
Fumycat
af991ea76e
Fix optional parameter
2017-08-20 01:36:08 +07:00
eternnoir
dcddedcd24
Fix file dic.
2017-08-06 15:35:43 +08:00
eternnoir
2e743b4b86
Add v3.2 method.
2017-08-06 15:22:23 +08:00
eternnoir
af70313721
New method for v3.2
2017-08-06 14:25:25 +08:00