Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tgsnake

> 开发工具
Open source

Telegram MTProto framework for javascript or typescript

99 stars0 likes1 views
WebsiteGitHub

About

Telegram MTProto framework for javascript or typescript

tgsnake is a modern MTProto framework for javascript or typescript.

Don't forget to read our FAQ in our site!!

Example :

  • Installation :
bash
npx create-tgsnake-app myapp
  • Simple Hello World :
javascript
const { Snake } = require('tgsnake');
// import {Snake} from "tgsnake"
const bot = new Snake({
  apiHash: 'abcde', //your api hash
  apiId: 123456, // your api id
  logLevel: 'none', // logger level
});
bot.run(); //snake running
bot.on('msg.text', (ctx) => {
  //handle new message event.
  ctx.msg.reply('Hello World'); // reply with "Hello World"
  //console.log(ctx) // see json of message.
});

More example you can found in our website.

Contribution

Welcome, You can contribute to this project.

Reference

  • Pyrogram
  • Telethon
  • GramJs
  • Telegram Api
  • Grammy
  • Telegraf

Thanks to all the frameworks and references that I use, several people who helped in developing this framework that I cannot mention one by one.

Build with ♥️ by tgsnake dev.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptmtprototelegramtelegram-bottelegram-client

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具