From e5232850cb45f0762c293a14948c9e6598588425 Mon Sep 17 00:00:00 2001 From: RabbitFoRed <73241991+RabbitFored@users.noreply.github.com> Date: Sat, 6 Jul 2024 13:28:29 +0530 Subject: [PATCH] Update inline_keyboard_button_buy.py --- .../types/bots_and_keyboards/inline_keyboard_button_buy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyrogram/types/bots_and_keyboards/inline_keyboard_button_buy.py b/pyrogram/types/bots_and_keyboards/inline_keyboard_button_buy.py index 3f74f2a1..465c3638 100644 --- a/pyrogram/types/bots_and_keyboards/inline_keyboard_button_buy.py +++ b/pyrogram/types/bots_and_keyboards/inline_keyboard_button_buy.py @@ -17,6 +17,7 @@ # along with Pyrofork. If not, see . from ..object import Object +from pyrogram import raw class InlineKeyboardButtonBuy(Object): """One button of the inline keyboard. @@ -42,4 +43,7 @@ class InlineKeyboardButtonBuy(Object): text=b.text ) - # TODO: Implement write method + async def write(self, client): + return raw.types.KeyboardButtonBuy( + text=self.text, + )