HTTP 400 · Bad Request
FILTER_NOT_SUPPORTED
The specified filter cannot be used in this context.
HTTP 400
Folders / Filters
When & why it happens
The specified filter cannot be used in this context. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "FILTER_NOT_SUPPORTED" {
// handle this error
}
}