Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdidyk/mtproto
MTProto implementation in Golang
https://github.com/sdidyk/mtproto
golang mtproto telegram
Last synced: 12 days ago
JSON representation
MTProto implementation in Golang
- Host: GitHub
- URL: https://github.com/sdidyk/mtproto
- Owner: sdidyk
- Created: 2015-04-15T15:42:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T13:11:57.000Z (almost 8 years ago)
- Last Synced: 2024-07-31T12:07:25.467Z (3 months ago)
- Topics: golang, mtproto, telegram
- Language: Go
- Size: 127 KB
- Stars: 205
- Watchers: 21
- Forks: 55
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-telegram-bots - mtproto - MTProto implementation in Golang (Libraries / Go)
README
# telegram
MTProto implementation in Golang with example tool.# Example tool
Example tool saves the authkey and other data in ~/.telegram_go. If you delete/lost this file, you will need to auth again.
## install
```
$ go install github.com/sdidyk/mtproto/example/telegram@latest
```## phone authorization
Authorizes phone by code (sent by sms or thru telegram app).
```
$ telegram auth 79998886655
Enter code: 25704
Signed in: id 104842610 name
```## get contact list
Shows user's contact list.
```
$ telegram list
id mutual name username access_hash
40352 true Николай *** n**** 94c173dd********
88928 true Сергей *** s**** c72a5847********
109551 true Мария *** m**** ff92275a********
```## send message to contact
Sends a message to contact. Destination id should be from contact list or user himself.
```
$ telegram msg 109551 ff92275a******** 'Hack the planet!'
```## Library
*documentation not ready yet*
### MTProto documentation
* https://core.telegram.org/mtproto
* https://core.telegram.org/api## License
MIT License