项目作者: nebula-chat

项目描述 :
Open source mtproto server written in golang with compatible telegram client
高级语言: Go
项目地址: git://github.com/nebula-chat/chatengine.git
创建时间: 2018-11-29T00:04:00Z
项目社区:https://github.com/nebula-chat/chatengine

开源协议:Apache License 2.0

下载


Teamgram - Unofficial open source mtproto server written in golang

open source mtproto server implemented in golang with compatible telegram client.

Introduce

Open source mtproto server implementation written in golang, support private deployment.

Features

  • MTProto 2.0
    • Abridged
    • Intermediate
    • Padded intermediate
    • Full
  • API Layer: 201
  • private chat
  • basic group
  • contacts
  • web

Architecture

Architecture

Installing Teamgram

Teamgram relies on high-performance components:

Privatization deployment Before Teamgram, please make sure that the above five components have been installed. If your server does not have the above components, you must first install Missing components.

If you have the above components, it is recommended to use them directly. If not, it is recommended to use docker-compose-env.yaml.

Source code deployment

Install Go environment. Make sure Go version is at least 1.21.

Get source code 

  1. git clone https://github.com/teamgram/teamgram-server.git
  2. cd teamgram-server

Init data

  • init database

    1. 1. create database teamgram
    2. 2. init teamgram database
    3. mysql -uroot teamgram < teamgramd/sql/1_teamgram.sql
    4. mysql -uroot teamgram < teamgramd/sql/migrate-20220321.sql
    5. mysql -uroot teamgram < teamgramd/sql/migrate-20220326.sql
    6. mysql -uroot teamgram < teamgramd/sql/migrate-20220328.sql
    7. mysql -uroot teamgram < teamgramd/sql/migrate-20220401.sql
    8. mysql -uroot teamgram < teamgramd/sql/migrate-20220412.sql
    9. mysql -uroot teamgram < teamgramd/sql/migrate-20220419.sql
    10. mysql -uroot teamgram < teamgramd/sql/migrate-20220423.sql
    11. mysql -uroot teamgram < teamgramd/sql/migrate-20220504.sql
    12. mysql -uroot teamgram < teamgramd/sql/migrate-20220721.sql
    13. mysql -uroot teamgram < teamgramd/sql/migrate-20220826.sql
    14. mysql -uroot teamgram < teamgramd/sql/migrate-20220919.sql
    15. mysql -uroot teamgram < teamgramd/sql/migrate-20221008.sql
    16. mysql -uroot teamgram < teamgramd/sql/migrate-20221011.sql
    17. mysql -uroot teamgram < teamgramd/sql/migrate-20221016.sql
    18. mysql -uroot teamgram < teamgramd/sql/migrate-20221023.sql
    19. mysql -uroot teamgram < teamgramd/sql/migrate-20221101.sql
    20. mysql -uroot teamgram < teamgramd/sql/migrate-20221127.sql
    21. mysql -uroot teamgram < teamgramd/sql/migrate-20230707.sql
    22. mysql -uroot teamgram < teamgramd/sql/migrate-20240107.sql
    23. mysql -uroot teamgram < teamgramd/sql/migrate-20240108.sql
    24. mysql -uroot teamgram < teamgramd/sql/migrate-20240111.sql
    25. mysql -uroot teamgram < teamgramd/sql/migrate-20240112.sql
    26. mysql -uroot teamgram < teamgramd/sql/migrate-20240113.sql
    27. mysql -uroot teamgram < teamgramd/sql/migrate-20240114.sql
    28. mysql -uroot teamgram < teamgramd/sql/migrate-20240420.sql
    29. mysql -uroot teamgram < teamgramd/sql/migrate-20240620.sql
    30. mysql -uroot teamgram < teamgramd/sql/migrate-20240828.sql
    31. mysql -uroot teamgram < teamgramd/sql/migrate-20241010.sql
    32. mysql -uroot teamgram < teamgramd/sql/migrate-20241016.sql
    33. mysql -uroot teamgram < teamgramd/sql/migrate-20241026.sql
    34. mysql -uroot teamgram < teamgramd/sql/migrate-20241105.sql
    35. mysql -uroot teamgram < teamgramd/sql/migrate-20241123.sql
    36. mysql -uroot teamgram < teamgramd/sql/migrate-20250109.sql
    37. mysql -uroot teamgram < teamgramd/sql/migrate-20250410.sql
    38. mysql -uroot teamgram < teamgramd/sql/migrate-20250529.sql
    39. mysql -uroot teamgram < teamgramd/sql/z_init.sql
  • init minio buckets

    • bucket names
      • documents
      • encryptedfiles
      • photos
      • videos
    • Access http://ip:xxxxx and create

Build

  1. make

Run

  1. cd teamgramd/bin
  2. ./runall2.sh

Docker deployment

Install Docker

Install Docker Compose

Get source code

  1. git clone https://github.com/teamgram/teamgram-server.git
  2. cd teamgram-server

Run

  1. # run dependency
  2. docker-compose -f ./docker-compose-env.yaml up -d
  3. # run docker-compose
  4. docker-compose up -d

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 to discuss problems around source code.

Notes

If need enterprise edition:

  • sticker/theme/wallpaper/reactions/2fa/sms/push(apns/web/fcm)/secretchat/scheduled/…
  • channel/megagroup
  • audiocall/videocall/groupcall
  • bots

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!

Visitors Count

Loading