Skip to content

Commit

Permalink
Updated dependencies!
Browse files Browse the repository at this point in the history
  • Loading branch information
ShafiqSadat committed Jan 2, 2024
1 parent 4ca3e48 commit 3e3017e
Show file tree
Hide file tree
Showing 16 changed files with 206 additions and 134 deletions.
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,22 @@
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId>
<version>3.6.1</version>
<version>6.8.0</version>
</dependency>

<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
<type>jar</type>
<scope>compile</scope>
<version>5.0.0</version>
</dependency>

<dependency>
<groupId>org.toile-libre.libe</groupId>
<artifactId>curl</artifactId>
<version>LATEST</version>
</dependency>


<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
Expand Down
319 changes: 195 additions & 124 deletions src/main/java/IpInfo.java

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/main/java/MainClass.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import org.telegram.telegrambots.ApiContextInitializer;
import org.telegram.telegrambots.TelegramBotsApi;
import org.telegram.telegrambots.exceptions.TelegramApiException;

import org.telegram.telegrambots.meta.TelegramBotsApi;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession;
import redis.clients.jedis.Jedis;

import java.util.Scanner;

public class MainClass {
public static void main(String[] args) {
public static void main(String[] args) throws TelegramApiException {
Scanner input = new Scanner(System.in);
Jedis redis = new Jedis();
String token;
Expand Down Expand Up @@ -34,8 +35,7 @@ public static void main(String[] args) {
username = input.nextLine();
redis.set("iPbotUserName",username);
}
ApiContextInitializer.init();
TelegramBotsApi telegramBotsApi = new TelegramBotsApi();
TelegramBotsApi telegramBotsApi = new TelegramBotsApi(DefaultBotSession.class);
try {
telegramBotsApi.registerBot(new IpInfo());
} catch (TelegramApiException e) {
Expand Down
Binary file modified target/classes/MainClass.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified target/classes/ipInfo.class
Binary file not shown.

0 comments on commit 3e3017e

Please sign in to comment.