Skip to content

Commit 29fa3ec

Browse files
committed
Remove unneeded util functions and improve docs
1 parent 1dc4df8 commit 29fa3ec

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pyrogram/utils.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,12 @@
3333

3434

3535
async def ainput(prompt: str = "", *, hide: bool = False):
36+
"""Just like the built-in input, but async"""
3637
with ThreadPoolExecutor(1) as executor:
3738
func = functools.partial(getpass if hide else input, prompt)
3839
return await asyncio.get_event_loop().run_in_executor(executor, func)
3940

4041

41-
def get_offset_date(dialogs):
42-
for m in reversed(dialogs.messages):
43-
if isinstance(m, raw.types.MessageEmpty):
44-
continue
45-
else:
46-
return m.date
47-
else:
48-
return 0
49-
50-
5142
def get_input_media_from_file_id(
5243
file_id: str,
5344
expected_file_type: FileType = None

0 commit comments

Comments
 (0)