n8n/packages/nodes-base/nodes/Telegram/IEvent.ts

20 lines
242 B
TypeScript

interface EventBody {
photo?: [
{
file_id: string;
},
];
document?: {
file_id: string;
};
video?: {
file_id: string;
};
}
export interface IEvent {
message?: EventBody;
channel_post?: EventBody;
download_link?: string;
}