Commit graph

3640 commits

Author SHA1 Message Date
wulan17
c4166957d3
Revert "Pyrofork: types: message: Fix cross chat reply parsing"
This reverts commit b4cb8ff17c.

Signed-off-by: wulan17 <wulan17@komodos.id>
2025-03-29 00:22:41 +07:00
KurimuzonAkuma
389a135883
Add ExternalReplyInfo
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-03-29 00:21:47 +07:00
KurimuzonAkuma
6b28d305c0
Add MessageOriginImport
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-03-29 00:21:26 +07:00
KurimuzonAkuma
7ae98099db
Refactor Message
- Refactor Message.quote
- Add forward_origin

Signed-off-by: wulan17 <wulan17@komodos.id>
2025-03-29 00:20:53 +07:00
KurimuzonAkuma
96917949a9
Make url parameter optional for send_web_page
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-03-29 00:20:31 +07:00
wulan17
8074557922
pyrofork: Bump version to 2.3.59
Some checks failed
Pyrofork / build (macos-latest, 3.10) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.11) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.12) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.13) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.9) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.10) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.11) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.12) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.13) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.9) (push) Has been cancelled
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:53:11 +07:00
wulan17
c4b587b493
pyrofork: parser: markdown: Check if PRE is inside blockquote before unparsing it
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:52:09 +07:00
wulan17
1108c52f53
pyrofork: Add support for custom emoji in markdown unparser
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:52:09 +07:00
wulan17
fc84041397
pyrofork: Add offset_{date,id,topic} parameters to get_forum_topics method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:52:09 +07:00
wulan17
71c39b8e6f
pyrofork: Add support for multi-line blockquote in markdown unparser
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:52:09 +07:00
wulan17
bec31032cc
pyrofork: Adapt markdown unparser from telethon
* The problem with current implementation is when we have nested markdown inside a url the markdown order is messed up.
for example link with bold text will be unparsed like this [**github](https://github.com**).

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:52:08 +07:00
wulan17
5c9470fd4f
pyrofork: Fix nested url markdown parsing
* The problem with current implepementation is when we add another markdown inside an url markdown will not be parsed.
for example we add bold (**) markdown inside an url markdown, the url text show as `**text**` instead of making the text bold.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:52:08 +07:00
KurimuzonAkuma
13681302a0
Pyrofork: Add delete_chat_history method
Signed-off-by: Yasir Aris <git@yasir.id>
2025-03-08 20:52:08 +07:00
Yasir Aris M
c31d41e3d3
Pyrofork: Fix video cover
Signed-off-by: Yasir Aris <git@yasir.id>
2025-03-08 20:52:07 +07:00
Yasir Aris M
8528eea303
Pyrofork: Fix get_chat_gifts_count description
Signed-off-by: Yasir Aris <git@yasir.id>
2025-03-08 20:52:07 +07:00
Yasir Aris M
39cd79794e
Pyrofork: Update get_chat_gifts description
Signed-off-by: Yasir Aris <git@yasir.id>
2025-03-08 20:52:07 +07:00
KurimuzonAkuma
ea8ff2806f
Pyrofork: Add message.content property
Signed-off-by: Yasir Aris <git@yasir.id>
2025-03-08 20:52:07 +07:00
wulan17
ee3e9002fc
pyrofork: Add get_chat_forum_topics_count method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:52:06 +07:00
wulan17
4e200e2a5d
pyrofork: Add ForumTopicDeleted
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-03-08 20:51:58 +07:00
Yasir Aris M
ecf469973e
pyrofork: Bump version to 2.3.58
Signed-off-by: Yasir Aris <git@yasir.id>
2025-02-03 12:54:05 +07:00
KurimuzonAkuma
5e72850eee pyrofork: Fix send_gift method
Signed-off-by: Yasir <git@yasir.id>
2025-02-03 05:40:32 +00:00
Yasir Aris M
ad0aed4cf3
Pyrofork: Fix transcribed_audio method
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2025-02-03 12:11:36 +07:00
shriMADhav U k
5c1c72f068 Pyrofork: Add cover and start_timestamp in send_video, reply_video
Signed-off-by: Yasir <git@yasir.id>
2025-02-03 04:44:29 +00:00
KurimuzonAkuma
7662cc164f Pyrofork: Sync Star Gift With Layer 198
Signed-off-by: Yasir <git@yasir.id>
2025-02-03 04:44:29 +00:00
KurimuzonAkuma
2923328bbb Pyrofork: Sync emoji status with layer 198
Signed-off-by: Yasir <git@yasir.id>
2025-02-03 04:44:29 +00:00
KurimuzonAkuma
e9eaa48650 Pyrofork: Add get_upgraded_gift method
Signed-off-by: Yasir <git@yasir.id>
2025-02-03 04:44:29 +00:00
Yasir Aris M
3e504edcc1 Pyrofork: Add message_effect_id and allow_paid_broadcast copy_media_group method 2025-01-29 01:06:38 +00:00
Yasir Aris M
8f9797f57c
pyrofork: Add has_spoiler in get_input_media_from_file_id 2025-01-29 07:14:39 +07:00
n/a
361acdbfd7 fix(pyrogram.methods.messages.copy_media_group): reply_to: miss parameter client 2025-01-29 05:15:32 +07:00
n/a
4a50a9183d fix(pyrogram.utils.get_reply_to): function parameters 2025-01-29 04:55:55 +07:00
wulan17
0f65486aba
pyrofork: Bump version to 2.3.57
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:43:52 +07:00
wulan17
fabe0464fa
pyrofork: Add missing allow_paid_broadcast and message_effect_id parameters to Message.reply_media_group
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:27 +07:00
wulan17
0b220def26
pyrofork: Add transcribe_audio method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:27 +07:00
wulan17
3e36412e68
pyrofork: Add get_similar_bot method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:26 +07:00
wulan17
3180267107
pyrofork: types: EmojiStatus: Sync with layer 198
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:26 +07:00
wulan17
377fda434b
pyrofork: Fix Message.react returns
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:26 +07:00
wulan17
276bc0affd
Revert "Add bound method stop() to the Poll object"
This reverts commit 165ade92d5.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:26 +07:00
wulan17
60533eb92c
pyrofork: Add message_effect_id parameter to send_invoice (#109)
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2025-01-26 20:42:25 +07: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
a653065774
Merge pull request #102 from msx98/getdialogs-catch-peeridinvalid
Catch `PeerIdInvalid` in `get_dialogs`
2025-01-26 20:40:41 +07:00
Yasir Aris M
5676006a10
v2.3.56: pyrofork: Bump version to 2.3.56 2025-01-11 06:54:57 +07:00
Yasir Aris M
71f1147b65
pyrofork: Fix attribute error 2025-01-10 22:38:25 +07:00
Yasir Aris M
8db18a7734
pyrofork: Bump version to 2.3.55
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-10 17:34:03 +07:00
Yasir Aris M
d82a3fb1f7 pyrofork: Changed send_reaction description
Now you can react to service messages

Signed-off-by: Yasir <git@yasir.id>
2025-01-10 10:30:11 +00:00
Yasir Aris M
2e0ec55dd3 pyrofork: Update set_profile_photo notes
Signed-off-by: Yasir <git@yasir.id>
2025-01-10 10:30:11 +00:00
KurimuzonAkuma
f767fd3e3a pyrofork: Add BotVerification Types
Signed-off-by: Yasir <git@yasir.id>
2025-01-10 10:30:11 +00:00
KurimuzonAkuma
b12b4a62f4 pyrofork: Fix forum topic type hints
Signed-off-by: Yasir <git@yasir.id>
2025-01-10 10:30:11 +00:00
KurimuzonAkuma
7cda52ac39 pyrofork: Add get_stars_balance Method
Signed-off-by: Yasir <git@yasir.id>
2025-01-10 10:30:11 +00: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
therealmal
a04c91db31 fix: attributes parsing 2025-01-05 00:08:57 +03: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
Yasir Aris
6c538f026d pyrofork: Add pay_for_upgrade in send_gift method
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:42 +07:00
Yasir Aris
1ddc2d268b pyrofork: Add upgrade_star_count and is_for_birthday in Gift
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:42 +07:00
Yasir Aris
5c93020bbe pyrofork: Refactor StarGift and remove duplicate types
Signed-off-by: Yasir Aris <git@yasir.id>

pyrofork: Refactor StarGift and remove duplicate types

Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:42 +07:00
Yasir Aris
1955de7a20 pyrofork: Add reply_to_story_id to copy_media_group and send_inline_bot_result method
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:41 +07:00
Yasir Aris
2bb299c163 pyrofork: Add start bot method
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:41 +07:00
KurimuzonAkuma
8e7e5fb9ff pyrofork: update StarGift type to new layer
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:41 +07:00
Yasir Aris M
aaf9c0cd3d pyrofork: Fix typo on purchased paid media parser
Signed-off-by: Yasir Aris M <git@yasir.id>
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:41 +07:00
Yasir Aris M
5187bae266 pyrofork: Fix stop_poll method
Signed-off-by: Yasir Aris M <git@yasir.id>
Signed-off-by: Yasir Aris <git@yasir.id>
2025-01-04 16:28:41 +07:00
XiaoCai
ecc15f67a4
pyrofork: fix(send_media_group.py) Fixed media.caption_entities parameter not working (#104)
* fix(send_media_group.py) Fixed media.caption_entities parameter not working.

* chore(send_media_group.py): simplify parse_text_entities handling

Refactored to use ** unpacking directly in raw.types.InputSingleMedia, reducing variable assignments.
2025-01-02 14:07:29 +07:00
Yasir Aris M
21a3045890 pyrofork: Bump version to 2.3.53
Signed-off-by: Yasir <yasiramunandar@gmail.com>
2024-12-21 00:34:10 +00:00
Yasir Aris M
481817649b pyrofork: Add Error handler
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
Yasir Aris M
bd46ff3977 pyrofork: Add message_thread_id parameter to unpin_all_chat_messages()
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
Yasir Aris M
b21db6f931 pyrofork: Add the parameter business_connection_id to the methods pin_chat_message() and unpin_chat_message(), allowing bots to manage pinned messages on behalf of a business account
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
KurimuzonAkuma
6dcb6bfa67 pyrofork: Add custom emojis to markdown
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
KurimuzonAkuma
252882851e pyrofork: Add filters support for raw handler
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
KurimuzonAkuma
ae3bc516fb pyrofork: Add forward_media_group method
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
Shrimadhav U K
5b79294276 pyrofork: Add get_owned_bots
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
Yasir Aris M
08af7a1b66 pyrofork: Fix missing argument on Message
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
2024-12-21 00:30:11 +00:00
shriMADhav U k
d3c945f6b6 pyrofork: Add alternative_videos to Message 2024-12-21 00:30:11 +00:00
wulan17
f6f003d25a
pyrofork: Bump version to 2.3.52
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-30 01:40:56 +07:00
wulan17
bba87d6e52
pyrofork: Add reply_to_chat_id parameter to copy_message method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-30 01:40:26 +07:00
wulan17
c9bbeec525
pyrofork: Refactor Poll
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-30 01:40:20 +07:00
msx98
dd9ae86d8b Catch PeerIdInvalid in get_dialogs 2024-11-29 13:38:29 +02:00
wulan17
efc0272186
pyrofork: Bump version to 2.3.51
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-25 23:40:43 +07:00
n/a
45b47af9b2 fix(py3.9): use List from typing for type hinting instead of built-in list 2024-11-25 07:14:37 +07:00
n/a
ab8f854385 fix: resolve TypeError by correctly positioning invert_media parameter 2024-11-23 17:10:53 +07:00
wulan17
6f5bd1392b
pyrofork: Bump version to 2.3.50
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-22 21:55:02 +07:00
wulan17
1bcf2f7be6
pyrofork: fix search_message
* TypeError: Search.__init__() got an unexpected keyword argument 'thread_id'

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-22 21:54:17 +07:00
wulan17
efce392266
pyrofork: Add missing allow_paid_broadcast parameter to copy_message and forward_messages method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-22 21:49:15 +07:00
wulan17
5dda91d3b0
pyrofork: Bump version to 2.3.49
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:38:20 +07:00
wulan17
4e909508e5
pyrofork: Add thread_id parameter to search_messages and search_messages_count methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:55 +07:00
KurimuzonAkuma
4ced5fbd8b
pyrofork: Add star_gift in Message
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:55 +07:00
shriMADhav U k
52f1b97c84
pyrofork: Add first_send_date, last_send_date, is_sold_out to Gift
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:54 +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
Shrimadhav U K
3426ad59a2
pyrofork: Add allow_paid_broadcast parameter to methods.
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:54 +07:00
wulan17
cf67f9534c
pyrofork: Add invert_media parameter to edit_inline_{caption,message} methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:53 +07:00
shriMADhav U k
b437bc1c46
pyrofork: Add raw attribute to ChatMemberUpdated
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:53 +07:00
shriMADhav U k
307b700df3
Added the field via_chat_folder_invite_link to the class ChatMemberUpdated.
Bot API 6.7
April 21, 2023

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:52 +07:00
wulan17
591cd3ac86
pyrofork: Parse send_inline_bot_result result
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:51 +07:00
wulan17
7726e22161
pyrofork: Update edit_message_media and edit_inline_media description
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:51 +07:00
wulan17
4bcc690083
pyrofork: Remove unused animated and videos field from stickerset
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-11-21 23:32:50 +07:00
wulan17
f990b1e7f9
pyrofork: Update documentation url
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-13 01:54:55 +07:00
wulan17
6e66a7d4b2
pyrofork: Bump version to 2.3.48
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:59:21 +07:00
KurimuzonAkuma
f30aa0077a
Add get_user_star_gifts method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:56:46 +07:00
KurimuzonAkuma
0a6cc8b5a4
Add show_star_gift and hide_star_gift method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:56:45 +07:00
KurimuzonAkuma
f23f450c62
Add convert_star_gift method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:56:45 +07:00
KurimuzonAkuma
d4649275e9
Add send_star_gift method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:56:45 +07:00
KurimuzonAkuma
bb96ca8597
Add get_star_gifts method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:56:45 +07:00
wulan17
e4968df4c9
pyrofork: Move some method and types to payments category
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:56:45 +07:00