百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

tgsnake

> 开发工具
开源

Telegram MTProto 框架用于 JavaScript 或 TypeScript

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Telegram MTProto 框架用于 JavaScript 或 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptmtprototelegramtelegram-bottelegram-client

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

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