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

org.telegram.telegrambots.api.objects.Chat Maven / Gradle / Ivy

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

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * @author Lev Nadeinsky
 * @author Ruben Bermudez
 * @date	2016-08-09
 */
@Data
@EqualsAndHashCode(callSuper=true)
@ToString(callSuper=true)
public class Chat extends ApiObject{
    /**
     * Unique identifier for this chat.
     * This number may be greater than 32 bits and some programming languages may
     * have difficulty/silent defects in interpreting it. But it smaller than 52 bits,
     * so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
     */
    Long id; ///< Unique identifier for this chat, not exciding 1e13 by absolute value
    String type; ///< Type of the chat, one of “private”, “group” or “channel”
    String title; ///< Optional. Title of the chat, only for channels and group chat
    String firstName; ///< Optional. Username of the chat, only for chats and channels if available
    String lastName; ///< Optional. Interlocutor's first name for chats
    String userName; ///< Optional. Interlocutor's last name for chats

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy