GithubHelp home page GithubHelp logo

peppelg / eztg Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 11.0 42 KB

⚡️ One-file minimal asynchronous Python & PHP Telegram Bot Api framework.

License: The Unlicense

PHP 53.14% Python 46.86%
telegram bot-api telegram-bot-api framework eztg python php requests aiohttp asyncio

eztg's Introduction

EzTG

⚡️ EzTG is a minimal async (& non-async) Telegram Bot Api Framework. It's available for Python and PHP.

The methods are the same of the Telegram Bot Api, so you don't need to learn anything new.


Index


Getting started

Choose the version you prefer:

Calling methods

The methods are the same of the Telegram Bot Api. So, if you want to send a message, you will use the sendMessage method. Example

chat_id and text are required. So...

Python: bot.sendMessage(chat_id=1234, text='hi!')

PHP: $bot.sendMessage(['chat_id' => 1234, 'text' => 'hi!']);

To find the current chat id: chat_id = update['message']['chat']['id']

[tutorial] How to send a photo using EzTG

Take a look at the example.py/example.php file.

Help

EzTG and TGUserbot group

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.