{"repo":"celestix/gotgproto","free":true,"listed":false,"github":"https://github.com/celestix/gotgproto","clone":"git clone https://github.com/celestix/gotgproto.git","description":"A wrapper for Go Telegram Client, i.e. gotd/td.","language":"Go","stars":367,"topics":["mtproto","telegram","golang","go","tdlib-go","tdlib","helper-functions","hacktoberfest"],"license":"GPL-3.0","category":"chat-messaging","readme_excerpt":"GoTGProto GoTGProto is a helper package for gotd library, It aims to make td's raw functions easy-to-use with the help of features like using session strings, custom helper functions, storing peers and extracting chat or user ids through it etc. We have an outstanding userbot project going on with GoTGProto, you can check it out by clicking here. You can use this package to create bots and userbots with Telegram MTProto easily in golang, for any futher help you can check out the documentations or reach us through the following: - Updates Channel: - Support Chat: Note : This library is in the beta stage yet and may not be stable for every case. Installation You can download the library with the help of standard go get command. Usage You can find various examples in the examples' directory, one of them i.e. authorizing as a user is as follows: Basic Operations Here are some quick examples on basic operations like sending a message, media etc. Naming convention: - ctx is a ext.Context object returned as a paramter in all update handlers. - update is a ext.Update object returned as a parameter in all update handlers. - chatId is the chat id of the chat you want to send the message to. (type int64) Note : You do not need to specify the peer field in the request, it is automatically filled by the library. Sending a Message Uploading media on telegram If you want to send a local file, you will need to upload it to telegram using an uploader instance as we've done below for test.jpg ","default_branch":null,"files":null,"tree":[],"storefront":"/r/celestix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/celestix/gotgproto/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."}