org.telegram.bot.handlers.interfaces.IUpdatesHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegramapi Show documentation
Show all versions of telegramapi Show documentation
Java library to create Telegram Clients
package org.telegram.bot.handlers.interfaces;
import org.jetbrains.annotations.NotNull;
import org.telegram.api.chat.TLAbsChat;
import org.telegram.api.message.TLAbsMessage;
import org.telegram.api.update.TLAbsUpdate;
import org.telegram.api.updates.TLUpdatesState;
import org.telegram.api.updates.difference.TLAbsDifference;
import org.telegram.api.user.TLAbsUser;
import org.telegram.bot.kernel.UpdateWrapper;
import java.util.List;
/**
* @author Ruben Bermudez
* @version 1.0
* @brief Updates handler interface
* @date 21 of March of 2016
*/
public interface IUpdatesHandler {
void getDifferences();
void onTLAbsDifference(@NotNull TLAbsDifference absDifference);
void onTLChannelDifferences(List users, List messages, List newUpdates, List chats);
void updateStateModification(TLUpdatesState state);
boolean checkSeq(int seq, int seqStart, int date);
void processUpdate(UpdateWrapper updateWrapper);
void onTLUpdatesTooLong();
void onUsers(List users);
void onChats(List chats);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy