{"id":18026804,"url":"https://github.com/yegor256/telepost","last_synced_at":"2025-10-09T02:50:03.263Z","repository":{"id":59157436,"uuid":"160918192","full_name":"yegor256/telepost","owner":"yegor256","description":"Simple Telegram posting Ruby gem","archived":false,"fork":false,"pushed_at":"2025-10-07T10:29:15.000Z","size":218,"stargazers_count":14,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-07T11:37:13.351Z","etag":null,"topics":["ruby","ruby-gem","telegram","telegram-api","telegram-bot"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/telepost","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/yegor256.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,"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":"2018-12-08T08:08:25.000Z","updated_at":"2025-10-07T10:28:23.000Z","dependencies_parsed_at":"2024-08-05T22:34:10.584Z","dependency_job_id":"650358e1-e373-4c7e-bf52-ccf9e8f2fb09","html_url":"https://github.com/yegor256/telepost","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"ec998d855e04eebd8b357d617efcde0ea9c4c201"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/yegor256/telepost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftelepost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftelepost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftelepost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftelepost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/telepost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftelepost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278948022,"owners_count":26073748,"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-10-08T02:00:06.501Z","response_time":56,"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":["ruby","ruby-gem","telegram","telegram-api","telegram-bot"],"created_at":"2024-10-30T08:08:07.181Z","updated_at":"2025-10-09T02:50:03.243Z","avatar_url":"https://github.com/yegor256.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Telegram Client\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](https://www.rultor.com/b/yegor256/telepost)](https://www.rultor.com/p/yegor256/telepost)\n[![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)\n\n[![rake](https://github.com/yegor256/telepost/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/telepost/actions/workflows/rake.yml)\n[![Gem Version](https://badge.fury.io/rb/telepost.svg)](https://badge.fury.io/rb/telepost)\n[![Maintainability](https://api.codeclimate.com/v1/badges/21aec58faee3866bdfbb/maintainability)](https://codeclimate.com/github/yegor256/telepost/maintainability)\n[![Yard Docs](https://img.shields.io/badge/yard-docs-blue.svg)](https://rubydoc.info/github/yegor256/telepost/master/frames)\n[![Hits-of-Code](https://hitsofcode.com/github/yegor256/telepost)](https://hitsofcode.com/view/github/yegor256/telepost)\n\nTelepost is a simple gateway to Telegram, which can post messages\nand respond to primitive requests.\n\nFirst, get your token from [@BotFather](https://t.me/BotFather).\n\nThen, install it:\n\n```bash\ngem install telepost\n```\n\nThen, use it like this:\n\n```ruby\nrequire 'telepost'\ntp = Telepost.new('..token..')\nThread.start do\n  tp.run do |chat, msg|\n    tp.post(chat, 'Thanks for talking to me!')\n  end\nend\ntp.post(12345, 'How are you?', 'How are you doing?')\n```\n\nAll lines you provide to the `post()` method will be concatenated\nwith a space between them.\n\nOr you can pre-configure it to talk to certain list of chats.\nYour bot has to be an admin of the channel, in order to post there.\nHere is how you \"spam\":\n\n```ruby\ntp = Telepost.new('..token..', chats: [12345])\ntp.spam('How are you?')\n```\n\nThat's it.\n\n## How to contribute\n\nRead\n[these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).\nMake sure your build is green before you contribute\nyour pull request. You will need to have\n[Ruby](https://www.ruby-lang.org/en/) 3.2+ and\n[Bundler](https://bundler.io/) installed. Then:\n\n```bash\nbundle update\nbundle exec rake\n```\n\nIf it's clean and you don't see any error messages, submit your pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Ftelepost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Ftelepost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Ftelepost/lists"}