Arman92 / go-tdlib

Golang Telegram TdLib JSON bindings
GNU General Public License v3.0
436 stars 100 forks source link

GetSupergroup accepts only int32 but GetChat().ID returns int64 #30

Open simonfrey opened 5 years ago

simonfrey commented 5 years ago

I want to get information about a superuser group. I use the chat example and try to access the superuser info with GetSupergroup().

The GetSupergroup() function accepts a int32 but the chat.ID returned by GetChat() is a int64.

Expected: They both should be of the same type

Lifelong-Study commented 4 years ago

I have same problem, how to get groupsuper_id in a *tdlib.Chat

er-azh commented 3 years ago

the code in this library is auto-generated from tdlib's td_api.tl and as seen in tdlib's docs getSupergroup accepts int32 (link)

also the chat's id, it's type is int53 (link) which has no direct equivalent in go. so this library uses int64 instead.

I think you should ask this on tdlib/td