telegraph icon indicating copy to clipboard operation
telegraph copied to clipboard

Errors in the documentation

Open ilysharusher opened this issue 4 years ago • 7 comments

It's not cretitic, but a newbie like me will be stuck here for a long time :) chrome_Ue92ASaTKW phpstorm64_2f5ZKYjaAz

ilysharusher avatar Nov 16 '22 11:11 ilysharusher

Docs: Снимок экрана_2022-11-16_19-08-58 Real code (it means Method 'action' not found in \DefStudio\Telegraph\Keyboard\ReplyButton): Снимок экрана_2022-11-16_19-12-40

stas12go avatar Nov 16 '22 14:11 stas12go

I didn't understand it at first, either. It seems like callbackQuery only exists on the inline keyboard. 😂

ilysharusher avatar Nov 16 '22 15:11 ilysharusher

@ilysharusher did you find some kind of spare way?

stas12go avatar Nov 16 '22 15:11 stas12go

@stas12go I just started learning this library myself today) Well, in theory, a normal keyboard counts as a normal text. No actions can be there, so just a typo in the documentation I guess.

ilysharusher avatar Nov 16 '22 15:11 ilysharusher

@ilysharusher thanks for thinking.

PS You were right! Just wrote ReplyButton::make('Somy text') and it works as I expect.

stas12go avatar Nov 16 '22 15:11 stas12go

@ilysharusher thanks for pointing this out! We are fixing the documentation and updating it soon

fabio-ivona avatar Nov 16 '22 16:11 fabio-ivona

@fabio-ivona Glad to be useful ☺️

ilysharusher avatar Nov 16 '22 17:11 ilysharusher