Аналитика Telegram-канала
Подписчики
35
Охват за 24 ч
13
ER за 24 ч
37,14%
Публикаций
37
Динамика подписчиков
7 дней
30 дней
6 месяцев
Больше
18 ноя20 ноя23 ноя
Показаны последние 7 дней
Больше истории →
Охваты публикаций
10.1122.1122.11
1
Средний охват
1
Лучший результат
Показаны 3 публикации — последние в канале
Больше статистики →
Упоминания
4
Упоминаний
1
Из них репостов
3
Каналов
0
Упоминаний за 90 дней
0
Из них репостов
0
Каналов за 90 дней
Последние посты
3 из 37 2 из 37puregram@3.12.0
bot api 10.5 support
@puregram/api@10.5.0
bot settings, inline IDs for callbacks, and BotFullInfo
bot settings from code — configure inline mode, group privacy, or the private-chat topic sidebar without opening BotFather. set the options you want to change once; telegram keeps the rest.
await tg.api.setMySettings({
supports_inline_queries: true,
inline_query_placeholder: 'search the catalog',
has_topics_enabled: true,
has_topic_sidebar: true
})
inline IDs outside inline mode — opt in with setMySettings({ callback_query_mode: 'inline' }) and even a button on a message your bot sent directly gives you an inlineMessageId instead of a message. use 'auto' if you only want this as a fallback for inaccessible messages. the default is unchanged.
tg.onCallbackQuery(async query => {
await query.answer()
await query.edit('next page') // works with either message reference
})
if your handler replies through query.message, check query.hasAccessibleMessage() first. an inline ID alone can't be used with query.delete().
breaking — getMe() and tg.bot now use TelegramBotFullInfo. bot-only settings are no longer on TelegramUser. if you pass a bot option at construction, use a full getMe() result or let puregram fetch it.
const bot = await tg.api.getMe()
console.log(bot.active_usernames, bot.inline_query_placeholder)
expandable rich quotes can contain blocks — the builder signature is unchanged; you can now pass headings, lists, or other blocks to it:
const quote = rich([
rich.expandableBlockquote([
rich.h3('details'),
rich.list(['first item', 'second item'])
])
])
if you build raw payloads, replace the quote’s text field with blocks. a plain string becomes a paragraph block.
bot invites — a bot owner can invite up to 10 users at a time with t.me/botinvite/<bot_username>. the bot can message invited users, and the write-access update tells you who invited them:
tg.onWriteAccessAllowed(update => {
const inviter = update.writeAccessAllowed?.inviter
if (inviter) console.log('invited by', inviter.id)
})
ещё
1
1
22 ноя, 14:02
@puregram/serverless@3.0.1 · @puregram/stream@3.3.1 · @puregram/media-cacher@4.0.0
run your puregram bot on Telegram. Telegram hosts the handlers and the database; you don't need a VPS, an HTTP listener, or a polling loop. the deployed code doesn't need your bot API token, either.
import { createBot } from '@puregram/serverless'
const tg = createBot()
tg.command('start', message => message.send('hello from Telegram'))
export default tg
save that as src/bot.ts, then build and deploy from the project root:
$ npm install @puregram/serverless
$ npm install -D @tgcloud/cli
$ npx puregram-serverless build src/bot.ts
$ npx tgcloud login
$ npx tgcloud push
the builder discovers your handlers and writes the tgcloud/ modules. you'll need early access to Telegram Serverless: enable it in BotFather, then use its CLI access token for tgcloud login.
sessions and scenes can keep state between invocations with TelegramStorage and Telegram's built-in database. Mini Apps can call backend functions registered with tg.endpoint().
streaming can read raw SSE from sdk.fetch through fromSSE, then show Telegram drafts as text arrives. no timers required; don't rely on the stop button to reach a stream running in a separate invocation.
media caching can reuse file_ids across invocations with TelegramStorage. keyStrategy: 'hash' also caches byte uploads. in 4.0.0, cache lookups and invalidation take the upload method first, e.g. tg.mediaCacher.get('sendPhoto', chatKey, source); old entries fill again on demand.
one limit worth knowing: Telegram rejects modules larger than 1 MiB. if your bundle crosses that line, rebuild with --minify. await the work your handler needs to finish; don't leave it running after return.
deployment guide · complete bot recipe · serverless release
ещё
1
1
22 ноя, 11:52
@puregram/api@10.4.1
feat(api): support Bot API 10.4
fix(api): preserve widget query message identifiers
puregram@3.11.0
feat: support Bot API 10.4 in core and plugins
feat(widgets): send definitions through contextual shortcuts
fix(core): install pending plugins before the first api call
fix(core): run request hooks before claiming the webhook reply
@puregram/widgets@3.0.0
feat(widgets): support official Bot API 10.4
fix(widgets): tokenize HTML interpolation contexts
@puregram/serverless@3.0.0
telegram's hosted runtime, a portable bot core, storage and module builder
@puregram/rich@3.4.0 · @puregram/markup@3.1.0
feat(rich): support Bot API 10.4 address entities
fix(rich): emit text newlines as br, the only break telegram keeps
fix(markup): refuse source that forges an interpolation slot
fix(markup): make a Formatted own and clean its entity list
@puregram/stream@3.3.1
SSE input and timer-free throttling for hosted runtimes
HTML widgets inside messages — HTML, CSS and JavaScript rendered in Telegram's sandbox. the layout stays fixed after sending; the bot changes its message-local chat state or shared public state.
with the widget's HTML kept in counterHtml, the bot side looks like this:
import { defineWidget, json } from '@puregram/widgets'
const Counter = defineWidget({
html: counterHtml,
chat: json<{ count: number }>(),
public: json<{ revision: number }>()
})
await message.sendWidget(Counter, {
chat: { count: 0 },
public: { revision: 0 },
allowQueries: true,
shared: true
})
typed state edits use the same definition:
await Counter.editState(tg, query, {
chat: { count: 1 }
})
await Counter.editShared(tg, widgetId, {
revision: 2
})
html escapes interpolated text, js() safely embeds JSON into scripts, and size checks account for UTF-8 and compressed HTML. state codecs, query-prefix filters, inline content helpers and optional automatic query answers are included.
availability matters: production currently supports private chats with the bot and protects widget messages from forwarding. groups, inline widgets and forwards are test-server features; direct channel posts are unsupported. wallet signatures and payments still need application-side verification.
complete counter and widget guide
run a puregram bot on Telegram's own serverless runtime — not a webhook adapter, and no bot API token or polling loop in the deployed code:
import { createBot } from '@puregram/serverless'
const tg = createBot()
tg.onMessage(message => message.send('hello from telegram'))
export default tg
npx puregram-serverless build src/bot.ts
npx tgcloud push
enable serverless in BotFather and link the project with tgcloud login first. the builder generates the platform modules; tgcloud handles deployment. the package also includes TelegramStorage for persistent plugin state and tg.endpoint(...) for Mini App backends.
this is an experimental integration, exercised on the hosted runtime. Node filesystem and stream APIs are not available there.
serverless guide
a private reply can now bind directly to a callback — no explicit receiver or chat id:
tg.onCallbackQuery(async query => {
await query.send('only you see this', { ephemeral: true })
await query.answer()
})
the explicit scoped form is available too:
const eph = tg.ephemeral({ callbackQueryId: query.id })
await eph.sendMessage({ text: 'only you see this' })
TON address formatting, plus a bank-card entity helper for ordinary messages:
import { tonAddress, bankCardNumber } from '@puregram/markup'
import { rich } from '@puregram/rich'
tonAddress(address)
bankCardNumber('4242 4242 4242 4242')
rich.tonAddress('our wallet', address)
rich quotes are available through ReplyParameters.to(messageId, { quoteRichTexts }), and verification descriptions can carry formatted links.
there is also a sizeable parser/serializer cleanup: HTML and Markdown escaping, quoted attributes, nested code, quote boundaries, line endings and entity ranges. Formatted values own their entity lists, malformed custom tags fail loudly, and rich text newlines survive HTML serialization.
SSE without a Node stream adapter:
import { fromSSE } from '@puregram/stream'
await message.stream(fromSSE(chunks))
chunks is an async iterable of byte arrays. fromSSE() parses JSON events, handles UTF-8 split across chunks and skips [DONE]. the existing stream plugin handles rendering; its throttling also works without timers in the hosted runtime.
two smaller additions:
@puregram/utils@3.3.0: deepLink.topic({ bot: 'my_bot', messageThreadId: 42 }) builds a private bot-topic link.
@puregram/media-cacher@3.0.1: portable hashing and injectable fetch; getStorageKey() can return undefined to skip caching.
also released: callback-data@3.0.3, flow@3.2.0, rate-limit@3.1.0, scenes@3.1.0, session@4.1.0, test@3.1.0 and throttler@3.0.1.
TypeScript notes: portable plugins now target TelegramCore by default; Node-specific plugins can explicitly target Telegram. update-level download() returns Uint8Array | null; Node client tg.download() still returns Buffer. the schema also renames StoryAreaPosition to AreaPosition.
ещё
1
1
10 ноя, 00:20
Продолжить анализ этого канала
- История роста подписчиков
- Просмотры и охваты публикаций
- Кто упоминает канал и кого упоминает он
- Похожие каналы и подбор для рекламы
Открыть аналитику
Демо до 14 дней