import { MessageAttachment } from '@api-contracts/messaging';
const messageAttachment = new MessageAttachment({ type: 'photo', text: 'photo.png', url: 'example.url' });
import { DocAttachment } from '@api-contracts/messaging';
const docAttachment = new DocAttachment({ type: 'doc', text: 'example.pdf', url: 'example.url', filesize: 1024 });
import { createAttachment } from '@api-contracts/messaging';
const attachment = createAttachment({ type: 'photo', text: 'photo.png', url: 'example.url' }, true);
import { MessageContent } from '@api-contracts/messaging';
const content = new MessageContent({ text: 'example text', attachments: [{ type: 'photo', text: 'photo.png', url: 'example.url' }] });
import { Message } from '@api-contracts/messaging';
const message = new Message({ ... });
import { ATTACHMENT_TYPES } from '@api-contracts/messaging';
if (attachment.type === ATTACHMENT_TYPES.geo) { console.log('geo attachment'); }
import { SocialTypes } from '@api-contracts/value-sets';
console.log(SocialTypes['VK_GROUP']) // 'vk_group'