channels.checkSearchPostsFlood
Check if the specified global post search » requires payment.
func (c *Client) ChannelsCheckSearchPostsFlood(ctx context.Context, request *ChannelsCheckSearchPostsFloodRequest) (*SearchPostsFlood, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ChannelsCheckSearchPostsFlood(ctx, &tg.ChannelsCheckSearchPostsFloodRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *SearchPostsFlood
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Query | string | — | The query. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
channels.checkSearchPostsFlood#22567115