Skip to content

Commit

Permalink
Updated telegram lib version plus getting ready for 1.6.0 version
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio <[email protected]>
  • Loading branch information
slux83 committed May 3, 2024
1 parent 6e1779e commit 29c1b78
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</description>
<properties>
<java.version>11</java.version>
<telegram-java-bot-api.version>6.9.0</telegram-java-bot-api.version>
<telegram-java-bot-api.version>7.2.1</telegram-java-bot-api.version>
<spring-cloud.version>2021.0.4</spring-cloud.version>
<koios-java.version>1.18.1</koios-java.version>
<emoji-java.version>5.1.1</emoji-java.version>
Expand Down Expand Up @@ -120,6 +120,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${parent.version}</version>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ private Map<Long, List<AccountAsset>> getAccountsAssets(Map<Long, List<String>>
}
}

if (LOG.isDebugEnabled())
LOG.debug("Retrieved account assets: {}", outcome);
if (LOG.isTraceEnabled())
LOG.trace("Retrieved account assets: {}", outcome);

return outcome;
}
Expand Down Expand Up @@ -341,8 +341,8 @@ private Map<Long, List<AddressAsset>> getAddressesAssets(Map<Long, List<String>>
}
}

if (LOG.isDebugEnabled())
LOG.debug("Retrieved account assets: {}", outcome);
if (LOG.isTraceEnabled())
LOG.trace("Retrieved addresses assets: {}", outcome);

return outcome;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void processUpdate(Update update, TelegramBot bot) {
} else if (update.callbackQuery() != null) {
payload = update.callbackQuery().data();
from = update.callbackQuery().from().username();
id = update.callbackQuery().message().chat().id();
id = update.callbackQuery().maybeInaccessibleMessage().chat().id();
} else {
LOG.warn("Update.message and callbackQuery are null");
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private String getHelpText(String username) {
helpText = helpText.replace("%information_source", EmojiParser.parseToUnicode(":information_source:"));
helpText = helpText.replace("%speech_balloon", EmojiParser.parseToUnicode(":speech_balloon:"));
helpText = helpText.replace("%speaking_head_in_silhouette", EmojiParser.parseToUnicode(":speaking_head_in_silhouette:"));
helpText = helpText.replace("%admission_ticket", EmojiParser.parseToUnicode(":admission_ticket:"));
helpText = helpText.replace("%art", EmojiParser.parseToUnicode(":art:"));
sb.append(helpText);

// Grab the subscription help text
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ thoth:
fetching: false
subscription:
nft:
stake-policy-id: 4e22095c8ffb8113206e788af55986eb70577f4e7b32f6ded0b0a855
stake-policy-id: DISABLED
free-for-all-policy-id: f7a721351f7b121a7c0f853a0216d28dae80d0fb13f1aa96e8d78b5f
dapps:
contracts:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/help.cdm.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

%speech_balloon <u>Available commands</u>
$commands
%admission_ticket <u>Utility NFTs</u>
%art <u>Utility NFTs</u>

0 comments on commit 29c1b78

Please sign in to comment.