public class TelegramClient extends Object implements Closeable
| Constructor and Description |
|---|
TelegramClient() |
TelegramClient(String proxyHostname,
int proxyPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
sendMessageToMultipleTelegramChats(String token,
Long[] chatIDs,
String msg,
boolean useMarkdown,
boolean disablePreview) |
void |
sendMessageToSingleTelegramChat(String token,
long chatID,
String msg) |
void |
sendMessageToSingleTelegramChat(String token,
long chatID,
String msg,
boolean useMarkdown,
boolean disablePreview) |
void |
sendReplyMessage(String token,
Long chatID,
long replyTo,
String msg) |
void |
sendReplyMessage(String token,
String chatID,
long replyTo,
String msg) |
void |
sendReplyMessage(String token,
String chatID,
long replyTo,
String msg,
boolean useMarkdown,
boolean disablePreview) |
public TelegramClient()
public TelegramClient(String proxyHostname, int proxyPort)
public void sendMessageToMultipleTelegramChats(String token, Long[] chatIDs, String msg, boolean useMarkdown, boolean disablePreview)
public void sendMessageToSingleTelegramChat(String token, long chatID, String msg)
public void sendMessageToSingleTelegramChat(String token, long chatID, String msg, boolean useMarkdown, boolean disablePreview)
public void sendReplyMessage(String token, String chatID, long replyTo, String msg)
public void sendReplyMessage(String token, String chatID, long replyTo, String msg, boolean useMarkdown, boolean disablePreview)
public void close()
throws IOException
Copyright © 2015 iSuper.org. All Rights Reserved.