{"id":19306423,"url":"https://github.com/fluse/telegram-bot-seed","last_synced_at":"2025-09-08T06:37:52.283Z","repository":{"id":34422329,"uuid":"38354411","full_name":"fluse/telegram-bot-seed","owner":"fluse","description":"create a telegram bot with this skeleton","archived":false,"fork":false,"pushed_at":"2015-07-15T16:28:29.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T22:06:08.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-01T06:41:37.000Z","updated_at":"2016-01-27T21:15:07.000Z","dependencies_parsed_at":"2022-08-17T20:40:25.247Z","dependency_job_id":null,"html_url":"https://github.com/fluse/telegram-bot-seed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fluse/telegram-bot-seed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Ftelegram-bot-seed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Ftelegram-bot-seed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Ftelegram-bot-seed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Ftelegram-bot-seed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluse","download_url":"https://codeload.github.com/fluse/telegram-bot-seed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluse%2Ftelegram-bot-seed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274146377,"owners_count":25230115,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T00:06:00.704Z","updated_at":"2025-09-08T06:37:52.260Z","avatar_url":"https://github.com/fluse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram.org Bot - NodeJS Seed\n\nTelegram is amazing and gives us the possibility to insert a bot as a service inside chats.\n\n## Get Started\n\n## Authorize Bot\n\nfirst things first.\n\nyou have to register a new bot\n\nfollow these introductions on [telegram.org](https://core.telegram.org/bots)\n\n### Register Webhook\n\ntelegram needs an callback url, if anyone is typing in an command inside the bot chat,\nto send the request to our bot\n\n    https://api.telegram.org/bot{yourBotToken}/setWebhook?url=https://yourdomain.tld/bot/\n\n### Install Bot dependencies\n\nif you don't have it yet, you must install nodejs\n\n    [Install NodeJS](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager)\n\nafter them install dependencies\n\n```shell\n    $ npm install\n```\n\n### Start Bot Server\n\n```shell\n    $ npm start\n```\n\n## Examples\n\nthere are three example routings for messages\n\n    /start\n    /help\n    /dice\n\n## Bot Message\n\nif you want to create an new message, you have to do following things\n\n### Route\n\ninside messageRouting.js\n\n```javascript\n{\n    routeName: {\n        message: templateName,\n        description: messageDescription,\n        middleware: default null,\n        keyboard: {object}\n    },\n    secondRoute: {object},\n    thirdRoute: {object}\n}\n```\n\n#### Options\n\nname  | type | explanation\n-------| ------ | -------------\nmessage  | string | name of message template\ndescription  | string | message description\nmiddleware  | null or function | get request object to generate custom data for template\nkeyboard | object | telegram keyboard options\n\n### Message Template\n\ninside messages/ you will find rollTheDice.hbs\n\n```javascript\n    your number\n    🎲{{data.number}}\n```\n\nall messages get the request object with all available data\n\n```javascript\n    request = {\n        status: boolean,\n        routes: [array],\n        route: {object},\n        user: {object},\n        middleware: default null\n    };\n```\n\n## Bot Keyboard\n\ntelegram supports keyboard using\n\n```javascript\n    keyboard: {\n        keyboard: [[\"/dice\"]],//\n        \"one_time_keyboard\": true,\n        \"resize_keyboard\": true\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluse%2Ftelegram-bot-seed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluse%2Ftelegram-bot-seed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluse%2Ftelegram-bot-seed/lists"}