mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-30 12:24:52 +00:00
* this commit will fix issues with global_search()
I was recently getting this error on app.global_search() method:
```
File "/home/poki/.local/lib/python3.8/site-packages/pyrogram/methods/messages/search_global.py", line 71, in search_global
raw.functions.messages.SearchGlobal(
TypeError: __init__() missing 3 required keyword-only arguments: 'filter', 'min_date', and 'max_date'
```
Suprisingly no one has opened an issue for this except me.
Here is the context: https://t.me/pyrogramchat/281087
I personally use this method to fetch my global searches into my userbot with is an actual bot. little hacky >_o
* Added filter= parameter
- An Optional Parameter for global search
* Update search_global.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| copy_message.py | ||
| delete_messages.py | ||
| download_media.py | ||
| edit_inline_caption.py | ||
| edit_inline_media.py | ||
| edit_inline_reply_markup.py | ||
| edit_inline_text.py | ||
| edit_message_caption.py | ||
| edit_message_media.py | ||
| edit_message_reply_markup.py | ||
| edit_message_text.py | ||
| forward_messages.py | ||
| get_history.py | ||
| get_history_count.py | ||
| get_media_group.py | ||
| get_messages.py | ||
| inline_session.py | ||
| iter_history.py | ||
| read_history.py | ||
| retract_vote.py | ||
| search_global.py | ||
| search_messages.py | ||
| send_animation.py | ||
| send_audio.py | ||
| send_cached_media.py | ||
| send_chat_action.py | ||
| send_contact.py | ||
| send_dice.py | ||
| send_document.py | ||
| send_location.py | ||
| send_media_group.py | ||
| send_message.py | ||
| send_photo.py | ||
| send_poll.py | ||
| send_sticker.py | ||
| send_venue.py | ||
| send_video.py | ||
| send_video_note.py | ||
| send_voice.py | ||
| stop_poll.py | ||
| vote_poll.py | ||