botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

how can reply to message with send option parameter? #209

Closed azizkhani closed 6 years ago

azizkhani commented 6 years ago

I want reply message and want send option. In telegram for send message and show keyboard will send option like this . umm is very good for template message with variable . i want mixed this feature with option.

customerInfo:
  - اطلاعات مشتری
  - text:  نام و نام خانوادگی= {{fullname}} 
            آدرس= {{address}} 
            کد پستی= {{postCode}} 
            شماره کارت= {{cardNumber}} 
            کد مشتری=  {{id}} 
    typing: true
 event.reply('#customerInfo', {fullname:'ali akbar azizkhani'},{
      reply_markup: {
        keyboard: [
          [{ text: "Location", request_location: true }],
          [{ text: "Contact", request_contact: true }],
          ['تغییر نام و نام خانوادگی'],
          ['تغییر شماره موبایل'],
          ['تغییر آدرس'],
          ['تغییر کد پستی'],
          ['تغییر شماره کارت بانکی'],
          ['بازگشت'],
        ]
      }
    });
slvnperron commented 6 years ago

You should look into the quick replies option in messenger

On Feb 4, 2018 1:11 PM, "Ali Akbar Azizkhani" notifications@github.com wrote:

I want reply message and want send option. In telegram for send message and show keyboard will send option line this . umm is very good for template message with variable . i want mixed this feature with option.

customerInfo:

  • اطلاعات مشتری
  • text: نام و نام خانوادگی= {{fullname}} آدرس= {{address}} کد پستی= {{postCode}} شماره کارت= {{cardNumber}} کد مشتری= {{id}} typing: true

event.reply('#customerInfo', {fullname:'ali akbar azizkhani'},{ reply_markup: { keyboard: [ [{ text: "Location", request_location: true }], [{ text: "Contact", request_contact: true }], ['تغییر نام و نام خانوادگی'], ['تغییر شماره موبایل'], ['تغییر آدرس'], ['تغییر کد پستی'], ['تغییر شماره کارت بانکی'], ['بازگشت'], ] } });

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/209, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQStDryjE1_D2oZf2ealVCBchpF8hP9ks5tRfLbgaJpZM4R4qTK .

azizkhani commented 6 years ago

@slvnperron is any example ? messenger support event.reply with options?

slvnperron commented 6 years ago

https://github.com/botpress/botpress-messenger#sending-text-with-quick-replies

On Feb 4, 2018 1:36 PM, "Ali Akbar Azizkhani" notifications@github.com wrote:

@slvnperron https://github.com/slvnperron is an example ? messenger support send reply with options?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/209, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQStI6rR3IUi9RQRJTYH93vloXLOuYzks5tRfiWgaJpZM4R4qTK .