Pyrogram v2.1.18#
Scheme layer used: 177#
Added
filters.users_sharedandfilters.chat_shared.Added the classes
BusinessOpeningHoursandBusinessOpeningHoursIntervaland the fieldbusiness_opening_hoursto the classChat.Added the class
BusinessLocationand the fieldbusiness_locationto the classChat.Added the class
BusinessIntroand the fieldbusiness_introto the classChat.Added the parameter
business_connection_idto the methodssend_message(),send_photo(),send_video(),send_animation(),send_audio(),send_document(),send_sticker(),send_video_note(),send_voice(),send_location(),send_venue(),send_contact(),send_poll(),send_game(),send_media_group(),send_dice(),send_chat_action(),send_cached_media()andcopy_message()and the corresponding reply_* methods.Added
get_business_connection().Added
BusinessConnection.Added support for
https://t.me/m/blahlinks in thelinkparameter ofget_messages()Added the parameter
message_thread_idto thesearch_messages()andsearch_messages_count().Added the parameter
chat_listtosearch_global()andsearch_global_count().BOTS ONLY: Handled the parameter
business_connection_idto the update handlersMessageHandler,EditedMessageHandler,DeletedMessagesHandler.Added the field
business_connection_idto the classMessage.Bug fix for the
users_shared,chat_sharedlogic inMessage.Added
set_birthdate()andset_personal_chat(), for user accounts only.Added the field
birthdateto the classChat.Added the field
is_from_offlineto the classMessage.Added the field
sender_business_botto the classMessage.Added the fields
users_shared,chat_sharedto the classMessage.Added the field
personal_chatto the classChat.Added the field
can_connect_to_businessto the classUser.Rearrange
send_sticker()parameter names.Added the fields
request_title,request_username, andrequest_phototo the classKeyboardButtonRequestChat.Added the fields
request_name,request_username, andrequest_phototo the classKeyboardButtonRequestUsers.
Scheme layer used: 176#
Add
message_thread_idparameter tounpin_all_chat_messages().Add
create_forum_topic(),edit_forum_topic(),close_forum_topic(),reopen_forum_topic(),hide_forum_topic(),unhide_forum_topic(),delete_forum_topic(),get_forum_topic_icon_stickers().- Add
AioSQLiteStorage, by stealing the following commits:
- Add
Add
public,for_my_bottodelete_profile_photos().Make
photo_idsparameter as optional indelete_profile_photos().Add
supergroup_chat_createdtoMessage.Add
forum_topic_created,forum_topic_closed,forum_topic_edited,forum_topic_reopened,general_forum_topic_hidden,general_forum_topic_unhiddentoMessage.Add
custom_actiontoMessage.Add
public,for_my_bot,photo_frame_start_timestamptoset_profile_photo().Add
inline_need_location,can_be_editedtoUser.Add
giveaway,giveaway_created,giveaway_completedandgiveaway_winnersinMessageandExternalReplyInfo.Bug fix for
send_message()with themessage_thread_idparameter.Added
request_usersandrequest_chattoKeyboardButton.- NOTE: using the
scheduledparameter, please be aware about using the correct Message Identifiers. Add
is_scheduledparameter todelete_messages().Add
schedule_dateparameter toedit_message_caption(),edit_message_media(),edit_message_text().Added
is_scheduledtoget_messages().Added
is_scheduledtoget_chat_history().
- NOTE: using the
Added new parameter
client_platformtoClient.PR from upstream: 1403.
Added
storytoExternalReplyInfo.Added
story_idtoReplyParameters.Added support for clicking (
WebAppInfo,LoginUrl,user_id,switch_inline_query_chosen_chat) buttons inclick().Rewrote
download_media()to support Story, and also made it future proof.
PmOItrOAe#
Renamed
placeholdertoinput_field_placeholderinForceReplyandReplyKeyboardMarkup.Add
linkparameter inget_messages()Documentation Builder Fixes
faster-pyrogram is not polished or documented for anyone else’s use. We don’t have the capacity to support faster-pyrogram as an independent open-source project, nor any desire for it to become an alternative to Pyrogram. Our goal in making this code available is a unified faster Pyrogram. …
Leaked Scheme Layers (2)#
Removed
ChatPreviewclass, and merged the parameters with theChatclass.Added
description,accent_color_id,is_verified,is_scam,is_fake,is_public,join_by_requestattributes to the classChatPreview.Added
force_fullparameter toget_chat().Bug Fix for
get_chat()andjoin_chat()whenhttps://t.me/usernamewas passed.Added missing attributes to the class
Storywhen it is available.Added the field
reply_to_storyto the classMessage.Added the field
user_chat_idto the classChatJoinRequest.Added the field
switch_inline_query_chosen_chatof the typeSwitchInlineQueryChosenChatto the classInlineKeyboardButton, which allows bots to switch to inline mode in a chosen chat of the given type.Add support for
payinInlineKeyboardButtonRevert e678c05 and stole squashed unauthored changes from bcd18d5
Scheme layer used: 174#
Added the field
storyto the classMessagefor messages with forwarded stories. Currently, it holds no information.Added the class
ChatBoostAddedand the fieldboost_addedto the classMessagefor service messages about a user boosting a chat.Added the field
custom_emoji_sticker_set_nameto the classChat.Added the field
unrestrict_boost_countto the classChat.Added the field
sender_boost_countto the classMessage.
Scheme layer used: 173#
Fix ConnectionResetError when only ping task (#24)
Added
is_topic_messageto theMessageobject.Added
has_visible_history,has_hidden_members,has_aggressive_anti_spam_enabled,message_auto_delete_time,slow_mode_delay,slowmode_next_send_date,is_forumto theChatobject.Added
add_to_recent,story_idparameters inset_reaction().Bug fix in parsing
Vector<Bool>(Thanks to @AmarnathCJD and @roj1512).Documentation Fix of
max_concurrent_transmissionstype hint.Bug Fix in the
get_filemethod. (Thanks to @ALiwoto).Added missing attributes to
ChatPermissionsandChatPrivileges.Added new parameter
no_joined_notificationstoClient.Fix history TTL Service Message Parse.
Thanks to …. If you want to change the location of the
unknown_errors.txtfile that is created byClient, set the environment variablePYROGRAM_LOG_UNKNOWN_ERRORS_FILENAMEvalue to the path where the file should get created.Renamed
force_documenttodisable_content_type_detectioninsend_document()andreply_document().Added missing attributes
added_to_attachment_menu,can_be_added_to_attachment_menu,can_join_groups,can_read_all_group_messages,supports_inline_queries,restricts_new_chatsto theUser.Migrate project to
pyproject.tomlfromsetup.py.PRs from upstream: 1366, 1305, 1288, 1262, 1253, 1234, 1210, 1201, 1197, 1143, 1059.
Bug fix for
send_audio()andsend_voice(). (Thanks to …).Add waveform parameter to
send_voice().Added view_once parameter to
send_photo(),send_video(),send_video_note(),send_voice().Add missing parameters to
reply_photo(),reply_video(),reply_video_note(),reply_voice().
Scheme layer used: 170#
Stole documentation from PyrogramMod.
Renamed
send_reactiontoset_reaction().Added support for
send_photo(),send_video(),send_animation(),send_voice()messages that could be played once.Added the field
via_chat_folder_invite_linkto the classChatMemberUpdated.BOTS ONLY: Added updates about a reaction change on a message with non-anonymous reactions, represented by the class
MessageReactionUpdatedHandlerand the fieldmessage_reactionin the class Update.BOTS ONLY: Added updates about reaction changes on a message with anonymous reactions, represented by the class
MessageReactionCountUpdatedHandlerand the fieldmessage_reaction_countin the class Update.Replaced the parameter
disable_web_page_previewwithLinkPreviewOptionsin the methodssend_message()andedit_message_text().Replaced the field
disable_web_page_previewwithLinkPreviewOptionsin the classInputTextMessageContent.Added missing parameters to
forward_messages().Added the class
ReplyParametersand replaced parametersreply_to_message_idin the methodscopy_message(),send_message(),send_photo(),send_video(),send_animation(),send_audio(),send_document(),send_sticker(),send_video_note(),send_voice(),send_location(),send_venue(),send_contact(),send_poll(),send_dice(),send_game(),send_media_group(),copy_media_group(),send_inline_bot_result(),send_cached_media(), and the corresponding reply_* methods with the fieldreply_parametersof typeReplyParameters.Bug fixes for sending
ttl_secondsandhas_spoiler.
Scheme layer used: 169#
Changed condition in
join_chat()andget_chat().Added
disable_content_type_detectionparameter toInputMediaVideo.Added
has_spoilerparameter tocopy_message().Improved
get_chat_history(): addmin_idandmax_idparams.Fix downloading media to
WORKDIRwhenWORKDIRwas not specified.Documentation fix for
user.mentioninUser.
Scheme layer used: 167#
Fixed the TL flags being Python reserved keywords:
fromandself.
Scheme layer used: 161#
Added
my_stories_fromto theblock_user()andunblock_user()methods.
Scheme layer used: 160#
Added
message_thread_idto the methodscopy_message(),forward_messages(),send_message(),send_photo(),send_video(),send_animation(),send_audio(),send_document(),send_sticker(),send_video_note(),send_voice(),send_location(),send_venue(),send_contact(),send_poll(),send_dice(),send_game(),send_media_group(),copy_media_group(),send_inline_bot_result(),send_cached_media().