From Bright Pattern Documentation
< 5.19:Chat-directives
Revision as of 20:36, 26 September 2023 by Matt.lashley (talk | contribs) (Created page with "=Chat Directive: Location= The location directive calls a messenger's API to send location information to messenger users. The location directive can be entered via: * Ag...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19

Chat Directive: Location

The location directive calls a messenger's API to send location information to messenger users. The location directive can be entered via:


Format


The location directive consists of a forward slash followed by the word location, a longitude, a latitude, an optional title, and an optional address.

Location directive format
/location <longitude>, <latitude>[, "title", "address"]

Formatting Rules


  • Directives are case sensitive.
  • Separate a directive from its parameters with a colon or whitespace.
  • Separate multiple parameters with commas.
  • Enclose string parameters in double quotes.
  • Add required parameters before optional parameters.
  • An optional parameter value may be an empty string.


Info.40x40.png Separating a directive from its parameters with whitespace is allowed for backward compatibility. The recommended separator is a colon, except for the buttons directive which only accepts whitespace between the directive and its parameters.


Examples


Send a longitude and latitude:
/location 1.23, 5.67 
Send a longitude, latitude, and a title:
/location : 1.23, 5.67, "Bright Pattern"
Send a longitude, latitude, title, and address:
/location : 1.23, 5.67, "Bright Pattern", "611 Gateway Blvd., South San Francisco, CA 94080"
Send a longitude, latitude, an empty title, and address:
/location : 1.23, 5.67, "", "611 Gateway Blvd., South San Francisco, CA 94080"


See also:




< Previous | Next >