File tree Expand file tree Collapse file tree
src/main/java/it/tdlight/example
tdlight-java/src/main/java/it/tdlight Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 <dependency >
2727 <groupId >it.tdlight</groupId >
2828 <artifactId >tdlight-java-bom</artifactId >
29- <version >3.0.5 +td.1.18.4 </version >
29+ <version >3.0.6 +td.1.8.14 </version >
3030 <type >pom</type >
3131 <scope >import</scope >
3232 </dependency >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public static void main(String[] args) throws UnsupportedNativeLibraryException
1616 Init .init ();
1717
1818 // Create a client manager, it should be closed before shutdown
19- ClientFactory clientManager = new ClientFactory ();
19+ ClientFactory clientManager = ClientFactory . create ();
2020
2121 // Create a client, it should be closed before shutdown
2222 TelegramClient client = clientManager .createClient ();
Original file line number Diff line number Diff line change @@ -23,6 +23,13 @@ static ClientFactory acquireCommonClientFactory() {
2323 return common ;
2424 }
2525
26+ /**
27+ * Create a new Client Factory
28+ */
29+ static ClientFactory create () {
30+ return new ClientFactoryImpl ();
31+ }
32+
2633 TelegramClient createClient ();
2734
2835 ReactiveTelegramClient createReactive ();
You can’t perform that action at this time.
0 commit comments