{"id":37014085,"url":"https://github.com/gingteam/telegram","last_synced_at":"2026-01-14T01:23:55.627Z","repository":{"id":65233353,"uuid":"588200250","full_name":"gingteam/telegram","owner":"gingteam","description":"Telegram's collection of data types and methods","archived":false,"fork":false,"pushed_at":"2023-01-30T15:36:35.000Z","size":404,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-19T16:43:36.170Z","etag":null,"topics":["php","symfony-serializer","telegram"],"latest_commit_sha":null,"homepage":"https://gingteam.github.io/telegram/index.html","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/gingteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-12T15:06:22.000Z","updated_at":"2024-04-19T16:43:36.171Z","dependencies_parsed_at":"2023-02-16T09:01:11.942Z","dependency_job_id":null,"html_url":"https://github.com/gingteam/telegram","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/gingteam/telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingteam%2Ftelegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingteam%2Ftelegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingteam%2Ftelegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingteam%2Ftelegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gingteam","download_url":"https://codeload.github.com/gingteam/telegram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingteam%2Ftelegram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["php","symfony-serializer","telegram"],"created_at":"2026-01-14T01:23:54.865Z","updated_at":"2026-01-14T01:23:55.614Z","avatar_url":"https://github.com/gingteam.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"This package provides Telegram data types and methods\n\n![](https://shepherd.dev/github/gingteam/telegram/coverage.svg)\n![](https://shepherd.dev/github/gingteam/telegram/level.svg)\n[![Test](https://github.com/gingteam/telegram/actions/workflows/test.yml/badge.svg)](https://github.com/gingteam/telegram/actions/workflows/test.yml)\n\n## Example\n\nYou can implement your own object class:\n\n```php\n\u003c?php\n\nuse GingTeam\\Telegram\\SerializerTrait;\nuse GingTeam\\Telegram\\TelegramTrait;\nuse GingTeam\\Telegram\\Type\\Response;\nuse Symfony\\Component\\HttpClient\\HttpClient;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\nrequire __DIR__.'/vendor/autoload.php';\n\nclass SimpleTelegram\n{\n    use TelegramTrait;\n    use SerializerTrait;\n\n    private HttpClientInterface $client;\n\n    public function __construct(private string $token, HttpClientInterface $client = null)\n    {\n        $this-\u003eclient = $client ?: HttpClient::create();\n    }\n\n    public function sendRequest(string $name, array $data = [])\n    {\n        $data = $this-\u003egetSerializer()-\u003enormalize((object) $data);\n\n        $endpoint = sprintf('%s/bot%s/%s', self::BOT_API_URL, $this-\u003etoken, $name);\n\n        $response = $this-\u003eclient-\u003erequest('POST', $endpoint, [\n            'json' =\u003e $data,\n        ])-\u003etoArray(false);\n\n        /** @var Response */\n        $response = $this-\u003egetSerializer()-\u003edenormalize($response, Response::class);\n\n        if ($response-\u003egetErrorCode()) {\n            throw new RuntimeException($response-\u003egetDescription());\n        }\n\n        return $response-\u003egetResult();\n    }\n}\n\n$telegram = new SimpleTelegram('{token}');\n\nforeach ($telegram-\u003egetUpdates() as $update) {\n    echo $update?-\u003egetMessage()?-\u003egetFrom()?-\u003egetUsername().\"\\n\";\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingteam%2Ftelegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgingteam%2Ftelegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingteam%2Ftelegram/lists"}