Changes in this Fork#
A Word of Warning
We merge changes made to few of pyrogram forks plus changes made by us to this repository. All the features are just customized feature mostly for personal use; there is no guarantee in them being stable, USE AT YOUR OWN RISK.
This page lists all the documented changes of this fork, in reverse chronological order. You should read this when upgrading to this fork to know where your code can break, and where it can take advantage of new goodies!
For a more detailed description, please check the commits.
If you found any issue or have any suggestions, feel free to make an issue on github.
Breaking Changes in this Fork#
In
copy_message(),ValueErroris raised instead ofloggingit.In
download_media(), if the message is aPaidMediaInfowith more than onepaid_mediaandidxwas not specified, then a list of paths or binary file-like objects is returned.PR #115 This change breaks some usages with offset-naive and offset-aware datetimes.
PR from upstream: #1411 without attribution.
If you relied on internal types like
import pyrogram.file_idORimport pyrogram.utils, Then read this full document to know where else your code will break.InlineKeyboardButtononly accepts keyword arguments instead of positional arguments.
Changes in this Fork#
Scheme layer used: 214 |
fix get_chat_photos <https://github.com/TelegramPlayground/pyrogram/pull/203>.
Update
reply_game(),reply_text(),reply_animation(),reply_audio(),reply_contact(),reply_document(),reply_location(),reply_media_group(),reply_photo(),reply_poll(),reply_sticker(),reply_venue(),reply_video(),reply_video_note(),reply_voice(),reply_invoice(),forward(),copy(),reply_cached_media()methods to support direct_messages_topic_id.Fix timestamp_to_datetime to correctly handle timezone conversion.
Scheme layer used: 211 |
Rename direct_message_topic_id to
direct_messages_topic_idinReplyParameters. This parameter can be used to send a message to a direct messages chat topic.Added the field
checklist_task_idto the classReplyParameters, allowing bots to reply to a specific checklist task.Added the field
reply_to_checklist_task_idto the classMessage.Added the field
can_manage_direct_messagestoChatPrivileges.Added the field
is_direct_messagesto the classesChatwhich can be used to identify supergroups that are used as channel direct messages chats.Added the fields
parent_chatanddirect_messages_chat_idto the classChatwhich indicates the parent channel chat for a channel direct messages chat.Added the class
DirectMessagesTopicand the fielddirect_messages_topicto the classMessage, describing a topic of a direct messages chat.Added
get_direct_messages_topics_by_id(),get_direct_messages_topics(),set_chat_direct_messages_group().
Scheme layer used: 205 |
Added the
ChecklistTaskrepresenting a task in a checklist.Added the
Checklistrepresenting a checklist.Added the
InputChecklistTaskrepresenting a task to add to a checklist.Added the
InputChecklistrepresenting a checklist to create.Added the field
checklistto theMessageandExternalReplyInfo, describing a checklist in a message.Added the
ChecklistTasksDoneand the fieldchecklist_tasks_doneto theMessage, describing a service message about status changes for tasks in a checklist (i.e., marked as done/not done).Added the
ChecklistTasksAddedand the fieldchecklist_tasks_addedto theMessage, describing a service message about the addition of new tasks to a checklist.Added the
send_checklist(), allowing bots to send a checklist on behalf of a business account.Added the
edit_message_checklist(), allowing bots to edit a checklist on behalf of a business account.Added the
DirectMessagePriceChangedand the fielddirect_message_price_changedto theMessage, describing a service message about a price change for direct messages sent to the channel chat.Added
reply_parametersinforward_messages().Increased the maximum number of options in a poll to 12.
Scheme layer used: 202 |
Added the method
post_story()allowing bots to post a story on behalf of a managed business account.Added the method
edit_story()andedit_business_story(), allowing bots to edit stories they had previously posted on behalf of a managed business account.Added the methods
delete_stories()anddelete_business_story(), allowing bots to delete stories they had previously posted on behalf of a managed business account.Added the classes
InputStoryContentPhotoandInputStoryContentVideorepresenting the content of a story to post.Added the classes
StoryArea,StoryAreaPosition,LocationAddress,StoryAreaTypeLocation,StoryAreaTypeSuggestedReaction,StoryAreaTypeLink,StoryAreaTypeWeather,StoryAreaTypeUniqueGift,StoryAreaTypeFoundVenueandStoryAreaTypeMessagedescribing clickable active areas on stories.Added the classes
StoryPrivacySettings,StoryPrivacySettingsEveryone,StoryPrivacySettingsContacts,StoryPrivacySettingsCloseFriends,StoryPrivacySettingsSelectedUsersto describe the privacy settings of a story.Added the methods
can_post_story(),hide_my_story_view(),forward_story(),toggle_story_is_posted_to_chat_page(),get_chat_active_stories(),get_chat_archived_stories().Add support for parsing story links in
get_messages().
Scheme layer used: 201 |
Renamed the field
paid_message_star_counttopaid_star_countin theMessage, containing the number of Telegram Stars that were paid to send the message.Added the classes
PaidMessagePriceChangedandPaidMessagesRefundedand the fieldspaid_message_price_changedandpaid_messages_refundedto theMessage, describing the appropriate service message.Added the
get_business_account_star_balance(), allowing bots to check the current Telegram Star balance of a managed business account.Added the
BusinessBotRightsand replaced the fieldcan_replywith the fieldrightsof the typeBusinessBotRightsin theBusinessConnection.
Scheme layer used: 200 |
Added
sizestoPhototo return all available sizes.Add
mediainExternalReplyInfo.Add
MessageOriginTypeas enum instead of str, and updated the appropriate filters.Document about the issue #161.
Make User.block/unblock/get_common_chats async, Fix examples and Fix docs.
Try to return the service message (when applicable) in the method
set_chat_title().Added
delete_chat_history().Rename
UserGifttoReceivedGift,get_user_giftstoget_received_gifts()and the corresponding fields appropriately.Added the field
paid_message_star_countto the classesChat,MessageandUser.Added the parameter
paid_message_star_countto the methodscopy_media_group(),send_game(),send_invoice(),forward_messages(),send_animation(),send_audio(),send_cached_media(),send_contact(),send_dice(),send_document(),send_location(),send_media_group(),send_message(),send_paid_media(),send_photo(),send_poll(),send_sticker(),send_venue(),send_video_note(),send_video(),send_voice()and the bound methodsforward()andcopy().
Scheme layer used: 199 |
Added the class
InlineQueryResultGame.Added the bound methods
edit_message_text(),edit_message_caption(),edit_message_media()andedit_message_reply_markup().Renamed the fields
thumb_url,thumb_width, andthumb_heightin the classesInlineQueryResultArticle,InlineQueryResultContact,InlineQueryResultDocument,InlineQueryResultLocation, andInlineQueryResultVenuetothumbnail_url,thumbnail_width, andthumbnail_heightrespectively.Renamed the field
thumb_urlin the classesInlineQueryResultPhotoandInlineQueryResultVideotothumbnail_url.Added the field
animation_mime_typeand renamed the fieldsthumb_urlandthumb_mime_typein the classesInlineQueryResultAnimationtothumbnail_urlandthumbnail_mime_typerespectively.Fixed a bug with
_clientbeing None inChosenInlineResultHandler.Added the parameters
video_coverandvideo_start_timestampto the methodcopy_message(), allowing bots to change the start timestamp for copied videos.Added
for_paid_reactionsinget_send_as_chats().Updated documentation and parameter names according to BOT API 8.3
Scheme layer used: 198 |
Updated Text Formatting documentation.
Splitted the
get_messages()intoget_chat_pinned_message(),get_callback_query_message(), andget_replied_message().Added
message.contentproperty.Added the
coverandstart_timestampparameters insend_video()andInputPaidMediaVideo.Added the
video_start_timestampand renamed thesend_copyandremove_captionparameters inforward_messages()andforward().Added the
gift_countto theChat.Added the
get_similar_bots().Changed types in
UpgradedGift,UserGift.PR from upstream: 701
Scheme layer used: 196 |
Added the
get_owned_star_count()and a possibly temporaryStarAmount.Added the
UpgradedGiftand changed return typeget_available_gifts()andget_user_gifts().Added the
pay_for_upgradein thesend_gift().Added the parameters
upgrade_star_countandis_for_birthdayinGift.Added the
on_bot_purchased_paid_media()andon_bot_business_connection().Added the parameters
can_be_upgraded,was_refunded,prepaid_upgrade_star_count,can_be_transferred,transfer_star_count,export_dateinUserGift.Renamed the parameter
only_in_channelstochat_type_filterin thesearch_global_count()andsearch_global().Removed
sender_user_idparameter fromsell_gift()andtoggle_gift_is_saved().
Scheme layer used: 195 |
Added the
get_owned_bots()to return the list of owned by the current user bots.
Scheme layer used: 194 |
Added the field
schedule_dateand changed the return type of thesend_inline_bot_result().Added the field
subscription_expiration_datein theSuccessfulPayment.Added the parameter
subscription_periodin thecreate_invoice_link().
Scheme layer used: 192 |
Added
SHOW_MESSAGE_SENDER_ENABLED,AGGRESSIVE_ANTI_SPAM_TOGGLED,PROTECTED_CONTENT_TOGGLED,CHAT_IS_FORUM_TOGGLED,USERNAMES_CHANGED,MEMBER_SUBSCRIPTION_EXTENDED,MEMBER_JOINED_BY_LINK,MEMBER_JOINED_BY_REQUEST, and updatedChatEventFilterwith the corresponding attributes.Added the parameter
show_caption_above_mediato theedit_inline_caption().Added the parameter
allow_paid_broadcastto the methodscopy_media_group(),send_game(),send_invoice(),forward_messages(),send_animation(),send_audio(),send_cached_media(),send_contact(),send_dice(),send_document(),send_location(),send_media_group(),send_message(),send_paid_media(),send_photo(),send_poll(),send_sticker(),send_venue(),send_video_note(),send_video(),send_voice()and the bound methodsreply_game(),reply_text(),reply_animation(),reply_audio(),reply_contact(),reply_document(),reply_location(),reply_media_group(),reply_photo(),reply_poll(),reply_sticker(),reply_venue(),reply_video(),reply_video_note(),reply_voice(),reply_invoice(),forward(),copy(),reply_cached_media().Introduced the ability to add media to existing text messages using the method
edit_message_media(),edit_cached_media(),edit_media(),edit_cached_media().Added the class
CopyTextButtonand the fieldcopy_textin the classInlineKeyboardButtonallowing bots to send and receive inline buttons that copy arbitrary text.
Scheme layer used: 190 |
Added the methods
get_available_gifts(),get_user_gifts(),sell_gift(),send_gift(),toggle_gift_is_saved(),toggle()and the typesUserGiftandGift.Added the parameter
send_asin the appropriate methods and bound methods PR 107.
Scheme layer used: 189 |
Added
toggle_forum_topic_is_pinned()to pin / unpin aForumTopic.Added the field
alternative_videosto theMessage.Added the fields
connected_websiteandwrite_access_allowedto theMessage.Fix
chatbeing None in some cases in theMessage.Fix deleting messages does not return the count in some cases.
Scheme layer used: 187 |
Added the parameter
emojiinsend_sticker()andreply_sticker(). #86.Return list of photos and videos instead of bool in send_payment_form.
Added the field
prize_star_countto the classesGiveawayCreated,Giveaway,GiveawayWinners.Added the field
is_star_giveawayto the classGiveawayCompleted.Added the ability to specify a payload in
send_paid_media()that is unused currently.
Scheme layer used: 186 |
Try to return the service message (when applicable) in the methods
set_chat_photo(),set_photo().Added the methods
get_payment_form()andsend_payment_form()#89.Added the fields
expired_member_count,subscription_periodandsubscription_priceto the classChatInviteLink.Added the field
can_enable_paid_reactionto the classChat.Added
linkproperty toStoryand fixed thelinkproperty inMessage.Introduced
DraftMessagetype.Added the ability to send paid media to any chat and the parameter
business_connection_idto thesend_paid_media(), allowing bots to send paid media on behalf of a business account.Added the field
until_dateto the classChatMemberfor members with an active subscription.Added
add_paid_message_reaction()andReactionTypePaidUpdated errors list and improved documentation of some of the methods.
Added missing parameters to
get_dialogs()andDialog.Added a
ChatJoinTypeto distinguish the different types ofNEW_CHAT_MEMBERS.Added
CONTACT_REGISTEREDandSCREENSHOT_TAKENtypes of service messages.View new and changed raw API methods.
Scheme layer used: 185 |
Added the parameter
chat_listto the methodsget_dialogs()andget_dialogs_count().Added
gifted_starsservice message to the classMessage.Added the fields
have_access,has_main_web_app,active_user_countto the classUser, which is returned in response toget_me().Added the parameter
business_connection_idto the methodspin_chat_message()andunpin_chat_message(), allowing bots to manage pinned messages on behalf of a business account.
Scheme layer used: 184 |
Updated
via_bot, to optionally support filtering invalid botuser_id.Added the
get_active_sessions(),terminate_session(),terminate(), andterminate_all_other_sessions().Added the
is_automatic_forwardto theMessage.Added the parameters
offset_idto thesearch_messages()and the parametersmin_date,max_date,min_id,max_id,saved_messages_topic_idto thesearch_messages_count().Dynamic session ReStart + restart optimizations (#56)
Added the
delete_account(),transfer_chat_ownership(),update_status()(#49, #51)Added the class
RefundedPayment, containing information about a refunded payment.Added the field
refunded_paymentto the classMessage, describing a service message about a refunded payment.
Scheme layer used: 183 |
Added the classes
PaidMedia,PaidMediaInfo,PaidMediaPreview,PaidMediaPhotoandPaidMediaVideo, containing information about paid media.Added the method
send_paid_media()and the classesInputPaidMedia,InputPaidMediaPhotoandInputPaidMediaVideo, to support sending paid media.Added the field
paid_mediato the classesMessageandExternalReplyInfo.Added
get_stories().Added filters
threadandself_destruct.Added the field
can_send_paid_mediato the classChat.Added support for launching Web Apps via
t.melink in the classMenuButtonWebApp.
Scheme layer used: 182 |
Updated the parameter
business_connection_idto the methodsedit_text(),edit_media(),edit_reply_markup(),edit_message_text(),edit_message_media(),edit_message_reply_markup().Added the parameter
business_connection_idto the methodsedit_message_text(),edit_message_media(),edit_cached_media(),edit_message_caption()andedit_message_reply_markup(), allowing the bot to edit business messages.Added the parameter
business_connection_idto the methodstop_poll(), allowing the bot to stop polls it sent on behalf of a business account.Added support for callback queries originating from a message sent on behalf of a business account.
Scheme layer used: 181 |
Added the classes
InputLocationMessageContent,InputVenueMessageContent,InputContactMessageContent,InputInvoiceMessageContent.`Added the methods
translate_text(),translate_message_text(),translate()and the typeTranslatedText(#39).Added the methods
create_video_chat(),discard_group_call(),get_video_chat_rtmp_url()and the typeRtmpUrl(#37).Added
on_story()to listen to story updates.Ability to run in replit environment without creating a deployment. Set the environment variable
PYROGRAM_REPLIT_NWTRAFIK_PORTvalue to5222if you want to connect to Production Telegram Servers, OR Set the environment variablePYROGRAM_REPLIT_WNTRAFIK_PORTvalue to5223if you want to connect to Test Telegram Servers, before starting theClient.Added the
invite_group_call_participants()(#35).Added the types
LabeledPrice,OrderInfo,PreCheckoutQuery,ShippingAddress,ShippingOption,ShippingQueryandSuccessfulPayment.Added the
successful_paymentparameter to theMessage. Added the filtersuccessful_paymentto detect service messages of Successful Payment type.Added the methods
send_invoice(),answer_pre_checkout_query()(answer()),answer_shipping_query()(answer()),refund_star_payment()andcreate_invoice_link().Added the
send_web_app_custom_request().Added the
search_public_messages_by_tag()andcount_public_messages_by_tag().Added the
fetch_repliesparameter toClient.Added the
get_message_effects().Added the parameter
message_effect_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_dice(),send_game(), andsend_media_group(), and the correspondingreply_*methods in the classMessage.Added the field
effect_idto the classMessage.Added the field
show_caption_above_mediato the classesMessage,InputMediaAnimation,InputMediaPhoto,InputMediaVideo,InlineQueryResultAnimation,InlineQueryResultCachedAnimation,InlineQueryResultPhoto,InlineQueryResultCachedPhoto,InlineQueryResultVideo,InlineQueryResultCachedVideo,send_cached_media(),send_animation(),send_photo(),send_video(),copy_message()andedit_message_caption(), and the correspondingreply_*methods.Added support for
EXPANDABLE_BLOCKQUOTEentities in received messages.Added support for
EXPANDABLE_BLOCKQUOTEentity parsing inHTMLparse mode.Allowed to explicitly specify
EXPANDABLE_BLOCKQUOTEentities in formatted texts.
Scheme layer used: 179 |
Add
invoicetoMessageandExternalReplyInfo.Add
link_preview_optionstoClient.Support for the updated Channel ID format. #28
Improvements to
save_file()andget_file()to handle the new FLOOD_PREMIUM_WAIT errors.Added
has_animation,is_personal,minithumbnailparameters toChatPhoto.Changed return type of
get_chat_photos()to returnPhotoorAnimation.Added
get_chat_sponsored_messages()and the typeSponsoredMessage, by stealing unauthored changes from KurimuzonAkuma/pyrogram#55.Added
load_group_call_participants()and the typeGroupCallParticipant, by stealing unauthored changes from 6df467f.Added
view_messages()and the bound methodsread()andview().Added the field
question_entitiesto the classPoll.Added the field
text_entitiesto the classPollOption.Added the parameters
question_parse_modeandquestion_entitiesto the methodsend_poll().Added the class
InputPollOptionand changed the type of the parameteroptionsin the methodsend_poll()to Array ofInputPollOption.Added the field
max_reaction_countto the classChat.Added the field
via_join_requestto the classChatMemberUpdated.Added the class
TextQuoteand the fieldquoteof typeTextQuoteto the classMessage, which contains the part of the replied message text or caption that is quoted in the current message.Added
revoke_messagesparameter toban_chat_member()andban_member().Added
get_collectible_item_info().Added
reverseparameter toget_chat_history(). (855e69e, a086b49)
Scheme layer used: 178 |
Added
search_chats().Added
get_bot_name(),get_bot_info_description(),get_bot_info_short_description(),set_bot_name(),set_bot_info_description(),set_bot_info_short_description().Added
edit_cached_media()andedit_cached_media().Steal d51eef3 without attribution.
Added
max_reaction_counttoChatReactions.Added
personal_chat_messagetoChat.Added
only_in_channelsparameter tosearch_global()andsearch_global_count().
Scheme layer used: 177 |
Added
emoji_message_interactionparameter tosend_chat_action()andreply_chat_action().BOTS ONLY: Updated
ChatMemberUpdatedHandlerto handle updates when the bot is blocked or unblocked by a user.Added missing parameters in
create_group(),create_supergroup(),create_channel().Try to return the service message (when applicable) in the methods
add_chat_members(),promote_chat_member()Add
TRIGGER_EMOJI_ANIMATIONandWATCH_EMOJI_ANIMATIONinsend_chat_action()andreply_chat_action().Attempted to revert the Backward Incompatible changes in the commits fb118f95d and 848bc8644.
Added
callback_data_with_passwordtoInlineKeyboardButtonand added support inclick()for such buttons.PR from upstream: 1391 without attribution.
Added
gifted_premiumservice message toMessage.Added
get_stickers().Added
filters.users_sharedandfilters.chat_shared.Added the field
originof typeMessageOriginin the classExternalReplyInfo.Added the class
MessageOriginand replaced the fieldsforward_from,forward_from_chat,forward_from_message_id,forward_signature,forward_sender_name, andforward_datewith the fieldforward_originof typeMessageOriginin the classMessage.Added
accent_color,profile_color,emoji_status,is_close_friendtoChatandUser.Added the method
get_created_chats().Added the class
ForumTopicand the methodsget_forum_topics(),get_forum_topic().Install the version, from PyPI, using
pip uninstall -y pyrogram && pip install pyrotgfork==2.1.17.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().