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

Sending messages with given random id #267

Open
Amesaru opened this issue Sep 29, 2024 · 1 comment
Open

Sending messages with given random id #267

Amesaru opened this issue Sep 29, 2024 · 1 comment

Comments

@Amesaru
Copy link

Amesaru commented Sep 29, 2024

It would be very nice, if you allowed passing random_id parameter to gramers_client::Client::send_message, instead of generating random_id every time.
We want to use it, to be sure we don't send duplicate messages to users, generating random_id from specific parameters and not just a random one

@Lonami
Copy link
Owner

Lonami commented Sep 29, 2024

Feel free to send a PR adding it to InputMessage. And please document the usecase, because I've never seen this explicitly requested for this reason before.

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

2 participants