@grammyjs/parse-mode
Advanced tools
Comparing version 1.1.2 to 1.2.1
@@ -20,3 +20,3 @@ import type { MessageEntity } from "./deps.node.js"; | ||
declare const mentionUser: (stringLike: Stringable, userId: number) => FormattedString; | ||
declare const fmt: (rawStringParts: TemplateStringsArray, ...stringLikes: Stringable[]) => FormattedString; | ||
declare const fmt: (rawStringParts: TemplateStringsArray | string[], ...stringLikes: Stringable[]) => FormattedString; | ||
export { bold, code, fmt, FormattedString, italic, link, mentionUser, pre, spoiler, strikethrough, underline, }; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "@grammyjs/parse-mode", | ||
"version": "1.1.2", | ||
"version": "1.2.1", | ||
"description": "Plugin for hydrating ctx with familiar reply variants and for setting default parse_mode", | ||
@@ -27,3 +27,3 @@ "author": "KnightNiwrem", | ||
"@types/node": "^16.6.1", | ||
"deno2node": "^1.2.1", | ||
"deno2node": "^1.4.0", | ||
"grammy": "^1.7.1", | ||
@@ -30,0 +30,0 @@ "typescript": "^4.5.5" |
@@ -21,2 +21,5 @@ # Parse Mode plugin for grammY | ||
${bold(fmt`bold ${link('blink', 'example.com')} bold`)}`); | ||
// fmt can also be called like a regular function | ||
await ctx.replyFmt(fmt(['', ' and ', ' and ', ''], fmt`${bold('bold')}`, fmt`${bold(italic('bitalic'))}`, fmt`${italic('italic')}`)); | ||
}); | ||
@@ -31,5 +34,5 @@ | ||
import { Bot, Composer } from 'grammy'; | ||
import { hydrateReply, parseMode } from 'parse-mode'; | ||
import { hydrateReply, parseMode } from '@grammyjs/parse-mode'; | ||
import type { ParseModeContext } from 'parse-mode'; | ||
import type { ParseModeContext } from '@grammyjs/parse-mode'; | ||
@@ -36,0 +39,0 @@ const bot = new Bot<ParseModeContext>(''); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11594
180
55