-
Notifications
You must be signed in to change notification settings - Fork 0
/
Send.java
87 lines (67 loc) · 2.15 KB
/
Send.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package greachconf.bot;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.micronaut.bots.core.ChatBotMessageSend;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class Send implements ChatBotMessageSend {
private final String method;
/**
* Unique identifier for the target chat or username of the target channel (in the format @channelusername)
* Integer or String
*/
@JsonProperty("chat_id")
@NotNull
@Nonnull
private Object chatId;
/**
* Sends the message silently. Users will receive a notification with no sound.
*/
@Nullable
@JsonProperty("disable_notification")
private Boolean disableNotification;
/**
* If the message is a reply, ID of the original message.
*/
@Nullable
@JsonProperty("reply_to_message_id")
private String replyToMessageId;
/**
* 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.
*/
@Nullable
@JsonProperty("reply_markup")
private String replyMarkup;
public Send(String method) {
this.method = method;
}
public Object getChatId() {
return chatId;
}
public void setChatId(Object chatId) {
this.chatId = chatId;
}
@Nullable
public Boolean getDisableNotification() {
return disableNotification;
}
public void setDisableNotification(@Nullable Boolean disableNotification) {
this.disableNotification = disableNotification;
}
@Nullable
public String getReplyToMessageId() {
return replyToMessageId;
}
public void setReplyToMessageId(@Nullable String replyToMessageId) {
this.replyToMessageId = replyToMessageId;
}
@Nullable
public String getReplyMarkup() {
return replyMarkup;
}
public void setReplyMarkup(@Nullable String replyMarkup) {
this.replyMarkup = replyMarkup;
}
}