From 91e4716872af6f25ed179b1cf7e64bacf058cf7f Mon Sep 17 00:00:00 2001
From: Dan <14043624+delivrance@users.noreply.github.com>
Date: Sun, 24 Apr 2022 11:56:07 +0200
Subject: [PATCH] Use pack_inline_message_id util function in CallbackQuery
---
pyrogram/types/bots_and_keyboards/callback_query.py | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/pyrogram/types/bots_and_keyboards/callback_query.py b/pyrogram/types/bots_and_keyboards/callback_query.py
index dc4741b2..efdd14ca 100644
--- a/pyrogram/types/bots_and_keyboards/callback_query.py
+++ b/pyrogram/types/bots_and_keyboards/callback_query.py
@@ -16,8 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see .
-from base64 import b64encode
-from struct import pack
from typing import Union, List, Match, Optional
import pyrogram
@@ -102,15 +100,7 @@ class CallbackQuery(Object, Update):
if not message:
message = await client.get_messages(chat_id, message_id)
elif isinstance(callback_query, raw.types.UpdateInlineBotCallbackQuery):
- inline_message_id = b64encode(
- pack(
- "