-
Get teamgram-android source code
-
build, see build teamgram-android, and google
Default connect to Teamgram Test Server.
If you want to connect to your own server, you can modify the following code:
https://github.com/teamgram/teamgram-android/blob/teamgram/TMessagesProj/jni/tgnet/ConnectionsManager.cpp#L1691
void ConnectionsManager::initDatacenters() {
Datacenter *datacenter;
if (!testBackend) {
if (datacenters.find(1) == datacenters.end()) {
datacenter = new Datacenter(instanceNum, 1);
datacenter->addAddressAndPort("XXX.XXX.XXX.XXX", 10443, 0, "");
datacenters[1] = datacenter;
}
} else {
if (datacenters.find(1) == datacenters.end()) {
datacenter = new Datacenter(instanceNum, 1);
datacenter->addAddressAndPort("XXX.XXX.XXX.XXX", 10443, 0, "");
datacenters[1] = datacenter;
}
}
}