Layer 220
BusinessChatLink
Contains info about a business chat deep link created by the current account.
constructor
businessChatLink#b4ae666f flags:# link:string message:string entities:flags.0?Vector<MessageEntity> title:flags.1?string views:int = BusinessChatLink;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Link | string | Business chat deep link. |
| Message | string | Message to pre-fill in the message input field. |
| Entities | Vector<MessageEntity> | Message entities for styled text |
| Title | flags.1?string | Human-readable name of the link, to simplify management in the UI (only visible to the creator of the link). |
| Views | int | Number of times the link was resolved (clicked/scanned/etc.). |
Returns
BusinessChatLinkGogram Example
// Creating BusinessChatLink constructor obj := &tg.BusinessChatLink{ Link: "...", Message: "...", Views: 0, // Optional fields: // Entities: []tg.MessageEntity{&tg.MessageEntityBold{Offset: 0, Length: 4}}, // Title: "...", }