Update inline_keyboard_button_buy.py

This commit is contained in:
RabbitFoRed 2024-07-06 13:28:29 +05:30 committed by GitHub
parent 0a844bd5ed
commit e5232850cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,7 @@
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
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,
)