Closed svscorp closed 3 weeks ago
Remember that the library is autogenerated from the docs. So if a field is a pointer, it's because it is optional, and may be empty.
CallbackQueries HAVE to be initiated by a user; someone pressed a button; so From
cannot be nil. See: https://core.telegram.org/bots/api#callbackquery
in gen_types.go
The struct Message has
From *User
json:"from,omitempty"``However the struct CallbackQuery has
From User
json:"from"``Is there a reason to not have "From" as a pointer type in CallbackQuery (and other than Message queries)?