TTMSFNCCustomChat.AddFile Method
Adds a file message to the chat.
API unit family: TMSFNCChat
Declaring type: TTMSFNCCustomChat
Syntax
function AddFile(AFilePath: string; AFileName: string; ATitle: string = ''; ALocation: TTMSFNCChatMessageLocation = cmlRight): TTMSFNCChatItem;
Parameters
| Name | Description |
|---|---|
AFilePath |
The path or URL of the file. |
AFileName |
The displayed file name. |
ATitle |
Optional title displayed above the file message. |
ALocation |
The side where the message is displayed. |
Returns
The newly created chat item.