pyrofork/pyrogram/methods/messages
ポキ 54b92c0892
Fix issues with global_search(): add the filter parameter (#589)
* 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>
2021-01-14 21:49:51 +01:00
..
__init__.py Update copyright notice 2021-01-01 22:58:48 +01:00
copy_message.py Update copyright notice 2021-01-01 22:58:48 +01:00
delete_messages.py Update copyright notice 2021-01-01 22:58:48 +01:00
download_media.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_inline_caption.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_inline_media.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_inline_reply_markup.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_inline_text.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_message_caption.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_message_media.py Fix captions not being preserved when editing media 2021-01-08 09:02:29 +01:00
edit_message_reply_markup.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_message_text.py Update copyright notice 2021-01-01 22:58:48 +01:00
forward_messages.py Remove obsolete example from docs (#576) 2021-01-10 16:00:38 +01:00
get_history.py Update copyright notice 2021-01-01 22:58:48 +01:00
get_history_count.py Update copyright notice 2021-01-01 22:58:48 +01:00
get_media_group.py Update copyright notice 2021-01-01 22:58:48 +01:00
get_messages.py Update copyright notice 2021-01-01 22:58:48 +01:00
inline_session.py Fix DC sessions for inline message edits (#585) 2021-01-10 15:59:27 +01:00
iter_history.py Update copyright notice 2021-01-01 22:58:48 +01:00
read_history.py Update copyright notice 2021-01-01 22:58:48 +01:00
retract_vote.py Update copyright notice 2021-01-01 22:58:48 +01:00
search_global.py Fix issues with global_search(): add the filter parameter (#589) 2021-01-14 21:49:51 +01:00
search_messages.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_animation.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_audio.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_cached_media.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_chat_action.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_contact.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_dice.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_document.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_location.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_media_group.py Fix captions not being preserved when editing media 2021-01-08 09:02:29 +01:00
send_message.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_photo.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_poll.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_sticker.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_venue.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_video.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_video_note.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_voice.py Update copyright notice 2021-01-01 22:58:48 +01:00
stop_poll.py Update copyright notice 2021-01-01 22:58:48 +01:00
vote_poll.py Update copyright notice 2021-01-01 22:58:48 +01:00