We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello guys, I want get supergroup info, but I don't know how to get the supergroup_id form *tdlib.Chat
My develop language is: Golang
The text was updated successfully, but these errors were encountered:
share how to get supergroup_id
import "github.com/fatih/structs" // Code chat, err := client.GetChat(chatID) if err != nil { panic(err) } if chat.Type.GetChatTypeEnum() == tdlib.ChatTypeSupergroupType { Map := structs.Map(chat) Type := Map["Type"].(map[string]interface {}) SupergroupID := Type["SupergroupID"].(int32) IsChannel := Type["IsChannel"].(bool) log.Printf("%s: %v, %d", chat.Title, IsChannel, SupergroupID) group, err := client.GetSupergroup(SupergroupID) if err != nil { panic(err) } log.Print(group.Username) }
Sorry, something went wrong.
No branches or pull requests
Hello guys, I want get supergroup info, but I don't know how to get the supergroup_id form *tdlib.Chat
My develop language is: Golang
The text was updated successfully, but these errors were encountered: