GithubHelp home page GithubHelp logo

tbotapi's Introduction

TBotAPI - Telegram Bot-API for Go

This is a simple wrapper for the Telegram Bot-API for Go. It provides a high-level API in Go that works with the Telegram REST API.

Build Status GoDoc Go Report Card

The implementation is pretty raw, i.e. you will just send and receive messages - you have to handle any command parsing or stuff yourself.

How do I get set up?

A simple

go get -u bitbucket.org/mrd0ll4r/tbotapi

should do it.

Example

See examples/ for some simple bots. Start with the echo bot.

API-stableness

Is the API stable? No

Why is the API not stable? Because Telegram changes its bot API frequently. We try to only add things, not remove them. So everything you did with this library before should also work after API changes.

Exception: I did one major overhaul so far, where I removed the model package and unified most sending methods. I'm pretty happy with the architecture so far, so I hope I won't have to do that again.

What do we use?

We use

Contribution guidelines

If you want to contribute code, make sure to read the contributing guidelines.

Things that need to be done

  • Implement a test
  • Implement the API 2.0 changes
  • Fix godoc line length
  • Move these TODOs to GitHub issues

License

This work is licensed under the MIT License. A copy of the MIT License can be found in the LICENSE file.

Feel free to use this library for any bot whatsoever. If you find any bugs, have any ideas about improvements or just want to show me what you've done with this, please contact me through this bot.

tbotapi's People

Watchers

 avatar  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.