Skip to content

Commit

Permalink
0.0.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
EXH3Y committed Dec 11, 2015
1 parent 64686cc commit 4c853ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion telebot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>exh3y</groupId>
<artifactId>telebot</artifactId>
<version>0.0.3-SNAPSHOT</version>
<version>0.0.3</version>
<packaging>jar</packaging>

<name>TeleBot</name>
Expand Down
5 changes: 3 additions & 2 deletions telebot/src/main/java/exh3y/telebot/TeleBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void unregisterCommandAction(String command) {
* </p>
*
* @param action
* The action to register
* The action to register or null to remove the registered action
* @since 0.0.1
*/
public void registerDefaultTextAction(TelegramActionHandler action) {
Expand Down Expand Up @@ -209,7 +209,8 @@ public void run() {
for (int i = 0; i < jsonResponse.length(); i++) {

// Iterate over the messages in the last update
TelegramMessage message = new TelegramMessage(jsonResponse.getJSONObject(i).getJSONObject("message"));
TelegramMessage message = new TelegramMessage(
jsonResponse.getJSONObject(i).getJSONObject("message"));
int chatId = message.getChatId();

if (message.has("text")) {
Expand Down
2 changes: 2 additions & 0 deletions telebot/src/main/java/exh3y/telebot/data/TelegramMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class TelegramMessage extends JSONObject {
* </p>
*
* @param message
* @since 0.0.3
*/
public TelegramMessage(JSONObject message) {

Expand All @@ -35,6 +36,7 @@ public String[] toCommandArray() {
* </p>
*
* @return The content of 'text'
* @since 0.0.3
*/
public String getText() {

Expand Down

0 comments on commit 4c853ef

Please sign in to comment.