Method SendReceiptTemplateMessageAsync - HiznyakNikita/facebook-messenger-net-lib GitHub Wiki

SendReceiptTemplateMessageAsync

sends a message with receipt template message to user

Parameters

  • long userId - user ID , user id for whom message is sent
  • ReceiptTemplate receipt - ReceiptTemplate type object which will be send to user in message

Result

A message with receipt template sent to the user

Example

public async Task SendMessage(long userId, Message message) { if (message.Attachment.Payload.GetType() == typeof(ReceiptTemplate)) await _api.SendReceiptTemplateMessageAsync(userId, (message.Attachment.Payload as ReceiptTemplate)); }