{"id":24364432,"url":"https://github.com/nemanjapetrovic/telegram-push","last_synced_at":"2026-01-23T20:02:34.556Z","repository":{"id":51270922,"uuid":"143605328","full_name":"nemanjapetrovic/telegram-push","owner":"nemanjapetrovic","description":"Async push text notifications to your telegram bot users.","archived":false,"fork":false,"pushed_at":"2021-05-18T07:53:11.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T05:49:10.192Z","etag":null,"topics":["async","notifications","push-notifications","telegram","telegram-bot","telegram-bot-users"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nemanjapetrovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"nempet"}},"created_at":"2018-08-05T11:01:01.000Z","updated_at":"2023-06-08T13:56:06.000Z","dependencies_parsed_at":"2022-09-26T20:01:54.738Z","dependency_job_id":null,"html_url":"https://github.com/nemanjapetrovic/telegram-push","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemanjapetrovic%2Ftelegram-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemanjapetrovic%2Ftelegram-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemanjapetrovic%2Ftelegram-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemanjapetrovic%2Ftelegram-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nemanjapetrovic","download_url":"https://codeload.github.com/nemanjapetrovic/telegram-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243196623,"owners_count":20251859,"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":["async","notifications","push-notifications","telegram","telegram-bot","telegram-bot-users"],"created_at":"2025-01-18T23:53:07.612Z","updated_at":"2026-01-23T20:02:29.505Z","avatar_url":"https://github.com/nemanjapetrovic.png","language":"JavaScript","funding_links":["https://patreon.com/nempet"],"categories":[],"sub_categories":[],"readme":"# telegram-push\n\nIs npm package used to send text push notifications to your Telegram bot users.\n\n# Install\n\nTo install this package just run:\n\n```npm install telegram-push```\n\n# Basic usage example\n\ntelegram-push requires for you to set up two environment variables:\n\n- TELEGRAM_URL=https://api.telegram.org\n- TELEGRAM_BOT_TOKEN=insert_your_bot_token\n\nHere is an example of using telegram-push:\n\n```\nconst telegramPush = require('telegram-push');\n\nfunction foo () {\n    //...\n    //...\n    telegramPush.sendAsync(chatId, 'some message foo');\n}\n```\n\nHow to use telegram-push with async/await:\n\n```\nconst telegramPush = require('telegram-push');\n\nasync function foo1 () {\n    //...\n    //...\n\n    // async sending of the messages\n    telegramPush.sendAsync(chatId, 'some async send message foo 1');\n    telegramPush.sendAsync(chatId, 'some async send message foo 2');\n}\n\nasync function foo2 ()\n{\n    //...\n    //...\n\n    // sending one message after the other\n    await telegramPush.sendAsync(chatId, 'some async send message foo 1');\n    await telegramPush.sendAsync(chatId, 'some async send message foo 2');\n}\n```\n# About telegram-push\n\nTelegram-push is using chatId created automatically by Telegram when some of your users sends the first message to your Telegram bot.\nThis chatId represents created chat between some person and your Telegram bot. To find this chatId you can go to the next url:\n\nhttps://api.telegram.org/bot{YOUR_BOT_TOKEN_HERE}/GetUpdates\n\nExample fake url:\nhttps://api.telegram.org/bot124124124:AFHFASajsa9dasjajksdaldasd/GetUpdates\n\nor you can find more instructions on Telegram official [site](https://core.telegram.org/bots)\n\n# [Contribution](https://github.com/nemanjapetrovic/telegram-push/blob/master/CONTRIBUTING.md)\n\nFeel free to contribute by forking this repository, making changes, and submitting pull requests. For any questions or advice place an issue on this repository.\n\n# License\n\n  [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemanjapetrovic%2Ftelegram-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnemanjapetrovic%2Ftelegram-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemanjapetrovic%2Ftelegram-push/lists"}