Skip to content

Commit

Permalink
Capitalize the chat type
Browse files Browse the repository at this point in the history
  • Loading branch information
mkotb committed Feb 18, 2020
1 parent bb9a955 commit 685ced6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jtelegrambotapi-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.jtelegram</groupId>
<artifactId>jtelegrambotapi</artifactId>
<version>4.0.7</version>
<version>4.0.8</version>
</parent>

<artifactId>jtelegrambotapi-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Chat deserialize(JsonElement jsonElement, Type type, JsonDeserializationC
ChatType chatType;

try {
chatType = ChatType.valueOf(chatTypeName);
chatType = ChatType.valueOf(chatTypeName.toUpperCase());
} catch (IllegalArgumentException ex) {
throw new InvalidResponseException (
"There is no chat type by the name " + chatTypeName,
Expand Down
2 changes: 1 addition & 1 deletion jtelegrambotapi-menus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.jtelegram</groupId>
<artifactId>jtelegrambotapi</artifactId>
<version>4.0.7</version>
<version>4.0.8</version>
</parent>

<artifactId>jtelegrambotapi-menus</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jtelegrambotapi-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.jtelegram</groupId>
<artifactId>jtelegrambotapi</artifactId>
<version>4.0.7</version>
<version>4.0.8</version>
</parent>

<artifactId>jtelegrambotapi-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jtelegrambotapi-webhooks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.jtelegram</groupId>
<artifactId>jtelegrambotapi</artifactId>
<version>4.0.7</version>
<version>4.0.8</version>
</parent>

<artifactId>jtelegrambotapi-webhooks</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.jtelegram</groupId>
<artifactId>jtelegrambotapi</artifactId>
<version>4.0.7</version>
<version>4.0.8</version>
<packaging>pom</packaging>

<properties>
Expand Down

0 comments on commit 685ced6

Please sign in to comment.