Class ChatId


  • public class ChatId
    extends java.lang.Object
    • Method Detail

      • create

        public static ChatId create​(java.lang.String id)
        Create a new ChatId instance.
        Parameters:
        id - Chat id.
        Returns:
        new ChatId instance.
      • createWithUserId

        public static ChatId createWithUserId​(UserId userId)
        Create a new ChatId instance with user id.
        Parameters:
        userId - User id.
        Returns:
        new ChatId instance.
      • getId

        public java.lang.String getId()
      • getUserId

        public UserId getUserId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object