Skip to content

Commit

Permalink
feat: add parse_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Sep 3, 2019
1 parent 87cec67 commit a1e69bf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"semicolon": false,
"rules": {
"ava/no-ignored-test-files": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/semi": [
"error",
"never"
Expand Down
1 change: 1 addition & 0 deletions source/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function url(label: string, url: string): string {
}

export const html: Formatter = {
parse_mode: 'HTML',
escape,
bold,
italic,
Expand Down
1 change: 1 addition & 0 deletions source/interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export interface Formatter {
parse_mode: string;
bold: (text: string) => string;
escape: (text: string) => string;
italic: (text: string) => string;
Expand Down
1 change: 1 addition & 0 deletions source/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function url(label: string, url: string): string {
}

export const markdown: Formatter = {
parse_mode: 'Markdown',
escape,
bold,
italic,
Expand Down

0 comments on commit a1e69bf

Please sign in to comment.