You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to suggest adding a new method GetReplyMarkup() to the MaybeInaccessibleMessage interface. This method will allow access to the ReplyMarkup property in the update.CallbackQuery.Message.ReplyMarkup structure. The proposed method will return data of type any to retrieve the ReplyMarkup information.
Thank you for your response. I understand your concern about the potential absence of ReplyMarkup in some types of messages. However, my suggestion to add the GetReplyMarkup() method is to make access to it easier in cases where ReplyMarkup is present. We can handle this issue by returning a null value or using an optional type (such as a pointer) for cases where ReplyMarkup is not available. This change can provide developers with more flexibility to access ReplyMarkup data when needed.
Furthermore, in most cases, the ReplyMarkup field is present in events of type callback_query :)
Hello,
I would like to suggest adding a new method GetReplyMarkup() to the MaybeInaccessibleMessage interface. This method will allow access to the ReplyMarkup property in the
update.CallbackQuery.Message.ReplyMarkup
structure. The proposed method will return data of type any to retrieve the ReplyMarkup information.Objective:
https://github.com/mymmrac/telego/blob/f0e873e1ac8c0bdf50280d3ed972cabfb4473df1/types.go#L925C1-L932C2
Proposed Changes:
Your consideration and feedback on this proposed enhancement are appreciated. Thank you.
The text was updated successfully, but these errors were encountered: