Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I change the profile image on chat. #5

Closed
sooftware opened this issue Dec 28, 2021 · 4 comments
Closed

How can I change the profile image on chat. #5

sooftware opened this issue Dec 28, 2021 · 4 comments

Comments

@sooftware
Copy link

Thanks for your great project!
I want to change the profile image on chat. How can I?

@yashppawar
Copy link
Member

Hey, sorry for late reply
you can do that easily by using the avatar_style and seed, we are using the dicebear API to get the profile picture for now, you can use any image which they provide, by providing right style and seed.

message(my_message, avatar_style="avataaars", seed=123)

see all available styles on dicebear -> https://avatars.dicebear.com/styles

@sooftware
Copy link
Author

Thank you !!

@subhajit2001
Copy link

How do we set the seed as you have mentioned @yashppawar

@yashppawar
Copy link
Member

How do we set the seed as you have mentioned @yashppawar

by changing the value for the seed parameter of message()

message(my_message, seed=32)
message(my_message, seed=42)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants