Skip to main content
Module

x/telegram_format/mod.ts>markdownv2.tgEmoji

Format Telegram message texts with Markdown or HTML
Latest
function markdownv2.tgEmoji
import { markdownv2 } from "https://deno.land/x/telegram_format@v3.1.0/mod.ts";
const { tgEmoji } = markdownv2;

Create a custom Telegram Emoji.

A valid emoji must be used as the fallback. The emoji will be shown instead of the custom emoji in places where a custom emoji cannot be displayed (e.g., system notifications) or if the message is forwarded by a non-premium user. It is recommended to use the emoji from the emoji field of the custom emoji sticker. Custom emoji entities can only be used by bots that purchased additional usernames on Fragment.

Parameters

fallback: string
emojiId: string

Returns

string