Lonami Exo
c1f3f924d9
Fix iter_messages crash on scheduled and reverse
...
Closes #4719 .
2025-11-18 23:07:07 +01:00
Lonami Exo
302a9a8c5f
Partially revert "Implement perfect forward secrecy for MTProto ( #4618 )"
...
This partially reverts commit 5a3a94eb51 .
It should be re-introduced once the rest of comments are addressed.
Session changes are kept for the future, even if unused for now,
as there may be people who have already upgraded their session.
2025-11-13 18:09:38 +01:00
habcawa
5a3a94eb51
Implement perfect forward secrecy for MTProto ( #4618 )
2025-11-07 23:45:56 +01:00
Shrimadhav U K
859f7423f2
Add send_as and effect parameters in high level
2025-03-08 17:21:49 +01:00
Nick80835
455acc43f6
Improve edit_message message type hint
...
This also allows utils.get_message_id to get the ID of InputMessageID.
2025-01-19 10:40:11 +01:00
Nick80835
5a0e69693b
Document drop_author and add drop_media_captions
...
drop_author is already supported but is undocumented. drop_media_captions for consistency with drop_author being implemented.
2025-01-17 17:02:42 +01:00
Greg Eremeev
a77835a7d9
Fix reuse of captions during send msg with file ( #4500 )
2024-10-25 23:27:58 +02:00
kristal
b01d3d7a2f
Fix edge case on get_messages when reverse=True ( #4455 )
...
Closes #4453 .
2024-09-05 17:00:22 +02:00
Darskiy
3ac11e15ec
Fix get_messages type hint ( #4357 )
2024-04-23 16:54:41 +02:00
John Bezustally
4d34243b98
Add drop_author param to forward_messages ( #4329 )
2024-03-18 08:30:38 +01:00
Lonami Exo
ce010e9bfb
Fix handling of UpdateShortSentMessage
2023-07-23 17:12:16 +02:00
Lonami Exo
164d35681e
Fix reply_to can be optional
2023-07-21 22:44:35 +02:00
Lonami Exo
75ed58ad89
Update to layer 160
2023-07-21 21:24:10 +02:00
iamilya
aab8009a5a
Fix comment_to for a group of messages ( #4120 )
2023-05-31 17:04:33 +02:00
Deer-Spangle
6e7423e894
Allowing nosound_video to be specified ( #4090 )
2023-04-14 22:03:03 +02:00
Nitan Alexandru Marcel
ced36adb03
Fix editing inline messages of type InputBotInlineMessageID64 ( #4082 )
2023-04-07 17:04:08 +02:00
Lonami Exo
acfde7132b
Support Message without client as inputs to forward_messages
...
Raw API does not monkey-patch the client on the returned messages,
so the get_input_chat call would return None, causing the forward
to fail. Instead, manually resolve the chat using the message's
peer_id.
The resolve call can also be avoided if from_peer is passed (which
may mismatch with where the messages actually belong, but that's not
really a concern).
2023-02-08 17:35:49 +01:00
Lonami Exo
4f51604def
Fix sending copies of a file message should ignore parse mode
...
Closes #3983 .
2022-11-26 09:12:06 +01:00
Lonami Exo
b3266fabd8
Fix iter_messages could get stuck on global search
...
Found thanks to #920 . Issue probably introduced in b6d8311 .
2022-10-18 16:00:32 +02:00
Lonami Exo
b6d8311a55
Fix iter_messages was stopping too early in some channels
...
Closes #3949 .
2022-10-13 13:40:25 +02:00
Lonami Exo
2d4305db76
Wrap buttons typehint in Optional
...
Closes #3762 .
2022-09-20 18:03:16 +02:00
Lonami Exo
75fe90005f
Manually construct reply_to for send_message result
...
Closes #3803 .
2022-09-20 16:05:48 +02:00
Lonami Exo
7d21b40401
Revert "Make sessions async"
...
This reverts commit d2de0f3aca .
2022-08-30 12:32:21 +02:00
Tulir Asokan
ecc036c7f4
Add option to clear unread reactions in send_read_acknowledge
2022-05-12 10:40:31 +02:00
Tulir Asokan
d2de0f3aca
Make sessions async
...
SQLiteSession is not updated, don't try to use it
2022-05-12 10:36:10 +02:00
Devesh Pal
befba11657
Add support for scheduled messages in iter_messages ( #3127 )
2021-08-29 11:53:06 +02:00
Lonami Exo
1e6be28e4b
Fix pin_message not returning Message on PMs
2021-08-22 13:46:26 +02:00
Devesh Pal
e5599c178b
Expose more raw API params in friendly methods ( #3104 )
2021-08-05 10:54:07 +02:00
Shrimadhav U K
ecfc6ae87d
Add pm_oneside parameter in pin_message ( #3095 )
2021-07-09 19:50:47 +02:00
Anonymous
7c5efee1de
Update to layer 129 and other additions/enhancements ( #3074 )
...
* Apply code corrections for the new layer types.
* Support not passing `user` to `get_permissions`.
* `download_profile_photo` now supports `MessageService`.
* `thumb` in send and edit message.
* Document new known errors.
2021-06-15 22:57:32 +02:00
BelgenOp
6b53d45ce2
Add attributes, supports_streaming to send_message and edit_message ( #3066 )
...
Closes #3047 .
2021-05-31 15:36:40 +02:00
Lonami Exo
0d05d0d8f5
Update message to include ttl_period
2021-02-23 19:42:09 +01:00
Lonami Exo
23041f398b
Fix messages.search accidentally being used over getHistory
...
Introduced by 668dcd52ca (this commit
did change a lot more than it should have); the condition for search
was never updated to account for the non-None value.
Closes #1693 .
2021-02-08 22:56:27 +01:00
Lonami Exo
4cc9645d76
Fix send_message not forwarding comment_to to send_file
2021-01-30 10:39:45 +01:00
Lonami Exo
ea57db7aad
Add comment_to parameter to more easily post comments
2021-01-28 21:05:20 +01:00
Lonami Exo
ad4c49aa18
Fix global message search
2021-01-26 21:07:44 +01:00
penn5
44aca29057
Favour text parameter when editing inline messages ( #1643 )
2020-12-08 10:06:19 +01:00
Lonami Exo
64d751a397
messages.search from_user may now be a non-User
2020-10-31 11:41:37 +01:00
Lonami Exo
935ee2242d
Add method to unpin messages
2020-10-31 11:31:09 +01:00
Lonami Exo
d83c154f8d
Partial update to layer 120
2020-10-30 20:06:59 +01:00
Lonami Exo
e7f174cdc8
Fix search with offset_date causing infinite recursion
...
Bug introduced by 668dcd5 . Closes #1606 .
2020-10-25 10:33:36 +01:00
Lonami Exo
62467b6318
Fix yet another typo
...
Never make commits in a rush from your phone.
2020-10-23 21:27:39 +02:00
Lonami Exo
60c5d0d8f4
Fix up typo from last commit
2020-10-23 21:24:51 +02:00
Lonami Exo
1a2e09487c
Fix utils.get_peer not handling Self in get_messages
2020-10-23 19:02:43 +02:00
Qwerty-Space
d56b27e570
Fix several minor typos ( #1603 )
2020-10-18 21:11:59 +02:00
Lonami Exo
5952a40c6d
Update iter_messages to support fetching channel comments
...
Closes #1598 .
2020-10-16 10:39:02 +02:00
Lonami Exo
61b0f09e1d
Fix iter_messages(from_users='me')
2020-10-09 21:14:31 +02:00
Tulir Asokan
bf29cddbc9
Add parameter to pass raw entities when sending message ( #1577 )
2020-10-02 22:06:48 +02:00
Lonami Exo
233daafd96
Fix global search would fail if last message had no peer
2020-10-01 13:18:54 +02:00
Lonami Exo
668dcd52ca
Update global search to properly use offset_rate
2020-10-01 12:23:34 +02:00