telegram-s / telegram-api-old

Telegram Api library for java
MIT License
138 stars 64 forks source link

Problem in chat_id #45

Open mram3d opened 8 years ago

mram3d commented 8 years ago

Hi thanks in advanced for nice api you have designed. I wanna use TLRequestMessagesAddChatUser method to add user to chat.the chat_id type is int but the chat id that i have is too long for int data type and it s long (chat_id: -1001027811592). what do i have to do for this problem? do i have to change api layer ? if the answer is yes , where can i find that api layer ? thanks.

andmarkelov commented 7 years ago

@mram3d According the tg documentation this field cannot be long anyways. The real id of your group is 1027811592 but -100 is just prefix for channels or supergroups. Try to operate it as with channels.