noreph
34ffc4991a
Fix example typo ( #1020 )
2022-06-20 11:41:10 +02:00
Dan
c5958fc0c4
Fix offset_date not being an integer timestamp
...
Closes #1003
2022-05-26 11:30:20 +02:00
Dan
5681ccefe1
Add back the ability to pass iterators to some methods
2022-05-15 14:24:59 +02:00
Dan
ff90baffb3
Fix get_messages and usages
2022-05-14 21:12:37 +02:00
leonardotty
d984ae24d5
Add missing parameter to send_reaction ( #993 )
2022-05-14 19:28:44 +02:00
DevOps117
6e1425ada3
Drop support for iterators where they are not needed ( #969 )
...
* delete_messages: Drop support for generators
Since we used a list there anyway, this approach will lead to more localized errors and can reduce function overhead.
Signed-off-by: devops117 <55235206+devops117@users.noreply.github.com>
* delete_messages: Return pts_count:int
An example usecase would be for a normal bot which uses range based on message ids
instead of keeping a track of messages and using the DeletedMessagesHandler.
Signed-off-by: devops117 <55235206+devops117@users.noreply.github.com>
* Drop support for Iterators and update docstrings and some cleanups.
Signed-off-by: devops117 <55235206+devops117@users.noreply.github.com>
* Update get_users.py
* Update get_messages.py
* Update delete_messages.py
* Update forward_messages.py
* Update get_messages.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-05-14 08:58:30 +02:00
Dan
6cf849c3ea
Revert "Update maximum caption length ( #989 )"
...
This reverts commit f1e4a0ce74 .
2022-05-07 12:01:14 +02:00
leonardotty
f1e4a0ce74
Update maximum caption length ( #989 )
...
Co-authored-by: leonardotty <leonardo.rossidev@gmail.com>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-05-06 22:06:11 +02:00
Stark Programmer
32b3452e76
Fix self-destruct media if file_id and ttl_seconds are passed ( #971 )
2022-04-27 09:17:14 +02:00
Dan
5f47c8c499
Fix some examples
2022-04-25 16:52:04 +02:00
Dan
8852756798
Fix zero-datetime not working in some systems
2022-04-24 18:13:18 +02:00
Dan
1ae719c252
Rework send_poll: add missing parameters
2022-04-24 11:56:07 +02:00
Dan
b645a75b93
Allow negative offsets in stream_media
2022-04-24 11:56:07 +02:00
Dan
74f970e863
Add more docstrings to stream_media
2022-04-24 11:56:07 +02:00
Dan
3e33ef0c0d
Add support for media streams with the method stream_media
2022-04-24 11:56:07 +02:00
Dan
01ca652f8c
Add support for in-memory downloads
2022-04-24 11:56:07 +02:00
Dan
b47591e6d2
Turn examples asynchronous
2022-04-24 11:56:07 +02:00
Dan
0e3c2e4412
Rename RPCError.x to RPCError.value
2022-04-24 11:56:07 +02:00
Dan
84f0b3a97a
Rename some enums
2022-04-24 11:56:07 +02:00
Dan
bbc109d73e
Remove unused method
2022-04-24 11:56:07 +02:00
Dan
04eef09097
Don't fetch reply-to messages in search_messages
2022-04-24 11:56:07 +02:00
Dan
d1bdaae81d
Add methods related to discussion threads and comments
2022-04-24 11:56:07 +02:00
Dan
bf8a334e32
Revamp get_chat_history related methods
2022-04-24 11:56:07 +02:00
Dan
78efb04b40
Rename Client.send to Client.invoke
2022-04-24 11:56:07 +02:00
Dan
32624ef5e6
Improve type hints
2022-04-24 11:56:06 +02:00
Dan
274650cda9
Rename Message.message_id to Message.id
2022-04-24 11:56:06 +02:00
Dan
b697826b5a
Replace integer timestamps with datetime objects
2022-04-24 11:56:06 +02:00
Dan
bbad58a83f
Add enumerations
2022-04-24 11:56:06 +02:00
blank X
e0eccfa8fb
Respect file_name if file passed is a file object ( #912 )
...
Fixes #911
2022-02-26 11:13:08 +01:00
Danipulok
10c512d39c
Remove unnecessary method call in get_media_group ( #860 )
2022-01-11 16:42:04 +01:00
SUBIN
1d7c57e669
Add missing parameter protect_content ( #859 )
2022-01-07 17:05:34 +01:00
Dan
626a1bd938
Update copyright year
2022-01-07 10:23:45 +01:00
Dan
8c8288412f
Various improvements
2022-01-07 10:18:51 +01:00
Dan
f6625192d0
Add parameter protect_content to send_* methods
2022-01-03 11:12:24 +01:00
Dan
1fa637553d
Add method send_reaction
2021-12-30 13:43:44 +01:00
Dan
e8076d1b8a
Add method get_discussion_message
2021-12-22 15:00:03 +01:00
Adek
6fb427fb9a
Add new chat actions ( #751 )
...
* Add new chat action
* Update send_chat_action.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-12-17 10:41:39 +01:00
Dan
2265d282f5
Add search_global_count and search_messages_count methods ( #768 )
2021-10-11 14:27:31 +02:00
Md. Hasibul Kabir
e68da74e89
Further improve the session-switching mechanism for inline bots ( #739 )
...
* Ability to run multiple bot.
Global session creates a problem for other bot. As that session was generated for another bot can't be used by this bot.
* Use the existing media session lock
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-08-29 10:49:47 +02:00
Dan
523ed3e7cb
Add support for in-memory uploads in send_media_group ( #519 )
...
* Add support for in-memory uploads for send_media_group
* update input_media_photo docs
* update type hints
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-06-01 13:57:31 +02:00
Christy Roys
0d12d8c1bb
Add support for in-memory uploads in send_media_group ( #519 )
...
* Add support for in-memory uploads for send_media_group
* update input_media_photo docs
* update type hints
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-05-22 10:00:23 +02:00
Ripe
be83f8e25e
Actually fix inline message id invalid (for inline message queries) ( #683 )
...
* Fix Inline Message ID Invalid
* Update inline_session.py
* Update inline_session.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-05-15 07:06:37 +02:00
Gaetano
a4bb2a3fdf
Fix typo in send_video examples ( #679 )
2021-05-12 09:13:19 +02:00
Dan
0c46b653ec
Remove unneeded check
2021-05-12 08:31:08 +02:00
Mahesh
fd04648ea0
Add support for editing inline messages' media using local files ( #675 )
...
* Fix edit_inline_media for local files
* Update edit_inline_media.py
* Update edit_inline_media.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-05-12 08:29:49 +02:00
Danipulok
ecd83c594c
Fixed method Client.get_media_group ( #619 )
...
* Fixed method
* Added exception in case message_id is invalid
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-05-09 12:43:23 +02:00
Danipulok
429b871171
Add method Client.copy_media_group ( #592 )
...
* Add method client.copy_media_group
* -updated wrong variable names
* Replace with
* Update copy_media_group.py
* Update copy_media_group.py
* Update compiler.py
* Update copy_media_group.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-05-09 12:39:49 +02:00
Dan
50d1f30ac1
Add missing reply_markup for outgoing bot private messages
...
Fix #656
2021-03-29 14:14:19 +02:00
Dan
182768a5d3
Add support for LoginUrl buttons
2021-03-17 17:13:55 +01:00
Dan
86cc1837b6
Add support for the new bowling animation (dice)
2021-03-17 15:09:04 +01:00