{"id":15464831,"url":"https://github.com/blocknotes/telegram-bot-server-ruby","last_synced_at":"2025-03-28T11:43:36.686Z","repository":{"id":37877090,"uuid":"254691850","full_name":"blocknotes/telegram-bot-server-ruby","owner":"blocknotes","description":"A Telegram Bot server in Ruby using webhooks","archived":false,"fork":false,"pushed_at":"2023-03-16T10:07:29.000Z","size":281,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T12:19:22.630Z","etag":null,"topics":["ruby","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/blocknotes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-10T17:12:34.000Z","updated_at":"2022-06-15T06:27:05.000Z","dependencies_parsed_at":"2023-02-10T19:10:27.171Z","dependency_job_id":null,"html_url":"https://github.com/blocknotes/telegram-bot-server-ruby","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/blocknotes%2Ftelegram-bot-server-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Ftelegram-bot-server-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Ftelegram-bot-server-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Ftelegram-bot-server-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocknotes","download_url":"https://codeload.github.com/blocknotes/telegram-bot-server-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246025940,"owners_count":20711575,"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":["ruby","telegram-bot"],"created_at":"2024-10-02T00:42:54.244Z","updated_at":"2025-03-28T11:43:36.660Z","avatar_url":"https://github.com/blocknotes.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Telegram Bot server in Ruby on Heroku using webhooks\n\nAn example of a Ruby Telegram Bot server hosted on Heroku.\n\nIt's a simple Rack app that handle POST requests and launch dice with different sides.\n\n## Install\n\n- Create a new bot on Telegram writing to **@BotFather** the command `/newbot` and choose a name and a nick; it will return the access token for the bot, put it in `API_TOKEN` env variable of `.env` file (for local development)\n- Setup your bot project on Heroku:\n  - Create a new Ruby project\n  - Set the API_TOKEN with: `heroku config:set API_TOKEN=bot_token`\n  - Clone this repo and commit the changes\n  - Check the logs with: `heroku logs -t`\n- Set the webhook URL for the bot (replacing `API_TOKEN` and `HEROKU_PROJECT`):\n\n```sh\ncurl -X POST -H 'Content-Type: application/json' 'https://api.telegram.org/botAPI_TOKEN/setWebhook' --data '{\"url\":\"https://HEROKU_PROJECT.herokuapp.com/\"}'\n```\n\n## Usage\n\n- Write to your bot a command (ex. `.D4`)\n- A POST request should be received (check the Heroku logs)\n- The result should be shown in the bot channel\n\n## Screenshot\n\n![bot screenshot](screenshot.png)\n\n## Do you like it? Star it!\n\nIf you use this component just star it. A developer is more motivated to improve a project when there is some interest.\n\n## Contributors\n\n- [Mattia Roccoberton](https://blocknot.es/): author\n\n## License\n\n[MIT](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Ftelegram-bot-server-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocknotes%2Ftelegram-bot-server-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Ftelegram-bot-server-ruby/lists"}