Coder Social home page Coder Social logo

neelxhifi / tgsnake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tgsnake/tgsnake

0.0 0.0 0.0 138.64 MB

Telegram MTProto framework for javascript or typescript

Home Page: https://tgsnake.js.org

License: MIT License

JavaScript 0.44% TypeScript 99.56%

tgsnake's Introduction

tgsnakeicon-flaticon
Hi, tgsnake is a framework developed based on gram.js
github-repo telegram-chat
telegram-channel

WARNING!
Maybe your account will be banned if you login using this framework. I don't know what caused it to happen. I am not responsible if your account is banned!

Example :

  • Installation :
yarn add tgsnake@latest
  • Simple Hello World :
const {Snake} = require("tgsnake")
// import {Snake} from "tgsnake"
const bot = new Snake({
  apiHash : "abcde", //your api hash
  apiId : 123456, // your api id
  logger:"none" // gramjs logger
})
bot.run() //snake running
bot.on("message",(ctx)=>{ //handle new message event.
  ctx.reply("Hello World") // reply with "Hello World"
  //console.log(ctx) // see json of message.
})

More example you can found in example folder or in website.

Contribution

Welcome, You can contribute to this project.

Guide

  • Fork this repo to your account.
  • Clone your fork repo using git.
git clone <your github repo url> -b "dev"

Cloning branch dev in your repo.

  • Edit and make something.
  • Pull new update from branch dev original repo (this repo).
  • Push update to your branch dev in fork repo.
  • Create pull request to branch dev original repo from branch dev frok repo.

Reference

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.

tgsnake's People

Contributors

butthx avatar dependabot[bot] avatar renovate-bot avatar abhint avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.