There are other kind of message types which are supported by the client. In the following paragraphs we will look how to send contacts, venues or locations.
This is the code to send a contact. Mandatory are the parameters chatId
, phoneNumber
and firstName
.
{{#include ../../../Examples/2/SendMessage.cs:send-contact}}
If you want to send a contact as vCard you can achieve this by adding a valid vCard string
as value for the optional parameter vCard
as seen in the given example below.
{{#include ../../../Examples/2/SendMessage.cs:send-vCard}}
The code snippet below sends a venue with a title and a address as given parameters:
{{#include ../../../Examples/2/SendMessage.cs:send-venue}}
The difference between sending a location and a venue is, that the venue requires a title and address. A location can be any given point as latitude and longitude.
The following snippet shows how to send a location with the mandatory parameters:
{{#include ../../../Examples/2/SendMessage.cs:send-location}}