TDLib 1.6.3

This commit is contained in:
Andrea Cavalli 2020-04-25 13:08:10 +02:00
parent 850503766c
commit 00d9bdb3aa
3 changed files with 85 additions and 17 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>it.ernytech</groupId> <groupId>it.ernytech</groupId>
<artifactId>tdlib</artifactId> <artifactId>tdlib</artifactId>
<version>2.162.0</version> <version>2.163.0</version>
<name>JTDLib</name> <name>JTDLib</name>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -5394,11 +5394,18 @@ public class TdApi {
} }
public static class InputMessageDice extends InputMessageContent { public static class InputMessageDice extends InputMessageContent {
public String emoji;
public boolean clearDraft;
public InputMessageDice() { public InputMessageDice() {
} }
public static final int CONSTRUCTOR = -68931100; public InputMessageDice(String emoji, boolean clearDraft) {
this.emoji = emoji;
this.clearDraft = clearDraft;
}
public static final int CONSTRUCTOR = 841574313;
@Override @Override
public int getConstructor() { public int getConstructor() {
@ -5469,20 +5476,24 @@ public class TdApi {
public String[] options; public String[] options;
public boolean isAnonymous; public boolean isAnonymous;
public PollType type; public PollType type;
public int openPeriod;
public int closeDate;
public boolean isClosed; public boolean isClosed;
public InputMessagePoll() { public InputMessagePoll() {
} }
public InputMessagePoll(String question, String[] options, boolean isAnonymous, PollType type, boolean isClosed) { public InputMessagePoll(String question, String[] options, boolean isAnonymous, PollType type, int openPeriod, int closeDate, boolean isClosed) {
this.question = question; this.question = question;
this.options = options; this.options = options;
this.isAnonymous = isAnonymous; this.isAnonymous = isAnonymous;
this.type = type; this.type = type;
this.openPeriod = openPeriod;
this.closeDate = closeDate;
this.isClosed = isClosed; this.isClosed = isClosed;
} }
public static final int CONSTRUCTOR = 743307780; public static final int CONSTRUCTOR = 2054629900;
@Override @Override
public int getConstructor() { public int getConstructor() {
@ -7058,16 +7069,24 @@ public class TdApi {
} }
public static class MessageDice extends MessageContent { public static class MessageDice extends MessageContent {
public Sticker initialStateSticker;
public Sticker finalStateSticker;
public String emoji;
public int value; public int value;
public int successAnimationFrameNumber;
public MessageDice() { public MessageDice() {
} }
public MessageDice(int value) { public MessageDice(Sticker initialStateSticker, Sticker finalStateSticker, String emoji, int value, int successAnimationFrameNumber) {
this.initialStateSticker = initialStateSticker;
this.finalStateSticker = finalStateSticker;
this.emoji = emoji;
this.value = value; this.value = value;
this.successAnimationFrameNumber = successAnimationFrameNumber;
} }
public static final int CONSTRUCTOR = -1321769491; public static final int CONSTRUCTOR = -1350654849;
@Override @Override
public int getConstructor() { public int getConstructor() {
@ -9966,12 +9985,14 @@ public class TdApi {
public int[] recentVoterUserIds; public int[] recentVoterUserIds;
public boolean isAnonymous; public boolean isAnonymous;
public PollType type; public PollType type;
public int openPeriod;
public int closeDate;
public boolean isClosed; public boolean isClosed;
public Poll() { public Poll() {
} }
public Poll(long id, String question, PollOption[] options, int totalVoterCount, int[] recentVoterUserIds, boolean isAnonymous, PollType type, boolean isClosed) { public Poll(long id, String question, PollOption[] options, int totalVoterCount, int[] recentVoterUserIds, boolean isAnonymous, PollType type, int openPeriod, int closeDate, boolean isClosed) {
this.id = id; this.id = id;
this.question = question; this.question = question;
this.options = options; this.options = options;
@ -9979,10 +10000,12 @@ public class TdApi {
this.recentVoterUserIds = recentVoterUserIds; this.recentVoterUserIds = recentVoterUserIds;
this.isAnonymous = isAnonymous; this.isAnonymous = isAnonymous;
this.type = type; this.type = type;
this.openPeriod = openPeriod;
this.closeDate = closeDate;
this.isClosed = isClosed; this.isClosed = isClosed;
} }
public static final int CONSTRUCTOR = -964385924; public static final int CONSTRUCTOR = 163256789;
@Override @Override
public int getConstructor() { public int getConstructor() {
@ -10039,15 +10062,17 @@ public class TdApi {
public static class PollTypeQuiz extends PollType { public static class PollTypeQuiz extends PollType {
public int correctOptionId; public int correctOptionId;
public FormattedText explanation;
public PollTypeQuiz() { public PollTypeQuiz() {
} }
public PollTypeQuiz(int correctOptionId) { public PollTypeQuiz(int correctOptionId, FormattedText explanation) {
this.correctOptionId = correctOptionId; this.correctOptionId = correctOptionId;
this.explanation = explanation;
} }
public static final int CONSTRUCTOR = -354461930; public static final int CONSTRUCTOR = 657013913;
@Override @Override
public int getConstructor() { public int getConstructor() {
@ -14112,6 +14137,24 @@ public class TdApi {
} }
} }
public static class UpdateStickerSet extends Update {
public StickerSet stickerSet;
public UpdateStickerSet() {
}
public UpdateStickerSet(StickerSet stickerSet) {
this.stickerSet = stickerSet;
}
public static final int CONSTRUCTOR = 1879268812;
@Override
public int getConstructor() {
return CONSTRUCTOR;
}
}
public static class UpdateInstalledStickerSets extends Update { public static class UpdateInstalledStickerSets extends Update {
public boolean isMasks; public boolean isMasks;
public long[] stickerSetIds; public long[] stickerSetIds;
@ -14304,6 +14347,24 @@ public class TdApi {
} }
} }
public static class UpdateDiceEmojis extends Update {
public String[] emojis;
public UpdateDiceEmojis() {
}
public UpdateDiceEmojis(String[] emojis) {
this.emojis = emojis;
}
public static final int CONSTRUCTOR = -1069066940;
@Override
public int getConstructor() {
return CONSTRUCTOR;
}
}
public static class UpdateNewInlineQuery extends Update { public static class UpdateNewInlineQuery extends Update {
public long id; public long id;
public int senderUserId; public int senderUserId;
@ -19113,11 +19174,18 @@ public class TdApi {
} }
public static class GetTrendingStickerSets extends Function { public static class GetTrendingStickerSets extends Function {
public int offset;
public int limit;
public GetTrendingStickerSets() { public GetTrendingStickerSets() {
} }
public static final int CONSTRUCTOR = -1729129957; public GetTrendingStickerSets(int offset, int limit) {
this.offset = offset;
this.limit = limit;
}
public static final int CONSTRUCTOR = -1494581948;
@Override @Override
public int getConstructor() { public int getConstructor() {
@ -20312,18 +20380,18 @@ public class TdApi {
public static class SearchEmojis extends Function { public static class SearchEmojis extends Function {
public String text; public String text;
public boolean exactMatch; public boolean exactMatch;
public String inputLanguageCode; public String[] inputLanguageCodes;
public SearchEmojis() { public SearchEmojis() {
} }
public SearchEmojis(String text, boolean exactMatch, String inputLanguageCode) { public SearchEmojis(String text, boolean exactMatch, String[] inputLanguageCodes) {
this.text = text; this.text = text;
this.exactMatch = exactMatch; this.exactMatch = exactMatch;
this.inputLanguageCode = inputLanguageCode; this.inputLanguageCodes = inputLanguageCodes;
} }
public static final int CONSTRUCTOR = 453292808; public static final int CONSTRUCTOR = 398837927;
@Override @Override
public int getConstructor() { public int getConstructor() {

@ -1 +1 @@
Subproject commit c6b4f5a58d066877ffa4e47434e86e1b7a79fdbb Subproject commit 3bc0461de9884cb46b574fc75c4add57ec3fba21