{"id":13449688,"url":"https://github.com/dariotarantini/vgram","last_synced_at":"2026-01-05T17:10:09.026Z","repository":{"id":38846050,"uuid":"194099798","full_name":"dariotarantini/vgram","owner":"dariotarantini","description":"Telegram Bot library written in V.","archived":false,"fork":false,"pushed_at":"2022-09-01T07:29:58.000Z","size":257,"stargazers_count":144,"open_issues_count":5,"forks_count":19,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-05T10:07:37.233Z","etag":null,"topics":["api","bot","library","telegram","v","vlang"],"latest_commit_sha":null,"homepage":"","language":"V","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/dariotarantini.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}},"created_at":"2019-06-27T13:23:22.000Z","updated_at":"2024-07-26T07:45:10.000Z","dependencies_parsed_at":"2022-08-26T20:02:24.256Z","dependency_job_id":null,"html_url":"https://github.com/dariotarantini/vgram","commit_stats":null,"previous_names":["vpervenditti/hygram"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariotarantini%2Fvgram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariotarantini%2Fvgram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariotarantini%2Fvgram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariotarantini%2Fvgram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dariotarantini","download_url":"https://codeload.github.com/dariotarantini/vgram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245449663,"owners_count":20617190,"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":["api","bot","library","telegram","v","vlang"],"created_at":"2024-07-31T06:00:51.502Z","updated_at":"2026-01-05T17:10:08.998Z","avatar_url":"https://github.com/dariotarantini.png","language":"V","funding_links":[],"categories":["BOT","Libraries"],"sub_categories":["Telegram"],"readme":"# vgram   \n**vgram** is a bot library for the Telegram Bot API written in V.   \nThe Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.\n\nIt currently implements every method from Telegram Bot API 4.8\n## Installing  \n- Using vpm: `v install dariotarantini.vgram`  \n- Using vpkg: `vpkg get vgram`\n\n## TBA\nCurrently, due to some vlang issues, this library have some limitations.  \nSome part of the code are commented, check types.v\n\n## Getting started  \n1. Search for the “@botfather” telegram bot and start it  \n2. Click on or type /newbot to create a new bot and follow his instructions  \n3. Copy the token and create a file named sendMessage.v with the following code:  \n```v\nmodule main\n\nimport dariotarantini.vgram\n\nfn main(){\n    bot := vgram.new_bot('TELEGRAM_BOT_TOKEN_HERE')\n    bot.send_message(\n        chat_id: \"USER_ID_HERE\",\n        text: 'yo! Made using vgram!'\n    )\n}\n```\n## Examples  \n* [`hi_man.v`](examples/hi_man.v) - a complete Telegram bot written in V\n\n## Documentation  \nYou can find the documentation directly on the [Telegram website](https://core.telegram.org/bots/api) or you can read it in the vgram source code. See methods.v and types.v.\n\nCall a method using:\n```v\nbot_instance.method_name(\n    method_arg1: \"some text\"\n    method_arg1: 123 // or int\n)\n\n- *bot_instance* can be created using bot_instance := vgram.Bot{\"TOKEN\"} or bot_instance.new_bot(\"TOKEN\")\n- *method_name* and *method_args* shoud be in snake_case\n```\nThats it. You are ready to go.\n\n## Custom endpoint  \nYou can set a custom telegram endpoint via `Bot.endpoint` value. Default is set to `https://api.telegram.org/bot`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariotarantini%2Fvgram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdariotarantini%2Fvgram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariotarantini%2Fvgram/lists"}