pyrofork/pyrogram
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
..
connection Remove API key requirement for existing sessions 2022-04-24 11:56:07 +02:00
crypto Add speedups.rst 2022-04-24 11:56:07 +02:00
enums Fix enumeration docstring 2022-04-27 21:37:05 +02:00
errors Rename RPCError.x to RPCError.value 2022-04-24 11:56:07 +02:00
handlers Handle edited messages using a separate handler 2022-04-24 11:56:07 +02:00
methods Drop support for iterators where they are not needed (#969) 2022-05-14 08:58:30 +02:00
parser Fix HTML and Markdown unparsing 2022-04-25 08:30:26 +02:00
raw Remove ability to access attributes via bracket notation 2022-04-24 11:56:06 +02:00
session Fix Client.name usage 2022-04-24 11:56:07 +02:00
storage Remove unused import 2022-04-29 11:02:58 +02:00
types Revert "Update maximum caption length (#989)" 2022-05-07 12:01:14 +02:00
__init__.py Update Pyrogram to v2.0.19 2022-05-06 22:09:31 +02:00
client.py Clean up on download's stop_transmission and return None 2022-05-04 09:04:25 +02:00
dispatcher.py Handle edited messages using a separate handler 2022-04-24 11:56:07 +02:00
emoji.py Update emoji.py 2022-01-31 21:27:58 +01:00
file_id.py Faster RLE codec implementation (#938) 2022-03-28 20:10:52 +02:00
filters.py Documentation fixes 2022-04-24 11:56:07 +02:00
mime_types.py Update copyright year 2022-01-07 10:23:45 +01:00
py.typed Add py.typed file for enhanced type hinting (#838) 2022-01-29 13:39:25 +01:00
sync.py Add new function compose 2022-04-24 11:56:07 +02:00
syncer.py Update copyright year 2022-01-07 10:23:45 +01:00
utils.py Fix self-destruct media if file_id and ttl_seconds are passed (#971) 2022-04-27 09:17:14 +02:00