laravel-notification-channels / telegram

✈️ Telegram Notifications Channel for Laravel
https://laravel-notification-channels.com/telegram/
MIT License
978 stars 165 forks source link

Add keyboard function to messages #183

Closed abbasudo closed 1 year ago

abbasudo commented 1 year ago

normal keyboard function added to messages

TelegramMessage::create()
            ->to($notifiable->telegram_user_id)
            ->content('Hello there!')
            ->keyboard('Button 1')
            ->keyboard('Button 2');
codecov-commenter commented 1 year ago

Codecov Report

Merging #183 (5102df4) into master (5c9fc73) will increase coverage by 1.75%. The diff coverage is 88.88%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff              @@
##             master     #183      +/-   ##
============================================
+ Coverage     51.53%   53.28%   +1.75%     
- Complexity      110      112       +2     
============================================
  Files            12       12              
  Lines           293      304      +11     
============================================
+ Hits            151      162      +11     
  Misses          142      142              
Files Coverage Δ
src/Traits/HasSharedLogic.php 95.55% <100.00%> (+1.43%) :arrow_up:
src/TelegramFile.php 0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

irazasyed commented 1 year ago

Please add example screenshot previews and update the docs too.

Please don't forget to add relevant tests too.

abbasudo commented 1 year ago

@irazasyed thanks for reviewing the code. I have added 3 tests and a screenshot to the docs. please tell me if there are any other changes that I have to make.

irazasyed commented 1 year ago

Merged. Thanks for the PR and for all the requested changes.