Constructor and Description |
---|
TelegramMessage(String botToken,
String chatIds,
String extraMessage)
Creates a new Telegram message based on the given parameters
|
Modifier and Type | Method and Description |
---|---|
void |
highPriority()
Indicates that this is a high priority message
|
void |
lowPriority()
Indicates that this is a low priority message
|
void |
normalPriority()
Indicates that this is a normal priority message
|
void |
send()
Sends the message
|
void |
setContent(String content)
Sets the content of this message
|
void |
setTitle(String title)
Sets the title for this message
|
void |
setUrl(String url,
String title)
Sets the url for this message
|
public void setContent(String content)
Message
setContent
in interface Message
content
- the content to setpublic void setTitle(String title)
Message
public void setUrl(String url, String title)
Message
public void highPriority()
Message
highPriority
in interface Message
public void normalPriority()
Message
normalPriority
in interface Message
public void lowPriority()
Message
lowPriority
in interface Message
Copyright © 2016–2017. All rights reserved.