How to get a windows window to the foreground?

There is a script in which you need to pull the telegram window to the front, I have actively used pyautogui, but there is something of such a function is not found, c pywinauto failed to understand, maybe someone here will advise how to implement it.
June 5th 19 at 21:56
2 answers
June 5th 19 at 21:58
Need to put Pywin32 (win32api)

hwnd = win32gui.FindWindow(None,"Telegram")
win32gui.ShowWindow(hwnd, win32con.SW_NORMAL)
June 5th 19 at 22:00
Or using pywinauto:
from pywinauto.application import Application

app = Application().connect(title_re="Telegram")
app.window(title_re='Telegram \(\d+\)').set_focus()

In General, I see the whole client of the Telegram made some custom items based on Qt5. Not a normal name Inspect.exe is not visible. Some pictures. And still the window will not move from the centre is a bug or so brilliantly conceived?

Find more questions by tags Python