Trigger a special request button in Facebook Messenger or Telegram client, like current position or phone number (only for Telegram).

With Facebook Messenger it’s also possible to use Quick Replies node to ask the current position of the user.

The parameters for the Request node can be defined in a upstream Function node, for example

msg.payload = {
  message: 'Please tell me where you are',
  requestType: 'location',
  buttonLabel: 'Your position'
};
return msg;

Available parameters for the msg.payload

Name Type Description
message string The message text above the request button
requestType string Type of request. Can be location or phone-number
buttonLabel string Button label (only for Telegram)