pyrofork/pyrogram
ポキ 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
..
connection Always run crypto-related functions in the dedicated thread 2021-01-02 18:45:43 +01:00
crypto Update copyright notice 2021-01-01 22:58:48 +01:00
errors Update copyright notice 2021-01-01 22:58:48 +01:00
handlers Update copyright notice 2021-01-01 22:58:48 +01:00
methods Fix issues with global_search(): add the filter parameter (#589) 2021-01-14 21:49:51 +01:00
parser Update copyright notice 2021-01-01 22:58:48 +01:00
raw Fix wrong excepted error 2021-01-10 16:46:16 +01:00
session Always run crypto-related functions in the dedicated thread 2021-01-02 18:45:43 +01:00
storage Update copyright notice 2021-01-01 22:58:48 +01:00
types Fix small typo: Message.unpin was pinning 2021-01-12 22:26:24 +01:00
__init__.py Update Pyrogram to v1.1.11 2021-01-12 22:26:59 +01:00
client.py Update copyright notice 2021-01-01 22:58:48 +01:00
dispatcher.py Update copyright notice 2021-01-01 22:58:48 +01:00
emoji.py Update copyright notice 2021-01-01 22:58:48 +01:00
file_id.py Update copyright notice 2021-01-01 22:58:48 +01:00
filters.py Update copyright notice 2021-01-01 22:58:48 +01:00
mime_types.py Update copyright notice 2021-01-01 22:58:48 +01:00
scaffold.py Update copyright notice 2021-01-01 22:58:48 +01:00
sync.py Update copyright notice 2021-01-01 22:58:48 +01:00
syncer.py Update copyright notice 2021-01-01 22:58:48 +01:00
utils.py Always run crypto-related functions in the dedicated thread 2021-01-02 18:45:43 +01:00