Skip to content

Commit

Permalink
Telegram Bot API 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiducho committed Aug 9, 2020
1 parent 45b581e commit 79ac1b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.cadiducho'
version = '4.8'
version = '4.9'
sourceCompatibility = '1.8'

java {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/cadiducho/telegrambotapi/BotAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ default Message sendDice(Object chat_id) throws TelegramException {
/**
* Use this method to send a dice, which will have a random value from 1 to 6.
* @param chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)
* @param emoji Emoji on which the dice throw animation is based. Currently, must be one of “🎲” or “🎯”. Defauts to “🎲”
* @param emoji Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, or “🏀”. Dice can have values 1-6 for “🎲” and “🎯”, and values 1-5 for “🏀”. Defaults to “🎲”
* @param disable_notification Sends the message silently. Users will receive a notification with no sound.
* @param reply_to_message_id If the message is a reply, ID of the original message
* @param reply_markup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/cadiducho/telegrambotapi/Dice.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Dice {
private String emoji;

/**
* Value of the dice, 1-6 for currently supported base emoji
* Value of the dice, 1-6 for “🎲” and “🎯” base emoji, 1-5 for “🏀” base emoji
*/
private Integer value;

Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/cadiducho/telegrambotapi/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ public class Message {
* Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
*/
@Json(name = "reply_to_message") private Message replyToMessage;


/**
* Optional. Bot through which the message was sent
*/
@Json(name = "via_bot") private User viaBot;

/**
* Optional. Date the message was last edited in Unix time
*/
Expand Down

0 comments on commit 79ac1b3

Please sign in to comment.