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

io.github.biezhi.tgbot.api.Message Maven / Gradle / Ivy

The newest version!
package io.github.biezhi.tgbot.api;

import lombok.Data;

import java.io.Serializable;
import java.util.Arrays;

@Data
public class Message implements Serializable {
    private final static long serialVersionUID = 0L;

    private Integer           message_id;
    private User              from;
    private Integer           date;
    private Chat              chat;
    private User              forward_from;
    private Chat              forward_from_chat;
    private Integer           forward_from_message_id;
    private String            forward_signature;
    private Integer           forward_date;
    private Message           reply_to_message;
    private Integer           edit_date;
    private String            author_signature;
    private String            text;
    private MessageEntity[]   entities;
    private Audio             audio;
    private Document          document;
    private Game              game;
    private PhotoSize[]       photo;
    private Sticker           sticker;
    private Video             video;
    private Voice             voice;
    private VideoNote         video_note;
    private User[]            new_chat_members;
    private String            caption;
    private Contact           contact;
    private Location          location;
    private Venue             venue;
    private User              new_chat_member;
    private User              left_chat_member;
    private String            new_chat_title;
    private PhotoSize[]       new_chat_photo;
    private Boolean           delete_chat_photo;
    private Boolean           group_chat_created;
    private Boolean           supergroup_chat_created;
    private Boolean           channel_chat_created;
    private Long              migrate_to_chat_id;
    private Long              migrate_from_chat_id;
    private Message           pinned_message;
    private Invoice           invoice;
    private SuccessfulPayment successful_payment;

    public String chatId(){
        return chat.getId().toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy