Skip to content

botapi 2.3 #468

@tsnoam

Description

@tsnoam

Bot API 2.3 was announced on 2016-11-21, need to support new changes.

  • New fields channel_post and edited_channel_post for Update.
    • It is not possible to unitest it with the current framework. Tested by hand.
  • New force parameter in setGameScore.
    • Unitests.
  • Changed behaviour: messages with high scores will be update with new high scores by default. (documentation fix)
  • Use (new) disable_edit_message in setGameScore to disable the above new behaviour.
    • Unitests.
  • The edit_message parameter from setGameScore is no longer in use. For backward compatibility, it will be taken into account for a while, unless disable_edit_message is passed explicitly.
    • Need deprecation warning and maybe some sanity checks on input.
    • Unitests.
  • New field forward_from_message_id for Message.
    • Unitests.
  • New parameter cache_time for answerCallbackQuery.
    • It is not possible to unitest it with the current framework. Tested by hand.
  • Renamed hide_keyboard to remove_keyboard in ReplyKeyboardRemove for clarity. hide_keyboard will still work for a while for backward compatibility.
    • Need deprecation warning on the old ReplyKeyboardHide.
    • Unitests.
  • Need to "remember" for future releases to remove the deprecated code. (ReplyKeyboardHide, edit_message in setGameScore)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions