{"id":23302414,"url":"https://github.com/skrtdev/novagram","last_synced_at":"2025-04-05T13:08:23.819Z","repository":{"id":39676037,"uuid":"273937734","full_name":"skrtdev/NovaGram","owner":"skrtdev","description":"An Object-Oriented PHP library for Telegram Bots","archived":false,"fork":false,"pushed_at":"2023-09-01T15:05:07.000Z","size":726,"stargazers_count":181,"open_issues_count":4,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T12:08:18.415Z","etag":null,"topics":["api","bot","cli","composer","getupdates","hacktoberfest","mtproto","oop","php","telegram","telegram-api","telegram-bot","telegram-bots","userbot","webhooks"],"latest_commit_sha":null,"homepage":"https://novagram.gaetano.eu.org/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skrtdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-21T16:00:29.000Z","updated_at":"2025-03-03T01:39:06.000Z","dependencies_parsed_at":"2024-06-19T01:51:03.248Z","dependency_job_id":"1228c12f-9b7e-45b2-beb3-ee9849c57bf8","html_url":"https://github.com/skrtdev/NovaGram","commit_stats":{"total_commits":433,"total_committers":3,"mean_commits":"144.33333333333334","dds":0.004618937644341847,"last_synced_commit":"fb1fc480bb6da7793f706cf7cc93c07662d146d7"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrtdev%2FNovaGram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrtdev%2FNovaGram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrtdev%2FNovaGram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrtdev%2FNovaGram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skrtdev","download_url":"https://codeload.github.com/skrtdev/NovaGram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","bot","cli","composer","getupdates","hacktoberfest","mtproto","oop","php","telegram","telegram-api","telegram-bot","telegram-bots","userbot","webhooks"],"created_at":"2024-12-20T10:29:04.394Z","updated_at":"2025-04-05T13:08:23.798Z","avatar_url":"https://github.com/skrtdev.png","language":"PHP","readme":"\u003ch1 align=center\u003e\n    \u003cimg src=\"https://cdn.pixabay.com/photo/2021/05/04/11/13/telegram-6228343_960_720.png\" width=300\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    NovaGram\n\u003c/h1\u003e\n\u003cdiv align=center\u003e\n    \n[![GitHub license](https://img.shields.io/github/license/skrtdev/NovaGram)](https://github.com/skrtdev/NovaGram/blob/master/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/skrtdev/NovaGram)](https://github.com/skrtdev/NovaGram/stargazers) [![Version](https://poser.pugx.org/skrtdev/novagram/version)](https://github.com/skrtdev/NovaGram/releases)  [![Total Downloads](https://poser.pugx.org/skrtdev/novagram/downloads)](https://packagist.org/packages/skrtdev/novagram) [![Total Downloads](https://img.shields.io/static/v1?label=telegram\u0026message=group\u0026color=blue\u0026logo=telegram)](https://t.me/joinchat/JdBNOEqGheC33G476FiB2g)\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cb\u003e\u003ci\u003eAn elegant, Object-Oriented, reliable PHP Telegram Bot Library\u003c/i\u003e\u003c/b\u003e\u003cbr\u003e\u003cbr\u003e\n\u003ca href=\"https://novagram.gaetano.eu.org\"\u003eFull Documentation\u003c/a\u003e •\n\u003ca href=\"https://t.me/joinchat/JdBNOEqGheC33G476FiB2g\"\u003ePublic support group\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"#-examples\"\u003eExamples\u003c/a\u003e •\n\u003ca href=\"#-features\"\u003eFeatures\u003c/a\u003e •\n\u003ca href=\"#-installation\"\u003eInstallation\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e **🌟 v1.9 has been released:** check changelog [here](https://github.com/skrtdev/NovaGram/blob/master/CHANGELOG.md#v19---source-code)\n\n## ⚙️ Examples\nAn example code of a simple bot.  \nWorks with both getUpdates and Webhooks\n```php\nuse skrtdev\\NovaGram\\Bot;\nuse skrtdev\\Telegram\\Message;\n\n$Bot = new Bot('YOUR_TOKEN');\n\n$Bot-\u003eonCommand('start', function (Message $message) {\n    $message-\u003ereply('Hey! Nice to meet you. Use /info to know more about me.');\n});\n\n$Bot-\u003eonCommand('info', function (Message $message) {\n    $message-\u003ereply('Well, I\\'m just an example, but you can learn more about NovaGram at novagram.gaetano.eu.org');\n});\n```\n\n## 📎 Features\n\n- ***Full***: All the Methods and Types implemented in *Bot Api 5.0* (support **local Bot Api** too)  \n- ***Fast***: Support for *JSON payload*, and *async handling of updates*  \n- ***Extendable***: With [Prototypes](https://novagram.gaetano.eu.org/prototypes.html), you can add your *custom functionalities*  \n- ***Easy***: *Exactly like original Bot Api*, with many methods simplified in a very nice way  \n- ***Ready***: You can *start creating your amazing bot right now*, thanks to many Built-in features, such as [Conversations](https://novagram.gaetano.eu.org/database.html), [Entities Parser](https://novagram.gaetano.eu.org/objects.html) and [getDC](https://novagram.gaetano.eu.org/docs.html#getUsernameDC)  \n- ***Secure***: When using Webhooks, there is a *Built-in Telegram IP Check*, that works with Cloudflare too!  \n\n### Why another PHP library?\n\nI 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](docs/compare.md), such as a sendMessage.  \nNovaGram 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.\n\n## ⬇️ Installation\n\n### Installation via [Composer](https://getcomposer.org)\n\nInstall NovaGram via Composer  \n```\ncomposer require skrtdev/novagram ^1.9\n```\n\nAfter Installation, include NovaGram with:\n```php\nrequire 'vendor/autoload.php';\n```\n\n### Installation via Phar\n\nInclude the `phar` file in your bot file:\n```php\nif (!file_exists('novagram.phar')) {\n    copy('https://gaetano.eu.org/novagram/phar.phar', 'novagram.phar');\n}\nrequire_once 'novagram.phar';\n```\n\nMore info in the [Documentation](https://novagram.gaetano.eu.org)  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrtdev%2Fnovagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskrtdev%2Fnovagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrtdev%2Fnovagram/lists"}