All Projects → skrtdev → Novagram

skrtdev / Novagram

Licence: mit
An Object-Oriented PHP library for Telegram Bots

Projects that are alternatives of or similar to Novagram

Mtproto Core
Telegram API JS (MTProto) client library for browser and nodejs
Stars: ✭ 242 (+116.07%)
Mutual labels:  api, telegram-api, telegram, mtproto
Tgbot Cpp
C++ library for Telegram bot API
Stars: ✭ 439 (+291.96%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Pytg
Python package that wraps around Telegram messenger CLI. Send and receive messages, and more.
Stars: ✭ 365 (+225.89%)
Mutual labels:  bot, telegram-bot, cli, telegram
Node Telegram Api
A simple API to create and control Telegram bots
Stars: ✭ 117 (+4.46%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Telebot.nim
Async client for Telegram Bot API in pure Nim [Bot API 5.1]
Stars: ✭ 93 (-16.96%)
Mutual labels:  api, bot, telegram-bot, telegram
Micro Bot
🤖 Zero-configuration Telegram bot runner
Stars: ✭ 173 (+54.46%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Turibot
TuriBot is a simple way to communicate with Telegram APIs in PHP
Stars: ✭ 68 (-39.29%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Groupbutler
This bot can help you in managing your group with rules, anti-flood, description, custom triggers, and much more!
Stars: ✭ 399 (+256.25%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+565.18%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Telegram Api
Complete async capable Telegram bot API implementation for PHP7
Stars: ✭ 650 (+480.36%)
Mutual labels:  telegram-api, telegram-bot, telegram, composer
Madelineproto
Async PHP client/server API for the telegram MTProto protocol
Stars: ✭ 1,776 (+1485.71%)
Mutual labels:  telegram-api, bot, telegram, mtproto
Grammers
(tele)gramme.rs - use Telegram's API from Rust
Stars: ✭ 109 (-2.68%)
Mutual labels:  api, telegram-api, telegram, mtproto
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+1875%)
Mutual labels:  bot, telegram-bot, telegram, composer
Telegram Bot Api
First Telegram Bot API node.js library
Stars: ✭ 205 (+83.04%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Mtproto
Full-native go implementation of Telegram API
Stars: ✭ 566 (+405.36%)
Mutual labels:  telegram-api, telegram-bot, telegram, mtproto
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (+631.25%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Mypackbot
🤖 Your own unlimited pack of Telegram-stickers
Stars: ✭ 18 (-83.93%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Telebot
The easy way to write Telegram bots in Node.js
Stars: ✭ 1,096 (+878.57%)
Mutual labels:  bot, telegram-bot, telegram
Pockebot
Read It Later for Telegram
Stars: ✭ 56 (-50%)
Mutual labels:  bot, telegram-bot, telegram
Telegram Bot Github
Allows to you receive GitHub notifications right in the Telegram
Stars: ✭ 103 (-8.04%)
Mutual labels:  bot, telegram-bot, telegram

NovaGram

GitHub license GitHub stars Version Total Downloads Total Downloads

An elegant, Object-Oriented, reliable PHP Telegram Bot Interface
Full DocumentationPublic support group

Example

An example code of a simple bot.
Works with both getUpdates and Webhooks

use skrtdev\NovaGram\Bot;
use skrtdev\Telegram\Message;

$Bot = new Bot("YOUR_TOKEN");

$Bot->onCommand("start", function (Message $message) use ($Bot) {
    $message->reply("Hey! Nice to meet you. Use /info to know more about me.");
});

$Bot->onCommand("info", function (Message $message) use ($Bot) {
    $message->reply("Well, I'm just an example, but you can learn more about NovaGram at docs.novagram.ga");
});

Features

  • Full: All the Methods and Types implemented in Bot Api 5.0 (support local Bot Api too)
  • Fast: Support for JSON payload, and async handling of updates
  • Extendable: With Prototypes, you can add your custom functionalities
  • Easy: Exactly like original Bot Api, with many methods simplified in a very nice way
  • Ready: You can start creating your amazing bot right now, thanks to many Built-in features, such as Conversations, Entities Parser and getDC
  • Secure: When using Webhooks, there is a Built-in Telegram IP Check, that works with Cloudflare too!

Why another PHP library?

I decided to build my own php library for telegram bot api because all the libraries i found on the web made it difficult even to do the simplest things, such as a sendMessage.
NovaGram is built in order to bring a lightweight alternative to make bots, so that it is simple for beginners, but powerful for who already knows how to implement it.

Installation via Composer

Install NovaGram via Composer

composer require skrtdev/novagram ^1.8

After Installation, include NovaGram with:

require __DIR__ . '/vendor/autoload.php';

Installation via Phar

Include the phar file in your bot file:

if (!file_exists('novagram.phar')) {
    copy('https://novagram.ga/phar', 'novagram.phar');
}
require_once 'novagram.phar';

More info in the Documentation

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].