diff --git a/pyrogram/utils.py b/pyrogram/utils.py index b3f04e60..c855ae62 100644 --- a/pyrogram/utils.py +++ b/pyrogram/utils.py @@ -146,6 +146,26 @@ def parse_deleted_messages(client, update) -> List["types.Message"]: return types.List(parsed_messages) +def pack_inline_message_id(msg_id: "raw.base.InputBotInlineMessageID"): + if isinstance(msg_id, raw.types.InputBotInlineMessageID): + inline_message_id_packed = struct.pack( + "