Teamgram - Open source mtproto server written in golang
open source mtproto server implemented in golang with compatible telegram client.
English | 简体中文
Introduce
Open source mtproto server written in golang
Architecture

Documents
Diffie–Hellman key exchange
Creating an Authorization Key
Mobile Protocol: Detailed Description (v.1.0, DEPRECATED)
Encrypted CDNs for Speed and Security Translate By @steedfly
Quick start with Docker
TODO...
Manual Build and Install
Depends
Install Teamgram
git clone https://github.com/devops-ntpro/teamgram-server.git
cd teamgram-server
- grant permissions to access without password
1. get mysql config file
sudo docker cp teamgram-server_mysql_1:/etc/mysql/mysql.cnf .
2. add
[mysqld]
skip-grant-tables
3. save changes
sudo docker cp mysql.cnf teamgram-server_mysql_1:/etc/mysql
4. restart mysql
sudo docker exec -it teamgram-server_mysql_1 bash
/etc/init.d/mysql restart
1. create database teamgram
2. init teamgram database
mysql -h127.0.0.1 -P3306 -uroot teamgram < teamgramd/sql/teamgram2.sql
mysql -h127.0.0.1 -P3306 -uroot teamgram < teamgramd/sql/migrate-20220321.sql
...
cd scripts
./build.sh
cd ./teamgramd/logs
mkdir authsession bff biz dfs gateway idgen media msg session status sync
cd ./teamgramd/bin
./runall2.sh
Compatible clients
Important: default signIn verify code is 12345
Android client for Teamgram
iOS client for Teamgram
tdesktop for Teamgram
Feedback
Please report bugs, concerns, suggestions by issues, or join telegram group Teamgram中文社区 Or Teamgram to discuss problems around source code.
Notes
If need enterprise edition, please PM the author
Give a Star! ⭐
If you like or are using this project to learn or start your solution, please give it a star. Thanks!