Skip to content

Commit a90cfc7

Browse files
committed
feat: update @grom.js/tgx to v1.1.0
1 parent e1d18b4 commit a90cfc7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@effect/language-service": "0.75.0",
5454
"@effect/platform": "0.94.5",
5555
"@grom.js/bot-api-spec": "0.7.1",
56-
"@grom.js/tgx": "0.5.3",
56+
"@grom.js/tgx": "1.1.0",
5757
"@types/node": "22.19.11",
5858
"@vitest/coverage-v8": "4.0.18",
5959
"bumpp": "10.4.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TgxElement } from '@grom.js/tgx/types'
1+
import type { TgxElement } from '@grom.js/tgx'
22
import type { Types } from './BotApi.ts'
33
import * as Data from 'effect/Data'
44

src/internal/send.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const paramsText: (
7171
Plain: ({ text, entities }) => ({ text, entities }),
7272
Html: ({ html }) => ({ text: html, parse_mode: 'HTML' }),
7373
Markdown: ({ markdown }) => ({ text: markdown, parse_mode: 'MarkdownV2' }),
74-
Tgx: ({ tgx }) => ({ text: Tgx.html(tgx), parse_mode: 'HTML' }),
74+
Tgx: ({ tgx }) => ({ text: Tgx.renderHtml(tgx), parse_mode: 'HTML' }),
7575
}),
7676
)
7777

0 commit comments

Comments
 (0)