Layer 220
SearchPostsFlood
Indicates if the specified global post search requires payment.
constructor
searchPostsFlood#3e0b5b6a flags:# query_is_free:flags.0?true total_daily:int remains:int wait_till:flags.1?int stars_amount:long = SearchPostsFlood;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| QueryIsFree | flags.0?true | The specified query is free (and it will not use up free search slots ). |
| TotalDaily | int | Total number of daily free search slots. |
| Remains | int | Remaining number of free search slots. |
| WaitTill | flags.1?int | If there are no more search slots, specifies the unixtime when more search slots will be available. |
| StarsAmount | long | The number of Telegram Stars to pay for each non-free search. |
Returns
SearchPostsFloodGogram Example
// Creating SearchPostsFlood constructor obj := &tg.SearchPostsFlood{ TotalDaily: 0, Remains: 0, StarsAmount: int64(0), // Optional fields: // QueryIsFree: true, // WaitTill: 0, }