Closed hlee4real closed 1 month ago
As far as I know, you can't get username by user id. You should store username with user id somewhere if you want to get username by user id.
chat, err := b.ChatByID(893817263) if err != nil { fmt.Println(err) } fmt.Print("username:",chat.Username)
I want to get username by user id
Here are what I'm trying to use: