Skip to content

Conversation

@z44d
Copy link
Contributor

@z44d z44d commented Jun 20, 2024

  • 1 - Add ChatBackground type.

  • 2 - Add background field for Chat type.

  • Note: only available for UserFull, and ChannelFull, ChatFull doesn't have 'wallpaper' field.

  • 3 - Fix type hint for pinned_message in Chat type ( the docs said it must be Message ).

  • 4 - Update docs.

Note:

  • Every thing is tested, the user must download the background from it's file_id .

@z44d z44d changed the title Add background field and fix. Add ChatBackground type and fix. Jun 21, 2024
@HitaloM HitaloM added the enhancement New feature, request or code enhancement. label Jun 21, 2024
@HitaloM
Copy link
Member

HitaloM commented Jun 21, 2024

I still need to test it myself, but the code doesn't seem to have any problems at first glance, what's missing is proper formatting and linting according to the project's standards (with ruff).

https://github.com/hydrogram/hydrogram/blob/dev/CONTRIBUTING.md#setting-up-development-environment

@HitaloM HitaloM requested a review from alissonlauffer June 21, 2024 14:21
Copy link
Member

@alissonlauffer alissonlauffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome.

Copy link
Member

@HitaloM HitaloM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good, once the requested changes have been made, the pull request should be merged.

@z44d z44d requested a review from HitaloM June 22, 2024 19:33
@alissonlauffer alissonlauffer merged commit 34d0c02 into hydrogram:dev Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, request or code enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants