Layer 227
method Users
stories.searchPosts#d1810907 flags:# hashtag:flags.0?string area:flags.1?MediaArea peer:flags.2?InputPeer offset:string limit:int = stories.FoundStories;

Parameters

Name Type Description
Hashtag flags .0? string Hashtag (without the # )
Area flags .1? MediaArea A media Area Geo Point or a media Area Venue. Note media Area Geo Point areas may be searched only if they have an associated address.
Peer flags .2? InputPeer If set, returns only stories posted by this peer.
Offset string Offset for pagination: initially an empty string, then the next_offset from the previously returned stories. found Stories.
Limit int Maximum number of results to return, see pagination

Gogram Example

// StoriesSearchPosts - positional arguments
result, err := client.StoriesSearchPosts("Hello, World!", nil, nil, "Hello, World!", 42)
if err != nil {
    // handle error
}
// result is *tg.StoriesFoundStories

Possible Errors

Code Type Description
400 HASHTAG_INVALID The specified hashtag is invalid.