pyrofork/pyrogram/methods
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
..
advanced Rename Client.send to Client.invoke 2022-04-24 11:56:07 +02:00
auth Remove API key requirement for existing sessions 2022-04-24 11:56:07 +02:00
bots Add the method answer_web_app_query 2022-04-24 11:56:07 +02:00
chats Add missing parameters to Chat.set_photo (#980) 2022-05-06 22:08:52 +02:00
contacts Drop support for iterators where they are not needed (#969) 2022-05-14 08:58:30 +02:00
decorators Fix on_edited_message not being correctly registered in plugins 2022-04-25 17:27:36 +02:00
invite_links Fix zero-datetime not working in some systems 2022-04-24 18:13:18 +02:00
messages Drop support for iterators where they are not needed (#969) 2022-05-14 08:58:30 +02:00
password Turn examples asynchronous 2022-04-24 11:56:07 +02:00
users Drop support for iterators where they are not needed (#969) 2022-05-14 08:58:30 +02:00
utilities Add new function compose 2022-04-24 11:56:07 +02:00
__init__.py Update copyright year 2022-01-07 10:23:45 +01:00