wulan17
6543fa11b6
pyrofork: Add InputPeer support for utils.get_raw_peer_id and utils.get_peer_id
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-09-13 22:41:47 +07:00
hdiiofficial
c0ee103efe
pyrofork: Update MIN_CHANNEL_ID and MIN_CHAT_ID ( #81 )
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-20 23:40:06 +07:00
wulan17
d46e8f1da4
pyrofork: Add support for requested channel/chat/user in utils.get_raw_peer_id
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-14 21:01:46 +07:00
Gautam Kumar
d2ee1653a7
pyrofork: update MIN_CHANNEL_ID
...
update MIN_CHANNEL_ID
Reference: https://t.me/pyrogramchat/593087
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:35:35 +07:00
˹ᴧɴσɴʏᴍσᴜs ꭙ˼
af9e137b28
Typo
2024-04-08 11:32:41 +05:30
wulan17
2d090a6db5
Pyrofork: Fix typo in parse_deleted_messages
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-07 23:09:20 +07:00
wulan17
cc91ee9f44
Pyrofork: Add edited and deleted bot business message(s) handler
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
wulan17
48fed9347a
Pyrofork: Add UpdateBotNewBusinessMessage updates handler
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
wulan17
cb23b6d17b
Pyrofork: Update stories with Layer 174 changes
2024-02-29 21:42:23 +07:00
wulan17
c8b2a3adca
Pyrofork: Add quote_entities parameter to send_{*} methods and Message.reply_{*} bound methods
...
also add missing parameters to InputReplyToMessage docs
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-31 17:43:34 +07:00
wulan17
cd0473c6af
Pyrofork: Move reply_to to pyrogram.utils
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-31 17:43:34 +07:00
Aliwoto
b4cb8ff17c
Pyrofork: types: message: Fix cross chat reply parsing
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-08 00:49:32 +07:00
Cezar H
8aee144313
Added Conversation Support Based on Pyromodv2
...
Co-authored-by: Alisson Lauffer <alissonvitortc@gmail.com>
Co-authored-by: Yasir Aris M <git@yasirdev.my.id>
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-11-25 21:51:41 +07:00
wulan17
db6cae4ae1
Pyrofork: Add reply_to_story field to Message
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-09-22 16:33:52 +07:00
wulan17
c2a506fca0
Pyrofork: add async helper
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:26 +07:00
wulan17
ea33dc43a4
Pyrofork: Add Forum Topic Support
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add ForumTopicCreated, ForumTopicClosed, ForumTopicReopened, ForumTopicEdited service message types
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add can_manage_topics fields to ChatPrivileges and ChatPermissions class
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add manage_topics parameter to promote_chat_member, restrict_chat_member, and set_chat_permissions methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add message_thread_id parameter to send_{animation,audio,cached_media,contact,dice,document,location,media_group,message,photo,poll,sticker,venue,video,video_note,voice} methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrogram: Add message_thread_id parameter to forward_message() method and forward() bound method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add message_thread_id parameter to send_game() method and copy() bound method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrogram: Add ForumTopic and some cleanup
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add {create,close,reopen,edit,delete}_forum_topic methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add message_thread_id parameter to copy_message method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add {CREATED,EDITED,DELETED}_FORUM_TOPIC ChatEvent
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: utils: Check if messages has topics atribut
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrogram: types: Message: Add error handling and is_topic_message
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Add message_thread_id parameter to send_inline_bot_result()
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: add GeneralTopicHidden and GeneralTopicUnhidden service messages types
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: add message_thread_id parameter to send_chat_action
Signed-off-by: wulan17 <wulan17@nusantararom.org>
PyroFork: Add CloseGeneralTopic, EditGeneralTopic, ReopenGeneralTopic, HideGeneralTopic. UnhideGeneralTopic, and some cleanup
Signed-off-by: wulan17 <wulan17@nusantararom.org>
PyroFork: Add get_forum_topic and get_forum_topic_by_id methods
Signed-off-by: wulan17 <galihgustip@gmail.com>
Pyrofork: Update some methods to layer 160
Signed-off-by: wulan17 <wulan17@nusantararom.org>
pyrofork: Add InputReplyToMessage
Signed-off-by: wulan17 <wulan17@nusantararom.org>
PyroFork: docs: Add missing PeerUser and PeerChannel
and some cleanup
Signed-off-by: wulan17 <galihgustip@gmail.com>
2023-08-18 03:30:36 +07:00
Dan
ed008dd3bb
Fix message entity parsing and serialization
2022-08-28 20:32:43 +02:00
Harsh
ed748952b5
Filter out empty entities internally ( #1041 )
...
* Filter out empty entities internally
I guess it's fine to handle empty entities internally to avoid ENTITY_BOUNDS_INVALID , so the client won't send the empty entities
* revert utils and apply changes to parser/html.py
* Update utils.py
* Update utils.py
* Update utils.py
* Update html.py
* Update utils.py
* Update utils.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-07-22 17:15:18 +02:00
Dan
5681ccefe1
Add back the ability to pass iterators to some methods
2022-05-15 14:24:59 +02:00
Dan
ff90baffb3
Fix get_messages and usages
2022-05-14 21:12:37 +02:00
Stark Programmer
32b3452e76
Fix self-destruct media if file_id and ttl_seconds are passed ( #971 )
2022-04-27 09:17:14 +02:00
Dan
9deec03b87
Revert "Make timestamp_to_datetime timezone aware ( #966 )"
...
This reverts commit b309caccd7 .
2022-04-25 19:40:39 +02:00
மனோஜ்குமார் பழனிச்சாமி
b309caccd7
Make timestamp_to_datetime timezone aware ( #966 )
...
* timezone aware object
* Update utils.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-04-25 16:50:15 +02:00
Dan
8852756798
Fix zero-datetime not working in some systems
2022-04-24 18:13:18 +02:00
Dan
2ad53ec00b
Update unpack_inline_message_id
2022-04-24 11:56:07 +02:00
Dan
4e6c1690d2
Add pack_inline_message_id util function
2022-04-24 11:56:07 +02:00
Dan
32624ef5e6
Improve type hints
2022-04-24 11:56:06 +02:00
Dan
274650cda9
Rename Message.message_id to Message.id
2022-04-24 11:56:06 +02:00
Dan
b697826b5a
Replace integer timestamps with datetime objects
2022-04-24 11:56:06 +02:00
Dan
626a1bd938
Update copyright year
2022-01-07 10:23:45 +01:00
Sam
fe764e0e2b
Update session string format ( #818 )
2021-12-20 20:34:57 +01:00
Dan
2e964b3fa9
Update MAX_USER_ID
2021-12-04 18:39:35 +01:00
Dan
b47c5a93b1
Fix enum items showing ids instead of names
2021-02-12 12:36:32 +01:00
Dan
a48d27f501
Always run crypto-related functions in the dedicated thread
2021-01-02 18:45:43 +01:00
Dan
7dda167c09
Update copyright notice
...
Year 2021
2021-01-01 22:58:48 +01:00
Dan
ed79f73bd7
Rework and simplify message parsing
2020-12-23 19:04:28 +01:00
Dan
4b77bbd468
Fix get_dialogs breaking in case of empty messages
2020-12-23 17:20:06 +01:00
Dan
865f4274c3
Fix messages not having a reply-to-message when they actually do
2020-12-23 16:18:27 +01:00
Dan
29fa3ec520
Remove unneeded util functions and improve docs
2020-12-20 17:57:41 +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
844e53a70e
Move crypto calls to threads in case of big enough chunks
2020-12-07 19:16:46 +01:00
Dan
384f4eba71
Add support for manual text entities.
2020-11-29 15:48:29 +01:00
Dan
9f77fed181
Add a clearer error in case of bad file ids
2020-11-28 14:58:24 +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
4632879ee4
Changes for L119
2020-09-30 20:26:57 +02:00
Dan
6a5469edaf
Don't attempt to retrieve chat attributes from empty messages
...
Fixes #479
2020-08-30 10:57:31 +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