Skip to content

Commit

Permalink
Fix getChat test
Browse files Browse the repository at this point in the history
  • Loading branch information
pengrad committed Jun 2, 2024
1 parent 8557126 commit 02cf0e8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.pengrad.telegrambot.model.botcommandscope.BotCommandScopeAllChatAdministrators;
import com.pengrad.telegrambot.model.chatboost.ChatBoost;
import com.pengrad.telegrambot.model.giveaway.Giveaway;
import com.pengrad.telegrambot.model.reaction.ReactionType;
import com.pengrad.telegrambot.model.reaction.ReactionTypeEmoji;
import com.pengrad.telegrambot.model.request.*;
import com.pengrad.telegrambot.passport.*;
Expand Down Expand Up @@ -468,7 +467,7 @@ public void answerCallback() {
public void getChat() throws MalformedURLException, URISyntaxException {
ChatFullInfo chat = bot.execute(new GetChat(groupId)).chat();
ChatTest.checkFullInfoChat(chat, true);
assertEquals(Chat.Type.supergroup, chat.type());
assertEquals(ChatFullInfo.Type.supergroup, chat.type());
assertTrue(chat.title().contains("Test Bot Group"));
assertTrue(chat.description().contains("New desc"));
assertEquals(Integer.valueOf(10), chat.slowModeDelay());
Expand Down

0 comments on commit 02cf0e8

Please sign in to comment.