TelegraML icon indicating copy to clipboard operation
TelegraML copied to clipboard

Improve safety for `inline_query_result`

Open nv-vn opened this issue 8 years ago • 0 comments

Currently, we allow the reply_markup fields to be any kind of ReplyMarkup.reply_markup, despite the fact that the API only allows InlineKeyboardMarkup here.

3 solutions:

  • Well-documented
  • Throws exception with incorrect types
  • Refactored ReplyMarkup allows for the constraint

nv-vn avatar May 08 '16 20:05 nv-vn