Open-source Telegram bot

Who is
doing all
the talking?

History Bot tracks messages, words, voice messages, video notes, and profanity in Telegram groups. Add the hosted bot or deploy your own on Cloudflare.

Deploy on Cloudflare

Self-hosting needs a Cloudflare account and a bot token from @BotFather. The database is created automatically.

Dashboard preview Demo data
history.bot / admin PREVIEW
Dashboard overview with messages, members, voice messages and activity charts
Group activity over the selected period.
Open sourceSource code on GitHub
Runs on CloudflareWorkers, KV, D1, and Durable Objects
Hosted bot available@stat_history_bot
GET STARTED

Two ways to get started

Add the hosted bot to your group, or run your own instance using the source code on GitHub.

Hosted bot

Add @stat_history_bot to your group

The bot will start counting new messages. Group members can view analytics after signing in with Telegram.

01 / Cloudflare

Click Deploy to Cloudflare, sign in, and paste your @BotFather token into the TOKEN field.

02 / Settings

Open your Worker's URL, sign in with the same token, and choose a storage mode.

03 / Telegram

Click “Get started webhook” and add the bot to your group. To let it see all messages, turn off privacy with /setprivacy in @BotFather.

Analytics

What you can explore

Counters and charts update as new group messages arrive.

Messages

Who sent the most messages

Track messages and words per member, with voice messages and video notes counted separately.

Activity

When your group is most active

Daily and hourly charts, plus an activity heatmap for every member.

Language

Who swears the most

See the most common swear words and each member's profanity rate.

Achievements

What did your group unlock?

A group admin opens /achievements to turn on the collection. After a full, active UTC week, the bot posts a card with a group badge or an activity highlight.

Group collection

Choir

Four people send voice notes in the same week. The whole group earns this badge.

Personal album

Newsreel

Send a round video note on three different days within a week. Open /badges to see your album and choose a badge to share.

Conversation collection

Spark

Three people reply directly to your message within 48 hours. Replies count when the participants have opted in.

Collect 6 group badges and 10 personal badges. Opt into conversations to earn 4 more. Your personal progress stays in your private chat with the bot.

Explore all 20 badges

Group achievements

  • Podcast Studio
  • Rush Hour
  • Seven Days
  • Round Table
  • Choir
  • Relay Cup

Personal album

  • See You Tomorrow
  • The Regular
  • Full Calendar
  • Columnist
  • Night Shift
  • Three Shifts
  • Radio Diary
  • Newsreel
  • Dual Broadcast
  • Newsstand

Conversation achievements

  • Spark
  • Ping-Pong
  • The Connector
  • To Be Continued
Add bot to group
Compare analytics tools

An alternative to Combot for group statistics

Need activity analytics rather than a full Telegram group moderation suite?

History Bot focuses on message statistics, active member rankings, activity heatmaps, word counts, voice and video notes, and optional AI summaries. Combot offers wider moderation, anti-spam and automation tools.

Compare History Bot with Combot →
PREVIEWS

Inside the dashboard

Actual interface screenshots with synthetic names and numbers.

Members and activity patternsPEOPLE
Members table and activity heatmap by day and time of day
Messages, voice notes, profanity and activity rhythm for every member.
Profanity rateLANGUAGE
Profanity rate per member and the most common swear words
Compare profanity rates and see which swear words come up most.

Screenshots use fictional data. You can only view statistics for groups you belong to that have the bot installed.

Already have the bot in your group?

Sign in with Telegram to view analytics. If the bot is not in your group yet, add @stat_history_bot.

Telegram sign-in

Authorize the sign-in in Telegram to open the dashboard.