forked from ubiquity/ubiquibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatic.ts
More file actions
33 lines (31 loc) · 1005 Bytes
/
Copy pathstatic.ts
File metadata and controls
33 lines (31 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { ParseMode } from "telegraf/types";
/**
* @type {Object} MessagePayload
* @property {chatIds} - chatId array ([10001,10002])
* @property {action} - action name (`new issue` | `new pull request`)
* @property {title} - message title (`feat: support for x`)
* @property {description} - message description (`build: change x for y`)
* @property {id} - issue | pull id (`54`)
* @property {ref} - base url (`https://github.com/x/issues|pull/54`)
* @property {user} - username (`x-user`)
*/
export type TLMessagePayload = {
chatIds: string[];
action: string;
title: string;
description: string;
id: string;
ref: string;
user: string;
};
/**
* @type {Object} FormattedMessagePayload
* @property {chatIds} - chatId array ([10001,10002])
* @property {text} - formatted text (`new issue: support for x`)
* @property {parseMode} - parseMode (`HTML|Markdown|MarkdownV2`)
*/
export type TLMessageFormattedPayload = {
chatIds: string[];
text: string;
parseMode: ParseMode;
};