Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

add auto enabling two-step verification if password is not None#18

Closed
1pyxa1 wants to merge 1 commit intopyrogram:masterfrom
1pyxa1:auto_enable_two_step_verification
Closed

add auto enabling two-step verification if password is not None#18
1pyxa1 wants to merge 1 commit intopyrogram:masterfrom
1pyxa1:auto_enable_two_step_verification

Conversation

@1pyxa1
Copy link
Copy Markdown
Contributor

@1pyxa1 1pyxa1 commented Feb 7, 2018

hi there!
i think it would be great if the Client could auto enable two-step verification if you are creating a new account and specified a password. please note, unfortunately i didn't have a chance to test my commit.

@delivrance
Copy link
Copy Markdown
Member

I don't think this is needed at all because you can simply enable_cloud_password as soon as the client starts and in case of a re-login, if a password is set already, the method will simply return False. Also, the method accepts other parameters too; this means that users will either ignore this auto-2fa and use enable_cloud_password manually or I have to add those parameters on the Client for completeness (which I don't really like to).

@1pyxa1
Copy link
Copy Markdown
Contributor Author

1pyxa1 commented Feb 8, 2018

well, that's fine. i'll close the pull request.

@1pyxa1 1pyxa1 closed this Feb 8, 2018
@delivrance
Copy link
Copy Markdown
Member

@1pyxa1 Hi. For new ideas and enhancements you are welcome to join the group. We can discuss with other people and hear opinions from them too!

@1pyxa1
Copy link
Copy Markdown
Contributor Author

1pyxa1 commented Feb 8, 2018

@delivrance thanks! i am already there

@1pyxa1 1pyxa1 deleted the auto_enable_two_step_verification branch February 9, 2018 12:49
AsmSafone pushed a commit to AsmSafone/pyrogram that referenced this pull request Jan 3, 2024
Add requested_chats and story filter

---------

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
ysravankumar added a commit to ysravankumar/pyrogram that referenced this pull request Apr 3, 2024
merge commit from https://github.com/KurimuzonAkuma/pyrogram

* Added color and background_emoji_id to `User` and `Chat`

* Fix update_color chat parsing

* Fix Story.copy method

* Add quote support

* Fix quote if quote is not in reply

* Add quote filter

* Update Pyrogram to v2.0.106.8

* Add message_thread_id to forward_messages

* Add BOOSTS_REQUIRED to known errors

* Fix Story.copy

* Fix quote filter

* Add QUOTE_TEXT_INVALID to known errors

* Update Pyrogram to v2.0.106.9

* Fix missing spoiler in get_input_media_from_file_id

* Prevent connection to dc every time in save_file

* Fix missing has_spoiler

* Fix send_reaction for stories

* Add support for cross-chat replies

* Update Pyrogram to v2.0.106.10

