public interface IKernelComm extends NotificationsService.NotificationObserver
| Modifier and Type | Method and Description |
|---|---|
<T extends TLObject> |
doRpcCallAsync(TLMethod<T> method,
TelegramFunctionCallback<T> callback) |
void |
doRpcCallAsyncNoReturn(TLMethod<TLObject> method) |
<T extends TLObject> |
doRpcCallSync(TLMethod<T> method) |
<T extends TLObject> |
doRpcCallSyncNoAuth(TLMethod<T> method) |
TelegramApi |
getApi() |
int |
getCurrentUserId() |
Downloader |
getDownloader() |
Uploader |
getUploader() |
boolean |
init() |
void |
performMarkAsRead(@NotNull IUser user,
int messageId) |
void |
performMarkGroupAsRead(@NotNull Chat group,
int messageId) |
void |
sendChannelMessage(@NotNull Chat channel,
@NotNull String message,
boolean asAdmin) |
void |
sendChannelMessageWithMarkdown(@NotNull Chat channel,
@NotNull String message,
boolean asAdmin) |
void |
sendChannelMessageWithoutPreview(@NotNull Chat channel,
@NotNull String message,
boolean asAdmin) |
void |
sendGroupMedia(@NotNull Chat group,
@NotNull TLAbsInputMedia media) |
void |
sendGroupMessage(@NotNull Chat group,
@NotNull String message) |
void |
sendGroupMessageWithMarkdown(@NotNull Chat group,
@NotNull String message) |
void |
sendGroupMessageWithoutPreview(@NotNull Chat group,
@NotNull String message) |
void |
sendMedia(@NotNull IUser user,
@NotNull TLAbsInputMedia media) |
void |
sendMessage(@NotNull IUser user,
@NotNull String message) |
void |
sendMessage(@NotNull IUser user,
@NotNull String message,
@NotNull Boolean hasWebPreview) |
void |
sendMessageAsReply(@NotNull IUser user,
@NotNull String message,
@NotNull Integer replayToMsg) |
void |
sendMessageAsReplyAsync(@NotNull IUser user,
@NotNull String message,
@NotNull Integer replayToMsg,
TelegramFunctionCallback<TLAbsUpdates> callback) |
void |
sendMessageAsync(@NotNull IUser user,
@NotNull String message,
@NotNull Boolean hasWebPreview,
@Nullable TelegramFunctionCallback<TLAbsUpdates> callback) |
void |
sendMessageAsync(@NotNull IUser user,
@NotNull String message,
TelegramFunctionCallback<TLAbsUpdates> callback) |
void |
sendMessageWithMarkdown(@NotNull IUser user,
@NotNull String message) |
void |
sendMessageWithoutPreview(@NotNull IUser user,
@NotNull String message) |
void |
sendMessageWithoutPreviewAsync(@NotNull IUser user,
@NotNull String message,
@Nullable TelegramFunctionCallback<TLAbsUpdates> callback) |
void |
sendUploadedGroupSticker(@NotNull String title,
@NotNull String mimetype,
@NotNull Chat group,
long idFile,
int parts) |
void |
sendUploadedSticker(@NotNull String title,
@NotNull String mimetype,
@NotNull IUser user,
long idFile,
int parts) |
void |
setMainHandler(@NotNull MainHandler mainHandler) |
onNotificationReceivedboolean init()
void setMainHandler(@NotNull
@NotNull MainHandler mainHandler)
<T extends TLObject> T doRpcCallSync(TLMethod<T> method) throws ExecutionException, RpcException
ExecutionExceptionRpcException<T extends TLObject> T doRpcCallSyncNoAuth(TLMethod<T> method) throws ExecutionException, RpcException
ExecutionExceptionRpcException<T extends TLObject> void doRpcCallAsync(TLMethod<T> method, TelegramFunctionCallback<T> callback)
void sendMessage(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message)
throws RpcException
RpcExceptionvoid sendMessageWithMarkdown(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message)
throws RpcException
RpcExceptionvoid sendMessage(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message,
@NotNull
@NotNull Boolean hasWebPreview)
throws RpcException
RpcExceptionvoid sendMessageAsync(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message,
@NotNull
@NotNull Boolean hasWebPreview,
@Nullable
@Nullable TelegramFunctionCallback<TLAbsUpdates> callback)
void sendMessageAsync(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message,
TelegramFunctionCallback<TLAbsUpdates> callback)
void sendMessageAsReply(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message,
@NotNull
@NotNull Integer replayToMsg)
throws RpcException
RpcExceptionvoid sendMessageAsReplyAsync(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message,
@NotNull
@NotNull Integer replayToMsg,
TelegramFunctionCallback<TLAbsUpdates> callback)
void sendMessageWithoutPreview(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message)
throws RpcException
RpcExceptionvoid sendMessageWithoutPreviewAsync(@NotNull
@NotNull IUser user,
@NotNull
@NotNull String message,
@Nullable
@Nullable TelegramFunctionCallback<TLAbsUpdates> callback)
void sendGroupMessage(@NotNull
@NotNull Chat group,
@NotNull
@NotNull String message)
throws RpcException
RpcExceptionvoid sendGroupMessageWithMarkdown(@NotNull
@NotNull Chat group,
@NotNull
@NotNull String message)
throws RpcException
RpcExceptionvoid sendGroupMessageWithoutPreview(@NotNull
@NotNull Chat group,
@NotNull
@NotNull String message)
throws RpcException
RpcExceptionvoid sendChannelMessage(@NotNull
@NotNull Chat channel,
@NotNull
@NotNull String message,
boolean asAdmin)
throws RpcException
RpcExceptionvoid sendChannelMessageWithMarkdown(@NotNull
@NotNull Chat channel,
@NotNull
@NotNull String message,
boolean asAdmin)
throws RpcException
RpcExceptionvoid sendChannelMessageWithoutPreview(@NotNull
@NotNull Chat channel,
@NotNull
@NotNull String message,
boolean asAdmin)
throws RpcException
RpcExceptionvoid sendMedia(@NotNull
@NotNull IUser user,
@NotNull
@NotNull TLAbsInputMedia media)
throws RpcException
RpcExceptionvoid sendGroupMedia(@NotNull
@NotNull Chat group,
@NotNull
@NotNull TLAbsInputMedia media)
throws RpcException
RpcExceptionvoid sendUploadedSticker(@NotNull
@NotNull String title,
@NotNull
@NotNull String mimetype,
@NotNull
@NotNull IUser user,
long idFile,
int parts)
throws RpcException
RpcExceptionvoid sendUploadedGroupSticker(@NotNull
@NotNull String title,
@NotNull
@NotNull String mimetype,
@NotNull
@NotNull Chat group,
long idFile,
int parts)
throws RpcException
RpcExceptionvoid performMarkAsRead(@NotNull
@NotNull IUser user,
int messageId)
throws RpcException
RpcExceptionvoid performMarkGroupAsRead(@NotNull
@NotNull Chat group,
int messageId)
throws RpcException
RpcExceptionint getCurrentUserId()
Downloader getDownloader()
Uploader getUploader()
TelegramApi getApi()
Copyright © 2016. All rights reserved.