rubenlagus / TelegramApi

Java library to create Telegram Clients
MIT License
296 stars 108 forks source link

Chat#getId() should return long #88

Closed chjrco closed 3 years ago

chjrco commented 3 years ago

kernelComm.sendGroupMessage(new Chat() { @Override public int getId() { return -1001235402643; }

        @Override
        public Long getAccessHash() {
            return null;
        }

        @Override
        public boolean isChannel() {
            return false;
        }
    }, "Test");

-1001235402643 is too big as an integer and should be a long, but the API doesn't allow this. any help?