|
3 | 3 | import com.pengrad.telegrambot.model.chatbackground.ChatBackground; |
4 | 4 | import com.pengrad.telegrambot.model.chatboost.ChatBoostAdded; |
5 | 5 | import com.pengrad.telegrambot.model.gift.GiftInfo; |
| 6 | +import com.pengrad.telegrambot.model.gift.unique.UniqueGiftInfo; |
6 | 7 | import com.pengrad.telegrambot.model.giveaway.Giveaway; |
7 | 8 | import com.pengrad.telegrambot.model.giveaway.GiveawayCompleted; |
8 | 9 | import com.pengrad.telegrambot.model.giveaway.GiveawayCreated; |
@@ -107,6 +108,7 @@ public class Message extends MaybeInaccessibleMessage implements Serializable { |
107 | 108 | private InlineKeyboardMarkup reply_markup; |
108 | 109 | private WebAppData web_app_data; |
109 | 110 | private GiftInfo gift; |
| 111 | + private UniqueGiftInfo unique_gift; |
110 | 112 |
|
111 | 113 | public Integer messageThreadId() { |
112 | 114 | return message_thread_id; |
@@ -441,6 +443,10 @@ public GiftInfo gift() { |
441 | 443 | return gift; |
442 | 444 | } |
443 | 445 |
|
| 446 | + public UniqueGiftInfo uniqueGift() { |
| 447 | + return unique_gift; |
| 448 | + } |
| 449 | + |
444 | 450 | /** |
445 | 451 | * Only for backwards-compatibility with MaybeInaccessibleMessage |
446 | 452 | */ |
@@ -552,7 +558,8 @@ public boolean equals(Object o) { |
552 | 558 | Objects.equals(video_chat_scheduled, message.video_chat_scheduled) && |
553 | 559 | Objects.equals(reply_markup, message.reply_markup) && |
554 | 560 | Objects.equals(web_app_data, message.web_app_data) && |
555 | | - Objects.equals(gift, message.gift); |
| 561 | + Objects.equals(gift, message.gift) && |
| 562 | + Objects.equals(unique_gift, message.unique_gift); |
556 | 563 | } |
557 | 564 |
|
558 | 565 | @Override |
@@ -649,6 +656,7 @@ public String toString() { |
649 | 656 | ", reply_markup=" + reply_markup + |
650 | 657 | ", web_app_data=" + web_app_data + |
651 | 658 | ", gift=" + gift + |
| 659 | + ", unique_gift=" + unique_gift + |
652 | 660 | '}'; |
653 | 661 | } |
654 | 662 | } |
0 commit comments