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, + )