Skip to content

Bot API 5.0 #390

@Syfaro

Description

@Syfaro

New methods

  • logOut
  • close
  • unpinAllChatMessages
  • copyMessage

Added parameters

  • ip_address in setWebhook
  • drop_pending_updates in setWebhook, deleteWebhook
  • only_if_banned in unbanChatMember
  • disable_content_type_detection in sendDocument
  • message_id in unpinChatMessage
  • heading in sendLocation, editMessageLiveLocation
  • proximity_alert_distance in sendLocation, editMessageLiveLocation
  • horizontal_accuracy in sendLocation, editMessageLiveLocation
  • is_anonymous in promoteChatMember
  • entities or caption_entities in sendMessage, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendVoice, sendPoll, editMessageText, editMessageCaption
  • google_place_id, google_place_type in sendVenue
  • allow_sending_without_reply in sendMessage, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendSticker, sendVideoNote, sendVoice, sendLocation, sendVenue, sendContact, sendPoll, sendDice, sendInvoice, sendGame, sendMediaGroup

Added fields

  • ip_address in WebhookInfo
  • bio, linked_chat_id, location in Chat
  • file_name in Audio, Video
  • disable_content_type_detection in inputMediaDocument
  • live_period in Location
  • heading in Location, InlineQueryResultLocation, InputLocationMessageContent
  • proximity_alert_distance in Location, InlineQueryResultLocation, InputLocationMessageContent
  • proximity_alert_triggered in Message
  • horizontal_accuracy in Location, InlineQueryResultLocation, InputLocationMessageContent
  • sender_chat in Message
  • is_anonymous in ChatMember
  • entities or caption_entities in InputMedia, InlineQueryResult, InputTextMessageContent types
  • google_place_id, google_place_type in Venue, InlineQueryResultVenue, InputVenueMessageContent

Added types

  • ProximityAlertTriggered

Miscellaneous

  • Support audio and document albums with sendMediaGroup
  • Football, slot machine emoji in sendDice

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions