botman / driver-facebook

BotMan Facebook Messenger Driver
MIT License
71 stars 72 forks source link

Adding a QuickReplyTemplate #88

Closed obeone closed 2 years ago

obeone commented 5 years ago

Hi,

It's possible to set quick replies buttons to a lot of type template according to the messenger documentation : https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies

I created a quick and dirty template which can embed another template and quick replies buttons. I think there might be better way to do that, and I didn't write unit test but I'm really hurry on a project :/

codecov[bot] commented 5 years ago

Codecov Report

Merging #88 into master will decrease coverage by 2.12%. The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #88      +/-   ##
============================================
- Coverage     71.32%   69.19%   -2.13%     
- Complexity      477      486       +9     
============================================
  Files            49       50       +1     
  Lines          1332     1373      +41     
============================================
  Hits            950      950              
- Misses          382      423      +41
Impacted Files Coverage Δ Complexity Δ
src/FacebookDriver.php 84.21% <ø> (ø) 74 <0> (ø) :arrow_down:
src/Extensions/QuickReplyTemplate.php 0% <0%> (ø) 9 <9> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5ccdd07...16d429e. Read the comment docs.