24 lines
878 B
Java
24 lines
878 B
Java
package io.github.lonamiwebs.overgram;
|
|
|
|
import io.github.lonamiwebs.overgram.network.MTProtoSender;
|
|
import io.github.lonamiwebs.overgram.network.MTProtoState;
|
|
import io.github.lonamiwebs.overgram.network.connection.TcpFull;
|
|
import io.github.lonamiwebs.overgram.tl.Functions;
|
|
|
|
import java.io.IOException;
|
|
import java.util.concurrent.ExecutionException;
|
|
import java.util.concurrent.Future;
|
|
|
|
public class Overgram {
|
|
public static void main(final String... args) throws IOException, InterruptedException, ExecutionException {
|
|
final MTProtoSender sender = new MTProtoSender(new MTProtoState(), new TcpFull());
|
|
try {
|
|
sender.connect("149.154.167.91", 443);
|
|
final Future result = sender.send(new Functions.help.GetConfig());
|
|
System.out.println(result.get());
|
|
} finally {
|
|
sender.disconnect();
|
|
}
|
|
}
|
|
}
|