Skip to content

Commit c4940dd

Browse files
committed
Update types to Layer 219
1 parent a9d4cc6 commit c4940dd

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ TASK_ALREADY_EXISTS An email reset was already requested.
561561
TEMP_AUTH_KEY_ALREADY_BOUND The passed temporary key is already bound to another **perm_auth_key_id**.
562562
TEMP_AUTH_KEY_EMPTY No temporary auth key provided.
563563
TERMS_URL_INVALID The specified [invoice](https://core.telegram.org/constructor/invoice).`terms_url` is invalid.
564+
TEXTDRAFT_PEER_INVALID The specified peer is invalid.
564565
THEME_FILE_INVALID Invalid theme file provided.
565566
THEME_FORMAT_INVALID Invalid theme format provided.
566567
THEME_INVALID Invalid theme provided.

docs/source/releases/changes-in-this-fork.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ Breaking Changes in this Fork
3131
Changes in this Fork
3232
=====================
3333

34+
+------------------------+
35+
| Scheme layer used: 220 |
36+
+------------------------+
37+
38+
- Added ``message_effect_id`` in :meth:`~pyrogram.Client.forward_messages` and :meth:`~pyrogram.types.Message.forward`.
39+
- View `new and changed <https://telegramplayground.github.io/TG-APIs/TL/diff/tdlib.html?from=214&to=220>`__ `raw API methods <https://telegramplayground.github.io/TG-APIs/TL/diff/tdesktop.html?from=214&to=220>`__.
40+
3441
+------------------------+
3542
| Scheme layer used: 214 |
3643
+------------------------+

pyrogram/methods/messages/forward_messages.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ async def forward_messages(
3939
remove_caption: bool = None,
4040
video_start_timestamp: int = None,
4141
send_as: Union[int, str] = None,
42+
message_effect_id: int = None,
4243
schedule_date: datetime = None
4344
) -> Union["types.Message", list["types.Message"]]:
4445
"""Forward messages of any kind.
@@ -94,6 +95,9 @@ async def forward_messages(
9495
This setting applies to the current message and will remain effective for future messages unless explicitly changed.
9596
To set this behavior permanently for all messages, use :meth:`~pyrogram.Client.set_send_as_chat`.
9697
98+
message_effect_id (``int`` ``64-bit``, *optional*):
99+
Unique identifier of the message effect to be added to the message; for private chats only.
100+
97101
schedule_date (:py:obj:`~datetime.datetime`, *optional*):
98102
Date when the message will be automatically sent.
99103
@@ -135,6 +139,7 @@ async def forward_messages(
135139
allow_paid_stars=paid_message_star_count,
136140
random_id=[self.rnd_id() for _ in message_ids],
137141
send_as=await self.resolve_peer(send_as) if send_as else None,
142+
effect=message_effect_id,
138143
schedule_date=utils.datetime_to_timestamp(schedule_date),
139144
top_msg_id=message_thread_id,
140145
reply_to=reply_to

pyrogram/types/messages_and_media/message.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4763,6 +4763,7 @@ async def forward(
47634763
remove_caption: bool = None,
47644764
video_start_timestamp: int = None,
47654765
send_as: Union[int, str] = None,
4766+
message_effect_id: int = None,
47664767
schedule_date: datetime = None
47674768
) -> Union["types.Message", list["types.Message"]]:
47684769
"""Bound method *forward* of :obj:`~pyrogram.types.Message`.
@@ -4820,6 +4821,9 @@ async def forward(
48204821
This setting applies to the current message and will remain effective for future messages unless explicitly changed.
48214822
To set this behavior permanently for all messages, use :meth:`~pyrogram.Client.set_send_as_chat`.
48224823
4824+
message_effect_id (``int`` ``64-bit``, *optional*):
4825+
Unique identifier of the message effect to be added to the message; for private chats only.
4826+
48234827
schedule_date (:py:obj:`~datetime.datetime`, *optional*):
48244828
Date when the message will be automatically sent.
48254829
@@ -4842,6 +4846,7 @@ async def forward(
48424846
remove_caption=remove_caption,
48434847
video_start_timestamp=video_start_timestamp,
48444848
send_as=send_as,
4849+
message_effect_id=message_effect_id,
48454850
schedule_date=schedule_date
48464851
)
48474852

0 commit comments

Comments
 (0)