We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v0.10.3
ChatID can't be empty even if it's optional
ChatID to be able to use in optional fields
// MarshalJSON returns JSON representation of ChatID func (c ChatID) MarshalJSON() ([]byte, error) { if c.ID != 0 { return json.Marshal(c.ID) } if c.Username != "" { return json.Marshal(c.Username) } return nil, errors.New("chat ID and username are empty") }
The text was updated successfully, but these errors were encountered:
Allowed empty ChatID (#23)
023074f
Resolved in v0.10.4
Sorry, something went wrong.
mymmrac
No branches or pull requests
💬 Telego version
v0.10.3
👾 Issue description
ChatID can't be empty even if it's optional
⚡️ Expected behavior
ChatID to be able to use in optional fields
🧐 Code example
The text was updated successfully, but these errors were encountered: