ó
    ÉìÓiý  ã                   óP   • S SK Jr  S SKrS SKJr  S SKJr  S SKJr   " S S5      rg)é    )ÚAsyncGeneratorN)Úraw)Útypes)Úutilsc            
       ó:   • \ rS rSr SSSS\S\S\S   4S jjrS	rg
)ÚSearchPostsé   Úselfzpyrogram.ClientÚhashtagÚlimitÚreturn)ztypes.MessageNc                ó^  #   • Sn[        U5      =(       d    Sn[        SU5      nSn[        R                  R	                  5       nSn [
        R                  " U U R                  [        R                  R                  R                  UUUUUS9SS9I Sh  v•N SS9I Sh  v•N nU(       d  gUS	   n	[
        R                  " U	R                  5      nU R                  U	R                  R                  5      I Sh  v•N nU	R                  nU H  n
U
7v •  US
-  nX4:¼  d  M    g   Mß   N‘ Nˆ N07f)a¤  Search posts globally by hashtag.

If you want to get the posts count only, see :meth:`~pyrogram.Client.search_posts_count`.

.. include:: /_includes/usable-by/users.rst

Parameters:
    hashtag (``str``):
        Text query string.

    limit (``int``, *optional*):
        Limits the number of posts to be retrieved.
        By default, no limit is applied and all posts are returned.

Returns:
    ``Generator``: A generator yielding :obj:`~pyrogram.types.Message` objects.

Example:
    .. code-block:: python

        # Search for "#pyrogram". Get the first 50 results
        async for message in app.search_posts("#pyrogram", limit=50):
            print(message.text)
r   l        éd   )r   Úoffset_rateÚoffset_peerÚ	offset_idr   é<   )Úsleep_thresholdN)Úreplieséÿÿÿÿé   )ÚabsÚminr   r   ÚInputPeerEmptyr   Úparse_messagesÚinvokeÚ	functionsÚchannelsr   Údatetime_to_timestampÚdateÚresolve_peerÚchatÚid)r
   r   r   ÚcurrentÚtotalÚoffset_dater   r   ÚmessagesÚlastÚmessages              ÚS/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/messages/search_posts.pyÚsearch_postsÚSearchPosts.search_posts   s'  é € ð: ˆÜE“
×'˜wˆÜC˜“ˆàˆÜ—i‘i×.Ñ.Ó0ˆØˆ	àÜ"×1Ò1ØØ—k‘kÜ—M‘M×*Ñ*×6Ñ6Ø 'Ø$/Ø$/Ø"+Ø#ð 7ð ð %'ð "ð 	÷ 	ð ñ÷ ˆHö Øà˜B‘<ˆDä×5Ò5°d·i±iÓ@ˆKØ $× 1Ñ 1°$·)±)·,±,Ó ?×?ˆKØŸ™ˆIã#Ø“à˜1‘àÕ#Ùñ $ñ3 ñ	ññ* @ùs=   ‚BD-ÂD'
Â
D-Â D)Â!AD-Ã:D+Ã;"D-Ä!D-Ä)D-Ä+D-© N)r   )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚstrÚintr   r+   Ú__static_attributes__r-   ó    r*   r   r      sA   † ð ñDØðDàðDð ðDð 
Ð-Ñ	.÷	Dð Dr5   r   )Útypingr   Úpyrogramr   r   r   r   r-   r5   r*   Ú<module>r8      s"   ðõ& "ã Ý Ý Ý ÷Eò Er5   