Commit graph

25 commits

Author SHA1 Message Date
wulan17
b670101dac
Pyrofork: Add Story Support
Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add Story and StoryViews

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add get_stories method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add StoriesPrivacy

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add send_story method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add edit_story method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add delete_story method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add export_story_link method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add story bound method

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:41 +07:00
wulan17
7a1684f074
PyroFork: rebrand
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 01:35:50 +07:00
Dan
bb44f36247
Add usable-by labels for methods 2022-10-14 11:54:26 +02:00
Dan
6dced525ab Update example 2022-09-15 12:15:13 +02:00
Dan
1db03c4351 Fix for older Python versions 2022-09-03 14:23:52 +02:00
Dan
5d11c03b4e Add set_emoji_status method 2022-09-03 14:18:12 +02:00
Dan
04b343f61b Add get_default_emoji_statuses method 2022-09-03 14:06:46 +02:00
மனோஜ்குமார் பழனிச்சாமி
eb4ff1427b
Fix delete_profile_photos example (#990) 2022-06-20 11:42:37 +02:00
Dan
5681ccefe1 Add back the ability to pass iterators to some methods 2022-05-15 14:24:59 +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
4cb9dec35d Remove remaining iter_* methods 2022-04-24 11:56:07 +02:00
Dan
b47591e6d2 Turn examples asynchronous 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
976c2c47a2 Rename update- to set_username and set_chat_username 2022-04-24 11:56:06 +02: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
804d00fa0f Update get_me.py 2021-11-26 18:07:28 +01:00
Dan
928c8acd01 Fix iter_profile_photos wrong hinted return type 2021-05-03 20:58:37 +02:00
Dan
7dda167c09 Update copyright notice
Year 2021
2021-01-01 22:58:48 +01:00
Alisson Lauffer
1dc4df8cb1
Improve typing hints (#537)
* Change type1 or type2 to Union[type1, type2]

* Address @KunoiSayami suggestions

* Change Union[type1, None] to Optional[type1]

* Update PR with latest commit changes

* Address Dan suggestions
2020-12-20 17:05:17 +01:00
Dan
a4566de2ef Add support for the new Bot API fields: file_id, file_unique_id
Remove file_ref from Pyrogram's API
2020-11-27 22:09:17 +01:00
Dan
71bdfe6c40 Fix get_profile_photos not working correctly in case of no chat photos 2020-08-29 17:26:16 +02:00
Dan
4dd068643d Fix get_profile_photos not working properly in channels 2020-08-29 15:11:21 +02:00
Dan
538f1e3972 Deep rewrite: preparing for v1.0
- Pyrogram core is now fully asynchronous
- Ditched Python 3.5, welcome 3.6 as minimum version.
- Moved all types to pyrogram.types
- Turned the Filters class into a module (filters)
- Moved all filters to pyrogram.filters
- Moved all handlers to pyrogram.handlers
- Moved all emoji to pyrogram.emoji
- Renamed pyrogram.api to pyrogram.raw
- Clock is now synced with server's time
- Telegram schema updated to Layer 117
- Greatly improved the TL compiler (proper type-constructor hierarchy)
- Added "do not edit" warning in generated files
- Crypto parts are executed in a thread pool to avoid blocking the event loop
- idle() is now a separate function (it doesn't deal with Client instances)
- Async storage, async filters and async progress callback (optional, can be sync too)
- Added getpass back, for hidden password inputs
2020-08-22 08:05:05 +02:00