All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.telegram.telegrambots.meta.api.objects.MaybeInaccessibleMessage Maven / Gradle / Ivy

There is a newer version: 7.10.0
Show newest version
package org.telegram.telegrambots.meta.api.objects;

import org.telegram.telegrambots.meta.api.interfaces.BotApiObject;

/**
 * @author Ruben Bermudez
 * @version 7.0
 * This object describes a message that can be inaccessible to the bot.
 */
public interface MaybeInaccessibleMessage extends BotApiObject {
    String DATE_FIELD = "date";

    default boolean isUserMessage() {
        return true;
    }

    default boolean isGroupMessage() {
        return false;
    }
    default boolean isSuperGroupMessage() {
        return false;
    }

    Long getChatId();

    Integer getMessageId();

    Integer getDate();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy