Bot API 3
.6
(February 13, 2018)- Added
connected_website
attribute to theUpdate
class.
- Added
- Added
parse_mode
attribute all stuff that has captions, in the bot functions and the sendable inline objects. - Also added
supports_streaming
toBot.send_video(...)
andsendable.inputmedia.InputMediaVideo
.
- Added
username
andid
property to theBot
class. This is basically the implementation used in Teleflask already, but calling itid
and notuser_id
as it is a bot, not a user. - Added
__str__
class, so thatstr(bot)
displays asBot(username="luckybot", id=108721382)
- Fixed
InputFileFromDisk
. - Usage of
InputFile
withfile_blob
is now deprecated. UseInputFileFromBlob
instead.
Updated official API changes of
- Removed doubled
WebhookInfo
classes at two different places. They are now the same. - Fixed importing
Message
inpytgbot.api_types.receivable.peer.Chat
.
- Updated Official API changes of
Bot API 3
.3
(August 23, 2017)- Added new fields:
peer.Chat.pinned_message
peer.User.is_bot
updates.Message.forward_signature
updates.Message.author_signature
- Removed fields:
updates.Message.new_chat_member
- but
updates.Message.new_chat_members
still exists
- but
- Added new fields:
- Updated Official API changes of
Bot API 3
.2
(July 21, 2017)- Stickers'n'stuff
- fixed
send_video_note
,send_video
,send_voice
,set_chat_photo
ofpytgbot.bot.Bot
.
- Updated Official API changes of
Bot API 3
.1
(June 30, 2017)- Added new functions:
pytgbot.bot.Bot.restrict_chat_member
pytgbot.bot.Bot.promote_chat_member
pytgbot.bot.Bot.export_chat_invite_link
pytgbot.bot.Bot.set_chat_photo
pytgbot.bot.Bot.delete_chat_photo
pytgbot.bot.Bot.set_chat_title
pytgbot.bot.Bot.set_chat_description
pytgbot.bot.Bot.pin_chat_message
pytgbot.bot.Bot.unpin_chat_message
- Updated
pytgbot.bot.Bot.kick_chat_member
function, addeduntil_date
parameter. - Updated
pytgbot.bot.Bot.send_invoice
function,description
parameter now optional. - Updated parameter
chat_id
in game related methods to no longer allows string, so no more "@username".pytgbot.bot.Bot.send_game
pytgbot.bot.Bot.set_game_score
pytgbot.bot.Bot.get_game_high_scores
- Added
pytgbot.api_types.receivable.media.ChatPhoto
. - Updated
pytgbot.api_types.receivable.peer.Chat
to include the new fields:photo
description
invite_link
- Updated
api_types.receivable.peer.ChatMember
:status
field can now also be"restricted"
- Added fields:
until_date
can_be_edited
can_change_info
can_post_messages
can_edit_messages
can_delete_messages
can_invite_users
can_restrict_members
can_pin_messages
can_promote_members
can_send_messages
can_send_media_messages
can_send_other_messages
can_add_web_page_previews
- Removed documentation saying
pytgbot.api_types.sendable.inline.InlineQueryResultCachedDocument
was limited to sending only pdf-files and zip archives.
- Added new functions:
- Also now storing the incoming (decoded json) data in the
_raw
field of the object.
- Updated Official API changes of
Bot API 3
.0
(May 18, 2017)- Added
pytgbot.api_types.receivable.VideoNote
. - Updated
pytgbot.api_types.receivable.peer.User
to include the newlanguage_code
field. - Updated
pytgbot.api_types.receivable.updates.Update
to include the newshipping_query
andpre_checkout_query
fields. - Updated
pytgbot.api_types.receivable.updates.Message
to include the newvideo_note
,new_chat_members
,invoice
andsuccessful_payment
fields. - Added
pytgbot.api_types.receivable.updates.WebhookInfo
- Updated
pytgbot.api_types.sendable.inline.InlineQueryResultGif
to include the newgif_duration
field. - Updated
pytgbot.api_types.sendable.inline.InlineQueryResultMpeg4Gif
to include the newmpeg4_duration
field. - Added
pytgbot.api_types.sendable.payments.LabeledPrice
- Added
pytgbot.api_types.sendable.payments.ShippingOption
- Updated
pytgbot.api_types.sendable.reply_markup.InlineKeyboardButton
to include the newpay
field. - Added
pytgbot.bot.Bot.delete_webhook
function. - Added
pytgbot.bot.Bot.send_video_note
function. - Documented that
pytgbot.bot.Bot.unban_chat_member
now works with channels too. - Added
pytgbot.bot.Bot.delete_message
function. - Added
pytgbot.bot.Bot.send_invoice
function. - Added
pytgbot.bot.Bot.answer_shipping_query
function. - Added
pytgbot.bot.Bot.answer_pre_checkout_query
function.
- Added
- Updated Official API changes of
Bot API 2
.3
.1
(December 4, 2016)
- Fixed failed version bump, which causing importing this package impossible.
- This is not Telegram
Bot API 2.3.1
! - This version doesn't work. Use
2.3.2
instead. - Fixed InlineQueryResultCachedSticker.
- Updated API changes of
Bot API 2.3
(November 21, 2016)
Changes I observed:
Bot
answer_callback_query
: addedcache_time
edit_message_text
: works for game messages too.set_game_score
: addedforce
set_game_score
: addeddisable_edit_message
set_game_score
: removededit_message
set_game_score
:score
can be0
. Now must be non-negative, before it must be postive.Classes:
updates.Update
: addedchannel_post
updates.Update
: addededited_channel_post
updates.Message
: addedforward_from_message_id
Documentation:
Message
ids are not called unique no more.CallbackQuery
ids are not called global no more. Inline Keyboard Warnings removed.Might be a incomplete list, also have a look at the api changelog.
Bugfix release
Version 2.2.1a4
- Fixed importing of
Game
inUpdate.from_array(array)
.
Version 2.2.1a3
- Fixed importing of
InputFile*
after the package location change in V2.2.0.
Version 2.2.1a2
- Manually added placeholder class
pytgbot.api_types.receiveable.updates.
CallbackGame
Version 2.2.1a1
- Fixed using wrong templates
- Moving
InputFile
,InputFileFromDisk
,InputFileFromURL
toapi_types.sendable.files.*
#4 - Implemented the changes from
Bot API 2.2
(October 3, 2016) (gaming platform) - Improved templates, separated some stuff in the
Bot.do(...)
function for better subclassing. This will hopefully allow a subclass capable of returning infos, from an open webhook, later.
- Reworked
InputFile
,InputFileFromDisk
,InputFileFromURL
internals. They now should handle input better. #3,luckydonald/bonbot
#131
- Fix: Also catching
TgApiException
s ifget_updates(..., error_as_empty=True)
- Renamed
get_updates(...)
'stimeout
parameter topoll_timeout
. - Added
request_timeout
todo(...)
method. Currently onlyget_updates(...)
has that.
- Renamed
pytgbot.api_types.receivable.media.File.download_url(token)
toget_download_url(token)
- Added a
pytgbot.bot.Bot.get_download_url(file)
method.
- Renamed
InputFileURL
toInputFileFromURL
- Added
InputFileFromDisk
InputFile
is for buffers (strings) now
Big overhaul:
- Real Objects for everything.
- Also most of this module can now be generated from the api website automatically, making updates a breeze.
- Added ability to ignore network errors in
get_updates(...)
without raising a exception by settingerror_as_empty=True
. Useful infor update in bot.get_updates(error_as_empty=True)
constructs.
- Added Inline mode including inlinefeedback.
This should be
Bot API 2.0
(April 9, 2016).
- First implementation