Layer 220
MessagesSearchCounter
Indicates how many results would be found by a messages. search call with the same parameters
constructor
messages.searchCounter#e844ebff flags:# inexact:flags.1?true filter:MessagesFilter count:int = messages.SearchCounter;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Inexact | flags.1?true | If set, the results may be inexact |
| Filter | MessagesFilter | Provided message filter |
| Count | int | Number of results that were found server-side |
Returns
messages.SearchCounterGogram Example
// Creating MessagesSearchCounter constructor obj := &tg.MessagesSearchCounter{ Filter: &tg.MessagesFilter{}, Count: 0, // Optional fields: // Inexact: true, }