{"id":17800782,"url":"https://github.com/kiwiyou/telbot","last_synced_at":"2025-03-17T09:31:11.140Z","repository":{"id":44809322,"uuid":"410452254","full_name":"kiwiyou/telbot","owner":"kiwiyou","description":"Rust telegram bot library for many runtimes","archived":false,"fork":false,"pushed_at":"2024-04-11T16:46:34.000Z","size":167,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-27T22:13:01.696Z","etag":null,"topics":["bot","telegram"],"latest_commit_sha":null,"homepage":"https://docs.rs/telbot-types","language":"Rust","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/kiwiyou.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2021-09-26T04:48:18.000Z","updated_at":"2024-07-08T10:15:01.000Z","dependencies_parsed_at":"2024-10-27T12:49:38.176Z","dependency_job_id":"73dc8a2f-3abf-4bb5-bcbd-6bd8ae63171a","html_url":"https://github.com/kiwiyou/telbot","commit_stats":{"total_commits":56,"total_committers":3,"mean_commits":"18.666666666666668","dds":0.4464285714285714,"last_synced_commit":"6d3edbc6de4a38c0e5ca23e0378e3039737195ca"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Ftelbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Ftelbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Ftelbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Ftelbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiwiyou","download_url":"https://codeload.github.com/kiwiyou/telbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858929,"owners_count":20359260,"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":["bot","telegram"],"created_at":"2024-10-27T12:28:32.531Z","updated_at":"2025-03-17T09:31:10.608Z","avatar_url":"https://github.com/kiwiyou.png","language":"Rust","readme":"# telbot\n\n[![Active Development](https://img.shields.io/badge/Maintenance%20Level-Actively%20Developed-brightgreen.svg)](https://github.com/kiwiyou/telbot)\n\nTelbot provides telegram bot types and API wrappers.\n\nSpecifically, telbot now supports:\n\n- telbot-types: basic telegram types / requests / responses\n\n```toml\n[dependencies]\ntelbot-types = \"0.3.0\"\n```\n\n- telbot-cf-worker: API wrapper for cloudflare workers\n\n```toml\n[dependencies]\ntelbot-cf-worker = \"0.3.0\"\n```\n\n- telbot-ureq: API wrapper for [ureq](https://github.com/algesten/ureq) client\n\n```toml\n[dependencies]\ntelbot-ureq = \"0.3.1\"\n```\n\n- telbot-hyper: API wrapper for [hyper](https://github.com/hyperium/hyper) client\n\n```toml\n[dependencies]\ntelbot-hyper = \"0.3.0\"\n```\n\n## Examples\n\n- [cloudflare workers](https://github.com/kiwiyou/telbot/tree/main/telbot-cf-worker/examples)\n  - [get-me request example](https://github.com/kiwiyou/telbot/tree/main/telbot-cf-worker/examples/get-me)\n  - [echo bot example](https://github.com/kiwiyou/telbot/tree/main/telbot-cf-worker/examples/echo)\n  - [file(photo) send example](https://github.com/kiwiyou/telbot/tree/main/telbot-cf-worker/examples/file)\n- [ureq](https://github.com/kiwiyou/telbot/tree/main/telbot-ureq/examples)\n  - [echo example](https://github.com/kiwiyou/telbot/blob/main/telbot-ureq/examples/echo.rs)\n  - [file(photo) send example](https://github.com/kiwiyou/telbot/blob/main/telbot-ureq/examples/file.rs)\n- [hyper](https://github.com/kiwiyou/telbot/tree/main/telbot-hyper/examples)\n  - [echo example](https://github.com/kiwiyou/telbot/blob/main/telbot-hyper/examples/echo.rs)\n  - [file(photo) send example](https://github.com/kiwiyou/telbot/blob/main/telbot-hyper/examples/file.rs)\n\n\n## Extending telbot\n\nYou can implement two methods, `send_json` and `send_file` with your own http client to create your own API wrapper.\n\n`send_json` should serialize `JsonMethod` into json format and send it to the API endpoint.\n\n`send_file` should serialize `FileMethod` into `multipart/form-data` format and send it to the API endpoint.\n\n`files(\u0026self)` method in `FileMethod` helps getting fields of type `InputFileVariant`.\n\nFor the ease of serializing, both `JsonMethod` and `FileMethod` implements `serde::Serialize`.\n\n`TelegramMethod`, the super trait of both `JsonMethod` and `FileMethod`, provides `name()` method,\nwhich can be used to get the method's name in `\u0026str` format.\n\n## Contributing\n\ntelbot is not a mature project yet, so your help will be very helpful.\n\nPlease leave an issue if you find wrongly coded piece or get a nice idea to improve telbot.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwiyou%2Ftelbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiwiyou%2Ftelbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwiyou%2Ftelbot/lists"}