Commit graph

39 commits

Author SHA1 Message Date
vpcreatz
71ec8923ef
Merge 797d7330cb into aac5425334 2025-03-28 20:10:44 +01:00
wulan17
885a832aa3
pyrofork: filters: topic: Add support for general topic
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:25 +07:00
KurimuzonAkuma
14fb99cf77 pyrofork: Refactor Star Gift Based On New Layer
Signed-off-by: Yasir <git@yasir.id>
2025-01-10 10:30:11 +00:00
Yasir Aris
8ceec293ba pyrofork: Bump version to 2.3.54
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 22:17:33 +07:00
KurimuzonAkuma
680918eed7
pyrofork: Steal Star Gifts changes from KurimuzonAkuma fork (#100)
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:54 +07:00
coglione
4cec859126
pyrofork: Add high level support for pre-checkout queries and service messages for successful payments
* Add high level support for pre-checkout queries

* Add high level support for incoming payments

* Update and fix documentation

---------

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:41:02 +07:00
KurimuzonAkuma
40b679a878
pyrofork: Add topic filter
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:38:01 +07:00
wulan17
1b3f0933c7
Pyrofork: Update Copyright headers
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-07 20:25:08 +07:00
vpcreatz
797d7330cb
Added edited filter 2024-02-04 18:49:26 +05:30
Yasir Aris M
2a260d0d18
Add filters.react to filter react 2023-12-15 07:50:41 +07:00
n1ret
06ab804ba1 Added compatibility with Story object to chat filter 2023-10-31 09:47:29 +05:00
mrmissx
39af991a04
add topic status filters
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-09-13 21:59:49 +07:00
Dan
06996d24ff Add media_spoiler filter 2022-12-30 15:09:21 +01:00
ALi.w
31b32184c9
Use getattr to get outgoing attribute in filters.me (#1137)
* Use getattr to get outgoing attribute from the message in me_filter.
Fixes #1136.

Signed-off-by: Aliwoto <woto@kaizoku.cyou>

* Update filters.py

Signed-off-by: Aliwoto <woto@kaizoku.cyou>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-11-13 14:27:19 +01:00
Dan
d71db29a8c Store the "me" user object 2022-06-20 10:28:49 +02:00
Dan
59ccc4de88 Documentation fixes 2022-04-24 11:56:07 +02:00
Dan
a3c7f5e991 Rename voice_* related fields to video_* 2022-04-24 11:56:07 +02:00
Dan
ecc90caba2 Handle edited messages using a separate handler 2022-04-24 11:56:07 +02:00
Dan
41f16a17c9 Fix filters.command not working with multiple running bots
Closes #864
2022-04-24 11:56:07 +02:00
Dan
32624ef5e6 Improve type hints 2022-04-24 11:56:06 +02:00
Dan
bbad58a83f Add enumerations 2022-04-24 11:56:06 +02:00
Dan
bf233e3b5b Update Filters.reply to check for Message.reply_to_message_id 2022-02-17 11:42:42 +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
Alisson Lauffer
02a3969101
Fix Message.command when case is different (#757)
* Fix Message.command when case is different

* Update test_command.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-09-14 18:33:54 +02:00
Dan
934091d8ea Fix get_me being called for every command
It needs to be called once only
2021-05-07 13:18:00 +02:00
Dan
636ff776d6 Fix duplicated commands in Message.command
Also add more test cases
Related to #676
2021-05-06 19:21:25 +02:00
Dan
4fc4501445 Remove trailing username when adding args to Message.command
Fixes #676
2021-05-06 13:02:26 +02:00
Dan
e9e6c30d05 Handle bot commands with trailing usernames
Closes #139, #615
2021-05-05 13:58:03 +02:00
Dan
66b1229664 Fix broken hyperlinks 2021-03-20 10:40:38 +01:00
Dan
783e89e0f0 Add filters for voice chat service messages 2021-03-17 13:22:19 +01:00
Dan
6678af08aa Add filters.dice to filter Dice messages 2021-03-17 13:18:16 +01:00
Dametto Luca
54b20875b9
Fix filters.create documentation (#623)
Wrong documentation for filters.create, callable funcitions requires 3 positional arguments (filter, client, update) and not two.
2021-03-14 12:44:13 +01: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
M. Smits
332468d271
Enhance filters.me to allow it intercept own anonymous messages (#501)
* Check message.outgoing 'True' in me_filter.

* After reinterpretation of the ticket, check if user or outgiong.

Closes #499
2020-10-18 18:37:41 +02:00
Dan
01ec5d7f1d Fix a bad docstring indentation in filters.regex 2020-08-24 09:51:21 +02:00
Dan
3e3d77fdaf Implement short-circuit evaluation for filters
AND and OR operations will not evaluate the second operand
in case the first one is, respectively, False and True.
2020-08-24 09:20:10 +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