* Fixed "ChannelPrivate" exception on parse param "reply_to_message" (#9)

* Add message copy arguments: reply_to_chat_id, quote_text, quote_entities (#10)

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>

* Add giveaway type

* Add giveaway_launched to service messages

* Add get_boosts_status method

* Add support for spoilers in copy_message

* Fix parsing of pinned stories in case of channel

* Update Pyrogram to v2.0.106.11

* Request GetChannels as required

* Improve speed of stories parsing

* Fix reply_to_peer wrongly be set to the target chat_id

* Delete comment added by mistake

* Add update_chat_notifications method

* Update Pyrogram to v2.0.106.12

* Add `quote_text` & `quote_entities` on message copy (#11)

* Add some errors to known errors

* Add is_admin field to Chat object

* Add is_deactivated field to Chat object

* Add filters.admin

* Add toggle_forum_topics method

* Update Pyrogram to v2.0.106.13

* Fix update_chat_notifications

* Add force_large_media, force_small_media, manual fields to WebPage object (#12)

* Move force_large_media, force_small_media, manual fields closer to each other

* Add high-lvl for folders

* Add read bound method for Story

* Add giveaway filter

* Update Pyrogram to v2.0.106.14

* Add custom_action to service messages

* Fix misspelling function name in get_chat_history_count example

* Fix username field for users with multiple usernames

* Add mute/unmute bound method to Chat object

* Fix typehints for update_chat_notifications

* Allow Custom Storage Engines

* Fix async generator typehints

* Update Pyrogram to v2.0.106.15

* Make reply bound methods send to the same topic

* Add gift_code type

Co-authored-by: ZeN <artaganmalsagov07@gmail.com>

* Refactor ForumTopic

* Add link property to GiftCode

* Add gift_code filter

* Update Pyrogram to v2.0.106.16

* Add reply_to_chat_id to copy_message (pyrogram#14)

* Update chat username parsing in case of multiple usernames

* Update MIN_CHAT_ID

* Update Pyrogram to v2.0.106.17

* Update docs compiler

* Remove timedelta in update_chat_notifications

* Update description of update_color

* Add requested_chat to service messages

* Add new keyboard buttons

* Add ProfileColor enum

* Update Python Version (#16)

* Fix requested_chat parsing and new buttons

* Add some errors to known errors

* Fix update_color enum

* Update Pyrogram to v2.0.106.18

* Fix typehints for enums

* Changed requested_chat_id to requested_chat

* Remove url uploading from send_story/edit_story

* Update Pyrogram to v2.0.106.19

* Update API schema to Layer 167

* Add some errors to known errors

* Fix api compiling

* Update some methods and types to new layer

* Update Pyrogram to v2.0.106.20

* Update get_raw_peer_id and get_peer_id

* Refactor folders

* Fix usable-by description

* Add get_similar_channels to high-lvl

* Update topic parsing

* Fix chat color parsing

* Fix KeyboardButton

* Update Pyrogram to v2.0.106.21

* Docstrings for storage class

* Remove StorySkipped and StoryDeleted type

* Refactor ChatColor

* Remove MessageStory type

* Fix get_stories

* Remove StoryViews type

* Add some errors to known errors

* Update story methods description

* Remove edit_story method

* Fix color description

* Return bool from update_color

* Fix reply_color

* Fix story forward_from

* Remove StoryViews from compiler

* Update story method description

* Fix story parsing

* Update send_reaction description

* Add is_premium to Sticker

* Add tests for markdown

* Add some errors to known errors

* Update forum topic parsing in Message object

* Add forum filter

* Add edit_hidden field to Message object

* Add missing schedule_date to edit_message methods

* Update start_bot method

* Add topic_id to read_mentions and read_reactions method

* Fix is_forum field for supergroups only

* Fix read_stories in case max_id is missing

* Add update_color to compiler

* Update Pyrogram to v2.1.0

* Add support for multiple reactions in send_reaction

* Update Pyrogram to v2.1.1

* Update API schema to Layer 169

* Update Pyrogram to v2.1.2

* Ignore KeyError in get_dialogs and get_folders

* Fix requested chats

* Fix message.download in case of Story

* Add max_quantity to request_peer buttons

* Rename is_participants_hidden to is_members_hidden

* Update Pyrogram to v2.1.3

* Added filters `requested_chat` and `story` (pyrogram#18)

Add requested_chats and story filter

---------

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>

* Add missing optional to some methods description

* Add missing attributes to the Giveaway type

* Add some errors to known errors

* Update Pyrogram to v2.1.4

* Raise exception if auth key not found

* Add GiveawayResult type

* Update Pyrogram to v2.1.5

* Add missing privileges to the ChatPrivileges type

* Add missing privileges to the promote_chat_member method

* Add privileges to RequestPeer buttons

* Fix max_quantity error if it is None

* Refactor download_media

* Revert changes related to the Story.download

* Add invert_media parameter to send_message method

* Add new method send_web_page

* Update some methods and types description

* Update Pyrogram to v2.1.6

* Update API schema to Layer 170

* Update Pyrogram to v2.1.7

* Add support for self-destructing voice notes

* Add invert_media parameter to Message.reply_text method

* Update description of some methods

* Add missing attributes to the WebPage type

* Update Pyrogram to v2.1.8

* Update usable-by in send_reaction

* Add missing attributes to the Chat type

* Update description of some methods

* Add new method set_chat_ttl

* Add max_quantity parameter to KeyboardButton constructor

* Add new methods join/leave_folder

* Update Pyrogram to v2.1.9

* Fix update_folder method

* Update Pyrogram to v2.1.10

* Fix message.topic parsing in some cases

* Remove blockquote unparsing from markdown parser

* Add FloodWait except to media download (pyrogram#19)

Add FloodWait except to media download to handle this error from the script.

Before this change the exception would only be printed and the script would continue without a way to detect this error.

Co-authored-by: KNF Apps <jordyamc@users.noreply.github.com>

* Fix message.story parsing in some cases

* Remove export_story_link method

* Make Storage class an abstract base class

* Allow to specify a language pack

* Update Pyrogram to v2.1.11

* Update API schema to Layer 171

* Make url parameter optional for send_web_page

* Add reply_web_page bound method

* Update API schema to Layer 172

* Fix vectors deserialization

* Add some errors to known errors

* Fix session not getting saved to media_sessions in save_file method. (pyrogram#20)

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Add support for self-destructing video notes

* Rename some attributes

https://t.me/pyrogramchat/102

* Add protect_content parameter to reply_document method

* Update Pyrogram to v2.1.12

* Update python.yml

* Increase watchdog interval to 15 minutes

https://core.telegram.org/api/updates#recovering-gaps

* Fix MyBoost parsing

* Update API schema to Layer 173

* Move emoji argument above story_id

* Fix history TTL Service Message Parse (#21)

Co-authored-by: Colin <colin@colinshark.de>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
Co-authored-by: Akkia <AkkiaS7@outlook.com>

* Fix increment_story_views

* Add toggle_join_to_send method (#22)

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Fix `send_audio` not working as expected (pyrogram#23)

* Fix ConnectionResetError when only ping task (pyrogram#24)

* Update API schema to Layer 174

* Various improvements

* Add deleted parameter to ForumTopic class

* Update Pyrogram to v2.1.13

* Add `Str.html` and `Str.markdown` typing (#26)

* Add new method check_username

* Add RequestedChats type

* Fix message parsing in case of reply to story

* Update reply filter to work with stories

* Add is_contact_require_premium attribute to User class

* Add system_lang_code to Client and missing enums to SentCodeType (#27)

* Add init_connection_params parameter to Client class

* Add support for ApplyBoost service messages

* Add new parameters to send_code method

* Add raw attribute to Message class

* Add raw attribute to Story class

* Add ttl_seconds attribute to Voice and VideoNote class

* Fix parameter descriptions

* Update Pyrogram to v2.1.14

* Fix get_folders

* Add show_above_text to Message.edit bound method

* Add quotes to markdown

* Add custom emojis to markdown

* Update check_username method

* Add skip_updates parameter to Client class

* Fix message parsing in case of reply from private chat

* Fix max_concurrent_transmissions typing (#31)

* Allow to specify a limit to message cache size

* Recover updates in date ascending order

* Update API schema to Layer 176

* Add business_info attribute to Chat type

* Update Pyrogram to v2.1.15

* Remove unnecessary types from docs compiler

* Fix recovering gaps in case of private channel

* Add color attribute to Folder

* Add new toggle_folder_tags method

* Fix get_folders

* Refactor download_media

* Refactor sqlite storage

* Add missing methods to docs compiler

* Add hide_sender_name and hide_captions parameters to forward

* Add no_sound parameter to send_video methods

* Add new get_stickers method

* Add sender_boost_count attribute to Message class

* Add new get_scheduled_messages method

* Add typehints to all of the decorators classes (#34)

* Update Pyrogram to v2.1.16

* Renamed ttl_seconds to view_once in send_video_note and send_voice

* Add is_public parameter to set_profile_photo and minor fixes (#35)

* Fix invalid usage of input_message_content.write method (without await).

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Fix promote_chat_member using can_post_stories for edit_story permission.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Refactor get_forum_topics_by_id method and make sure to pass messages parameter to it (if it exists).

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Add fallback parameter to set_profile_photo method.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Fix download_media method not checking for file_id.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Rename fallback to is_public

* Revert get_forum_topics_by_id.py

---------

Signed-off-by: Aliwoto <aminnimaj@gmail.com>
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>

* Fix get_scheduled_messages

* Update API schema to Layer 177

* Add birthday attribute to Chat class

* Add new update_birthday method

* Add some errors to known errors

---------

Signed-off-by: Aliwoto <aminnimaj@gmail.com>
Co-authored-by: KurimuzonAkuma <arturgayauskas@gmail.com>
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Co-authored-by: CometovArt <cometovart@ya.ru>
Co-authored-by: Aliwoto <woto@kaizoku.cyou>
Co-authored-by: Kroks4502 <99325746+Kroks4502@users.noreply.github.com>
Co-authored-by: Albert Zuev <63642425+iamnalinor@users.noreply.github.com>
Co-authored-by: ZeN <artaganmalsagov07@gmail.com>
Co-authored-by: CometovArt <62966578+CometovArt@users.noreply.github.com>
Co-authored-by: Pranav Saraswat <85411336+Pranav-Saraswat@users.noreply.github.com>
Co-authored-by: Yehuda lev <94082865+yehuda-lev@users.noreply.github.com>
Co-authored-by: aoleg94 <aoleg94@users.noreply.github.com>
Co-authored-by: KNF Apps <jordyamc@users.noreply.github.com>
Co-authored-by: AmarnathCJD <amarnathc2026@cs.ajce.in>
Co-authored-by: ALi.w <aminnimaj@gmail.com>
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
Co-authored-by: Colin <colin@colinshark.de>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
Co-authored-by: Akkia <AkkiaS7@outlook.com>
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Co-authored-by: sliva0 <48382801+sliva0@users.noreply.github.com>
Co-authored-by: Gor <47748749+ke1io@users.noreply.github.com>
Co-authored-by: L <60060180+zawsq@users.noreply.github.com>
Co-authored-by: tg:@mars_hall <mars.hall.tg.fck@gmail.com>
ysravankumar added a commit to ysravankumar/pyrogram that referenced this pull request Apr 3, 2024
* Added color and background_emoji_id to `User` and `Chat`

* Fix update_color chat parsing

* Fix Story.copy method

* Add quote support

* Fix quote if quote is not in reply

* Add quote filter

* Update Pyrogram to v2.0.106.8

* Add message_thread_id to forward_messages

* Add BOOSTS_REQUIRED to known errors

* Fix Story.copy

* Fix quote filter

* Add QUOTE_TEXT_INVALID to known errors

* Update Pyrogram to v2.0.106.9

* Fix missing spoiler in get_input_media_from_file_id

* Prevent connection to dc every time in save_file

* Fix missing has_spoiler

* Fix send_reaction for stories

* Add support for cross-chat replies

* Update Pyrogram to v2.0.106.10

* Fixed "ChannelPrivate" exception on parse param "reply_to_message" (#9)

* Add message copy arguments: reply_to_chat_id, quote_text, quote_entities (#10)

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>

* Add giveaway type

* Add giveaway_launched to service messages

* Add get_boosts_status method

* Add support for spoilers in copy_message

* Fix parsing of pinned stories in case of channel

* Update Pyrogram to v2.0.106.11

* Request GetChannels as required

* Improve speed of stories parsing

* Fix reply_to_peer wrongly be set to the target chat_id

* Delete comment added by mistake

* Add update_chat_notifications method

* Update Pyrogram to v2.0.106.12

* Add `quote_text` & `quote_entities` on message copy (#11)

* Add some errors to known errors

* Add is_admin field to Chat object

* Add is_deactivated field to Chat object

* Add filters.admin

* Add toggle_forum_topics method

* Update Pyrogram to v2.0.106.13

* Fix update_chat_notifications

* Add force_large_media, force_small_media, manual fields to WebPage object (#12)

* Move force_large_media, force_small_media, manual fields closer to each other

* Add high-lvl for folders

* Add read bound method for Story

* Add giveaway filter

* Update Pyrogram to v2.0.106.14

* Add custom_action to service messages

* Fix misspelling function name in get_chat_history_count example

* Fix username field for users with multiple usernames

* Add mute/unmute bound method to Chat object

* Fix typehints for update_chat_notifications

* Allow Custom Storage Engines

* Fix async generator typehints

* Update Pyrogram to v2.0.106.15

* Make reply bound methods send to the same topic

* Add gift_code type

Co-authored-by: ZeN <artaganmalsagov07@gmail.com>

* Refactor ForumTopic

* Add link property to GiftCode

* Add gift_code filter

* Update Pyrogram to v2.0.106.16

* Add reply_to_chat_id to copy_message (pyrogram#14)

* Update chat username parsing in case of multiple usernames

* Update MIN_CHAT_ID

* Update Pyrogram to v2.0.106.17

* Update docs compiler

* Remove timedelta in update_chat_notifications

* Update description of update_color

* Add requested_chat to service messages

* Add new keyboard buttons

* Add ProfileColor enum

* Update Python Version (#16)

* Fix requested_chat parsing and new buttons

* Add some errors to known errors

* Fix update_color enum

* Update Pyrogram to v2.0.106.18

* Fix typehints for enums

* Changed requested_chat_id to requested_chat

* Remove url uploading from send_story/edit_story

* Update Pyrogram to v2.0.106.19

* Update API schema to Layer 167

* Add some errors to known errors

* Fix api compiling

* Update some methods and types to new layer

* Update Pyrogram to v2.0.106.20

* Update get_raw_peer_id and get_peer_id

* Refactor folders

* Fix usable-by description

* Add get_similar_channels to high-lvl

* Update topic parsing

* Fix chat color parsing

* Fix KeyboardButton

* Update Pyrogram to v2.0.106.21

* Docstrings for storage class

* Remove StorySkipped and StoryDeleted type

* Refactor ChatColor

* Remove MessageStory type

* Fix get_stories

* Remove StoryViews type

* Add some errors to known errors

* Update story methods description

* Remove edit_story method

* Fix color description

* Return bool from update_color

* Fix reply_color

* Fix story forward_from

* Remove StoryViews from compiler

* Update story method description

* Fix story parsing

* Update send_reaction description

* Add is_premium to Sticker

* Add tests for markdown

* Add some errors to known errors

* Update forum topic parsing in Message object

* Add forum filter

* Add edit_hidden field to Message object

* Add missing schedule_date to edit_message methods

* Update start_bot method

* Add topic_id to read_mentions and read_reactions method

* Fix is_forum field for supergroups only

* Fix read_stories in case max_id is missing

* Add update_color to compiler

* Update Pyrogram to v2.1.0

* Add support for multiple reactions in send_reaction

* Update Pyrogram to v2.1.1

* Update API schema to Layer 169

* Update Pyrogram to v2.1.2

* Ignore KeyError in get_dialogs and get_folders

* Fix requested chats

* Fix message.download in case of Story

* Add max_quantity to request_peer buttons

* Rename is_participants_hidden to is_members_hidden

* Update Pyrogram to v2.1.3

* Added filters `requested_chat` and `story` (pyrogram#18)

Add requested_chats and story filter

---------

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>

* Add missing optional to some methods description

* Add missing attributes to the Giveaway type

* Add some errors to known errors

* Update Pyrogram to v2.1.4

* Raise exception if auth key not found

* Add GiveawayResult type

* Update Pyrogram to v2.1.5

* Add missing privileges to the ChatPrivileges type

* Add missing privileges to the promote_chat_member method

* Add privileges to RequestPeer buttons

* Fix max_quantity error if it is None

* Refactor download_media

* Revert changes related to the Story.download

* Add invert_media parameter to send_message method

* Add new method send_web_page

* Update some methods and types description

* Update Pyrogram to v2.1.6

* Update API schema to Layer 170

* Update Pyrogram to v2.1.7

* Add support for self-destructing voice notes

* Add invert_media parameter to Message.reply_text method

* Update description of some methods

* Add missing attributes to the WebPage type

* Update Pyrogram to v2.1.8

* Update usable-by in send_reaction

* Add missing attributes to the Chat type

* Update description of some methods

* Add new method set_chat_ttl

* Add max_quantity parameter to KeyboardButton constructor

* Add new methods join/leave_folder

* Update Pyrogram to v2.1.9

* Fix update_folder method

* Update Pyrogram to v2.1.10

* Fix message.topic parsing in some cases

* Remove blockquote unparsing from markdown parser

* Add FloodWait except to media download (pyrogram#19)

Add FloodWait except to media download to handle this error from the script.

Before this change the exception would only be printed and the script would continue without a way to detect this error.

Co-authored-by: KNF Apps <jordyamc@users.noreply.github.com>

* Fix message.story parsing in some cases

* Remove export_story_link method

* Make Storage class an abstract base class

* Allow to specify a language pack

* Update Pyrogram to v2.1.11

* Update API schema to Layer 171

* Make url parameter optional for send_web_page

* Add reply_web_page bound method

* Update API schema to Layer 172

* Fix vectors deserialization

* Add some errors to known errors

* Fix session not getting saved to media_sessions in save_file method. (pyrogram#20)

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Add support for self-destructing video notes

* Rename some attributes

https://t.me/pyrogramchat/102

* Add protect_content parameter to reply_document method

* Update Pyrogram to v2.1.12

* Update python.yml

* Increase watchdog interval to 15 minutes

https://core.telegram.org/api/updates#recovering-gaps

* Fix MyBoost parsing

* Update API schema to Layer 173

* Move emoji argument above story_id

* Fix history TTL Service Message Parse (#21)

Co-authored-by: Colin <colin@colinshark.de>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
Co-authored-by: Akkia <AkkiaS7@outlook.com>

* Fix increment_story_views

* Add toggle_join_to_send method (#22)

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Fix `send_audio` not working as expected (pyrogram#23)

* Fix ConnectionResetError when only ping task (pyrogram#24)

* Update API schema to Layer 174

* Various improvements

* Add deleted parameter to ForumTopic class

* Update Pyrogram to v2.1.13

* Add `Str.html` and `Str.markdown` typing (#26)

* Add new method check_username

* Add RequestedChats type

* Fix message parsing in case of reply to story

* Update reply filter to work with stories

* Add is_contact_require_premium attribute to User class

* Add system_lang_code to Client and missing enums to SentCodeType (#27)

* Add init_connection_params parameter to Client class

* Add support for ApplyBoost service messages

* Add new parameters to send_code method

* Add raw attribute to Message class

* Add raw attribute to Story class

* Add ttl_seconds attribute to Voice and VideoNote class

* Fix parameter descriptions

* Update Pyrogram to v2.1.14

* Fix get_folders

* Add show_above_text to Message.edit bound method

* Add quotes to markdown

* Add custom emojis to markdown

* Update check_username method

* Add skip_updates parameter to Client class

* Fix message parsing in case of reply from private chat

* Fix max_concurrent_transmissions typing (#31)

* Allow to specify a limit to message cache size

* Recover updates in date ascending order

* Update API schema to Layer 176

* Add business_info attribute to Chat type

* Update Pyrogram to v2.1.15

* Remove unnecessary types from docs compiler

* Fix recovering gaps in case of private channel

* Add color attribute to Folder

* Add new toggle_folder_tags method

* Fix get_folders

* Refactor download_media

* Refactor sqlite storage

* Add missing methods to docs compiler

* Add hide_sender_name and hide_captions parameters to forward

* Add no_sound parameter to send_video methods

* Add new get_stickers method

* Add sender_boost_count attribute to Message class

* Add new get_scheduled_messages method

* Add typehints to all of the decorators classes (#34)

* Update Pyrogram to v2.1.16

* Renamed ttl_seconds to view_once in send_video_note and send_voice

* Add is_public parameter to set_profile_photo and minor fixes (#35)

* Fix invalid usage of input_message_content.write method (without await).

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Fix promote_chat_member using can_post_stories for edit_story permission.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Refactor get_forum_topics_by_id method and make sure to pass messages parameter to it (if it exists).

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Add fallback parameter to set_profile_photo method.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Fix download_media method not checking for file_id.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>

* Rename fallback to is_public

* Revert get_forum_topics_by_id.py

---------

Signed-off-by: Aliwoto <aminnimaj@gmail.com>
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>

* Fix get_scheduled_messages

* Update API schema to Layer 177

* Add birthday attribute to Chat class

* Add new update_birthday method

* Add some errors to known errors

---------

Signed-off-by: Aliwoto <aminnimaj@gmail.com>
Co-authored-by: KurimuzonAkuma <arturgayauskas@gmail.com>
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Co-authored-by: CometovArt <cometovart@ya.ru>
Co-authored-by: Aliwoto <woto@kaizoku.cyou>
Co-authored-by: Kroks4502 <99325746+Kroks4502@users.noreply.github.com>
Co-authored-by: Albert Zuev <63642425+iamnalinor@users.noreply.github.com>
Co-authored-by: ZeN <artaganmalsagov07@gmail.com>
Co-authored-by: CometovArt <62966578+CometovArt@users.noreply.github.com>
Co-authored-by: Pranav Saraswat <85411336+Pranav-Saraswat@users.noreply.github.com>
Co-authored-by: Yehuda lev <94082865+yehuda-lev@users.noreply.github.com>
Co-authored-by: aoleg94 <aoleg94@users.noreply.github.com>
Co-authored-by: KNF Apps <jordyamc@users.noreply.github.com>
Co-authored-by: AmarnathCJD <amarnathc2026@cs.ajce.in>
Co-authored-by: ALi.w <aminnimaj@gmail.com>
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
Co-authored-by: Colin <colin@colinshark.de>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
Co-authored-by: Akkia <AkkiaS7@outlook.com>
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Co-authored-by: sliva0 <48382801+sliva0@users.noreply.github.com>
Co-authored-by: Gor <47748749+ke1io@users.noreply.github.com>
Co-authored-by: L <60060180+zawsq@users.noreply.github.com>
Co-authored-by: tg:@mars_hall <mars.hall.tg.fck@gmail.com>
meybj pushed a commit to meybj/pyrogram that referenced this pull request May 30, 2024
Add requested_chats and story filter

---------

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants