defstudio / telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots
MIT License
674 stars 116 forks source link

#549 add properties assignments in KeyboardButtonProxy and ReplyKeyboardButtonProxy constructors #550

Closed oakymax closed 6 months ago

oakymax commented 6 months ago

With these changes sequential keyboard property assignment will work properly:

$telegraph->markdown('Registration needed')->replyKeyboard(
    ReplyKeyboard::make()
        ->button('Send contact')->requestContact()
        ->button('Cancel')
        ->resize()
        ->oneTime()
        ->inputPlaceholder("Waiting for input")
)->send();
fabio-ivona commented 6 months ago

Thanks!