{"id":14983854,"url":"https://github.com/symfony/telegram-notifier","last_synced_at":"2026-01-25T00:06:38.780Z","repository":{"id":44440236,"uuid":"212991329","full_name":"symfony/telegram-notifier","owner":"symfony","description":"Symfony Telegram Notifier Bridge","archived":false,"fork":false,"pushed_at":"2025-12-19T08:39:26.000Z","size":211,"stargazers_count":72,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"7.3","last_synced_at":"2025-12-22T02:52:31.319Z","etag":null,"topics":["component","notifier","php","symfony","symfony-component","telegram"],"latest_commit_sha":null,"homepage":"https://symfony.com/notifier","language":"PHP","has_issues":false,"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/symfony.png","metadata":{"funding":{"github":["fabpot","nicolas-grekas"],"custom":"https://symfony.com/sponsor","tidelift":"packagist/symfony/symfony"},"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-05T11:56:54.000Z","updated_at":"2025-09-27T12:36:18.000Z","dependencies_parsed_at":"2025-12-19T18:03:51.625Z","dependency_job_id":null,"html_url":"https://github.com/symfony/telegram-notifier","commit_stats":{"total_commits":107,"total_committers":28,"mean_commits":"3.8214285714285716","dds":0.6635514018691588,"last_synced_commit":"521e77470d5b07306c1001c2d1d1bc88474a8035"},"previous_names":[],"tags_count":124,"template":false,"template_full_name":null,"purl":"pkg:github/symfony/telegram-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftelegram-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftelegram-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftelegram-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftelegram-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/telegram-notifier/tar.gz/refs/heads/7.3","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftelegram-notifier/sbom","scorecard":{"id":485791,"data":{"date":"2025-08-11","repo":{"name":"github.com/symfony/telegram-notifier","commit":"71f709c0a1543581e8e7c28ca80cb7c40ed84651"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch '7.3'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/symfony/.github/SECURITY.md:1","Info: Found linked content: github.com/symfony/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/symfony/.github/SECURITY.md:1","Info: Found text in security policy: github.com/symfony/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-19T17:44:47.160Z","repository_id":44440236,"created_at":"2025-08-19T17:44:47.160Z","updated_at":"2025-08-19T17:44:47.160Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["component","notifier","php","symfony","symfony-component","telegram"],"created_at":"2024-09-24T14:08:04.665Z","updated_at":"2026-01-25T00:06:38.762Z","avatar_url":"https://github.com/symfony.png","language":"PHP","funding_links":["https://github.com/sponsors/fabpot","https://github.com/sponsors/nicolas-grekas","https://symfony.com/sponsor","https://tidelift.com/funding/github/packagist/symfony/symfony"],"categories":[],"sub_categories":[],"readme":"Telegram Notifier\n=================\n\nProvides [Telegram](https://telegram.org) integration for Symfony Notifier.\n\nDSN example\n-----------\n\n```\nTELEGRAM_DSN=telegram://TOKEN@default?channel=CHAT_ID\n```\n\nwhere:\n - `TOKEN` is your Telegram token\n - `CHAT_ID` is your Telegram chat id\n\nAdding Interactions to a Message\n--------------------------------\n\nWith a Telegram message, you can use the `TelegramOptions` class to add\n[message options](https://core.telegram.org/bots/api).\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\Button\\InlineKeyboardButton;\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\InlineKeyboardMarkup;\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('');\n\n// Create Telegram options\n$telegramOptions = (new TelegramOptions())\n    -\u003echatId('@symfonynotifierdev')\n    -\u003eparseMode('MarkdownV2')\n    -\u003edisableWebPagePreview(true)\n    -\u003edisableNotification(true)\n    -\u003ereplyMarkup((new InlineKeyboardMarkup())\n        -\u003einlineKeyboard([\n            (new InlineKeyboardButton('Visit symfony.com'))\n                -\u003eurl('https://symfony.com/'),\n        ])\n    );\n\n// Add the custom options to the chat message and send the message\n$chatMessage-\u003eoptions($telegramOptions);\n\n$chatter-\u003esend($chatMessage);\n```\n\nAdding files to a Message\n-------------------------\n\nWith a Telegram message, you can use the `TelegramOptions` class to add\n[message options](https://core.telegram.org/bots/api).\n\n\u003e :warning: **WARNING**\nIn one message you can send only one file\n\n[Telegram supports 3 ways](https://core.telegram.org/bots/api#sending-files) for passing files:\n\n * You can send files by passing public http url to option:\n   * Photo\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003ephoto('https://localhost/photo.mp4');\n     ```\n   * Video\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003evideo('https://localhost/video.mp4');\n     ```\n   * Animation\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003eanimation('https://localhost/animation.gif');\n     ```\n   * Audio\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003eaudio('https://localhost/audio.ogg');\n     ```\n   * Document\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003edocument('https://localhost/document.odt');\n     ```\n   * Sticker\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003esticker('https://localhost/sticker.webp', '🤖');\n     ```\n * You can send files by passing local path to option, in this case file will be sent via multipart/form-data:\n    * Photo\n      ```php\n      $telegramOptions = (new TelegramOptions())\n           -\u003euploadPhoto('files/photo.png');\n      ```\n    * Video\n      ```php\n      $telegramOptions = (new TelegramOptions())\n           -\u003euploadVideo('files/video.mp4');\n      ```\n    * Animation\n      ```php\n          $telegramOptions = (new TelegramOptions())\n               -\u003euploadAnimation('files/animation.gif');\n      ```\n    * Audio\n      ```php\n      $telegramOptions = (new TelegramOptions())\n           -\u003euploadAudio('files/audio.ogg');\n      ```\n    * Document\n      ```php\n      $telegramOptions = (new TelegramOptions())\n           -\u003euploadDocument('files/document.odt');\n      ```\n    * Sticker\n      ```php\n      $telegramOptions = (new TelegramOptions())\n           -\u003euploadSticker('files/sticker.webp', '🤖');\n      ```\n * You can send files by passing file_id to option:\n   * Photo\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003ephoto('ABCDEF');\n     ```\n   * Video\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003evideo('ABCDEF');\n     ```\n   * Animation\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003eanimation('ABCDEF');\n     ```\n   * Audio\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003eaudio('ABCDEF');\n     ```\n   * Document\n     ```php\n     $telegramOptions = (new TelegramOptions())\n          -\u003edocument('ABCDEF');\n     ```\n   * Sticker - *Can't be sent using file_id*\n\nFull example:\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('Photo Caption');\n\n// Create Telegram options\n$telegramOptions = (new TelegramOptions())\n    -\u003echatId('@symfonynotifierdev')\n    -\u003eparseMode('MarkdownV2')\n    -\u003edisableWebPagePreview(true)\n    -\u003ehasSpoiler(true)\n    -\u003eprotectContent(true)\n    -\u003ephoto('https://symfony.com/favicons/android-chrome-192x192.png');\n\n// Add the custom options to the chat message and send the message\n$chatMessage-\u003eoptions($telegramOptions);\n\n$chatter-\u003esend($chatMessage);\n```\n\nAdding Location to a Message\n----------------------------\n\nWith a Telegram message, you can use the `TelegramOptions` class to add\n[message options](https://core.telegram.org/bots/api).\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('');\n\n// Create Telegram options\n$telegramOptions = (new TelegramOptions())\n    -\u003echatId('@symfonynotifierdev')\n    -\u003eparseMode('MarkdownV2')\n    -\u003elocation(48.8566, 2.3522);\n\n// Add the custom options to the chat message and send the message\n$chatMessage-\u003eoptions($telegramOptions);\n\n$chatter-\u003esend($chatMessage);\n```\n\nAdding Venue to a Message\n----------------------------\n\nWith a Telegram message, you can use the `TelegramOptions` class to add\n[message options](https://core.telegram.org/bots/api).\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('');\n\n// Create Telegram options\n$telegramOptions = (new TelegramOptions())\n    -\u003echatId('@symfonynotifierdev')\n    -\u003eparseMode('MarkdownV2')\n    -\u003evenue(48.8566, 2.3522, 'Center of Paris', 'France, Paris');\n\n// Add the custom options to the chat message and send the message\n$chatMessage-\u003eoptions($telegramOptions);\n\n$chatter-\u003esend($chatMessage);\n```\n\nAdding Contact to a Message\n----------------------------\n\nWith a Telegram message, you can use the `TelegramOptions` class to add\n[message options](https://core.telegram.org/bots/api).\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('');\n\n$vCard = 'BEGIN:VCARD\nVERSION:3.0\nN:Doe;John;;;\nFN:John Doe\nEMAIL;type=INTERNET;type=WORK;type=pref:johnDoe@example.org\nTEL;type=WORK;type=pref:+330186657200\nEND:VCARD';\n\n// Create Telegram options\n$telegramOptions = (new TelegramOptions())\n    -\u003echatId('@symfonynotifierdev')\n    -\u003eparseMode('MarkdownV2')\n    -\u003econtact('+330186657200', 'John', 'Doe', $vCard);\n\n// Add the custom options to the chat message and send the message\n$chatMessage-\u003eoptions($telegramOptions);\n\n$chatter-\u003esend($chatMessage);\n```\n\nUpdating Messages\n-----------------\n\nThe `TelegramOptions::edit()` method was introduced in Symfony 6.2.\n\nWhen working with interactive callback buttons, you can use the `TelegramOptions`\nto reference a previous message to edit.\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\Button\\InlineKeyboardButton;\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\Reply\\Markup\\InlineKeyboardMarkup;\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('Are you really sure?');\n$telegramOptions = (new TelegramOptions())\n    -\u003echatId($chatId)\n    -\u003eedit($messageId) // extracted from callback payload or SentMessage\n    -\u003ereplyMarkup((new InlineKeyboardMarkup())\n        -\u003einlineKeyboard([\n            (new InlineKeyboardButton('Absolutely'))-\u003ecallbackData('yes'),\n        ])\n    );\n```\n\nAnswering Callback Queries\n--------------------------\n\nThe `TelegramOptions::answerCallbackQuery()` method was introduced in Symfony 6.3.\n\nWhen sending message with inline keyboard buttons with callback data, you can use\n`TelegramOptions` to [answer callback queries](https://core.telegram.org/bots/api#answercallbackquery).\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Telegram\\TelegramOptions;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('Thank you!');\n$telegramOptions = (new TelegramOptions())\n    -\u003echatId($chatId)\n    -\u003eanswerCallbackQuery(\n        callbackQueryId: '12345', // extracted from callback\n        showAlert: true,\n        cacheTime: 1,\n    );\n```\n\nResources\n---------\n\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Ftelegram-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Ftelegram-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Ftelegram-notifier/lists"}