{"repo":"dariotarantini/vgram","free":true,"listed":false,"github":"https://github.com/dariotarantini/vgram","clone":"git clone https://github.com/dariotarantini/vgram.git","description":"Telegram Bot library written in V.","language":"V","stars":150,"topics":["v","vlang","telegram","bot","api","library"],"license":"MIT","category":"chat-messaging","readme_excerpt":"vgram vgram is a bot library for the Telegram Bot API written in V. The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram. It implements every type and method from Telegram Bot API 10.1.0 . The V bindings ( types.v , methods.v , vgram.v ) are generated from the official API schema by the generator in gen/ , so they can be regenerated whenever Telegram updates the API. Installing $ v install dariotarantini.vgram Getting started 1. Search for the \"@botfather\" telegram bot and start it 2. Click on or type /newbot to create a new bot and follow his instructions 3. Copy the token and create a file named send message.v with the following code: Examples hi man.v - a complete Telegram bot written in V send photo.v - uploading a local file via multipart/form-data Documentation You can find the documentation directly on the Telegram website, or read it in the vgram source code: see methods.v and types.v . Call a method using: - bot instance can be created using vgram.new bot('TOKEN') - method name and method args should be in snake case - every method returns a Result ( !T ): handle it with ! or or { ... } Notes on the generated bindings - Integer fields use i64 (Telegram chat / user ids exceed 32 bits). - Large nested objects (e.g. Update.message , Message.reply to message ) are optional references ( ?&Type ); small structs like User / Chat stay values. Unwrap a reference once, then access values normally: (References keep structs small; V's ","default_branch":null,"files":null,"tree":[],"storefront":"/r/dariotarantini","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dariotarantini/vgram/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}