Telebot is a Telegram bot framework in Go.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
hlee4real opened this issue 4 months ago · comments
I want to get username by user id
Here are what I'm trying to use:
b.Handle("/check", func(c tele.Context) error { fmt.Println(c.Sender().ID) u := &tele.User{ID: 123} fmt.Println(u.Username) return nil }) ```