Python framework for Telegram Bot API

telepot - Python framework for Telegram Bot API

Introduction »

Reference »

Examples »

Recent changes

10.4 (2016-12-25)

  • Async Bot's scheduler method event_at() was modified to use unix timestamp

10.3 (2016-12-16)

  • Added parameter max_connections and allowed_updates to method setWebhook()
  • Added parameter allowed_updates to method getUpdates() and message_loop()
  • Added method deleteWebhook()

10.2 (2016-11-29)

  • Recognized channel_post and edited_channel_post in Update object
  • Removed flavor edited_chat. Keep 4 flavors: chat, callback_query, inline_query, and chosen_inline_result. When dealing with chat messages, it is up to the user to differentiate between various kinds, e.g. new/edited, private/group/supergroup/channel, etc.
  • setGameScore() has parameter force and disable_edit_message
  • answerCallbackQuery() has parameter cache_time
  • Message namedtuple has field forward_from_message_id
  • Renamed ReplyKeyboardHide to ReplyKeyboardRemove

10.1 (2016-10-25)

  • Used the presence of chat_instance to recognize the flavor callback_query

10.0 (2016-10-19)

  • Implemented Gaming Platform stuff
  • Added game-related methods, e.g. sendGame, setGameScore, etc.
  • Added game-related namedtuple, e.g. InlineQueryResultGame, etc.
  • telepot.glance() may return content type game
  • Added method getWebhookInfo
  • Added new parameters to some methods, e.g. caption for sendAudio(), etc.
  • Handled EventNotFound in IdleEventCoordinator.refresh()