go-telegram / bot

Telegram Bot API Go framework
MIT License
507 stars 46 forks source link

Store GetMe Result as Bot struct variable #35

Closed xtianpu closed 1 year ago

xtianpu commented 1 year ago

Hello! Can I request to store GetMe result after every GetMe call to Bot struct Variable?

I think this is a good idea so once GetMe is called, we can get the result like bot.Id or bot.Username rather than creating another variable to store GetMe result.

negasus commented 1 year ago

Calling GetMe on init is optional behavior. The user can skip it with the "With SkipGaMe()" option. I think we should leave this method call to collect data to the user's choice.

xtianpu commented 1 year ago

I got it, thanks!