How to split the interface passed to the method – Telegram API
I use this library tucnak/telebot to build a telegram bot. Method b.Handle() have two parameters such as Handle(endpoint interface{}, handler interface{})`. Here is the code i use for a starter func main() { b, err := tb.NewBot(tb.Settings{ Token: "TOKEN_HERE", Poller:…