mirror of https://github.com/coddrago/Heroku
Update README, fix some bugs
parent
11c48c6e7b
commit
0b235a6adb
26
README.md
26
README.md
|
@ -1,23 +1,23 @@
|
|||

|
||||

|
||||
|
||||
[](https://cloud.okteto.com/#/deploy?repository=https://github.com/hikariatama/Hikka)
|
||||
[](https://cloud.okteto.com/#/deploy?repository=https://github.com/hikariatama/Hikka)
|
||||
|
||||
## Changes
|
||||
|
||||
- Latest Telegram Layers with reactions, video stickers and other stuff
|
||||
- Security improvements
|
||||
- UI/UX improvements
|
||||
- New core modules
|
||||
- Okteto cloud deployment support
|
||||
- Quick bug fixes (compared to official FTG)
|
||||
- Inline Buttons, available not only for core modules, but for every developer
|
||||
- Inline Galleries for every developer
|
||||
- Full backward compatibility with older version and with official FTG\GeekTG modules
|
||||
- 🆕 Latest Telegram Layers with reactions, video stickers and other stuff
|
||||
- 🔓 Security improvements
|
||||
- 🎨 UI/UX improvements
|
||||
- 📼 New core modules
|
||||
- ☁️ Okteto cloud deployment support
|
||||
- ⏱ Quick bug fixes (compared to official FTG)
|
||||
- ▶️ Inline Buttons, available not only for core modules, but for every developer
|
||||
- 🖼 Inline Galleries for every developer
|
||||
- 🔁 Full backward compatibility with older version and with official FTG\GeekTG modules
|
||||
|
||||
---
|
||||

|
||||
|
||||
|
||||
## Small, but useful
|
||||
## Last but not the least
|
||||
|
||||
### InlineLogs - traceback directly in message, caused error
|
||||

|
||||
|
|
|
@ -424,7 +424,7 @@ class Hikka:
|
|||
connection_retries=None,
|
||||
)
|
||||
|
||||
client.start(phone=raise_auth)
|
||||
client.start(phone=raise_auth if web_available else lambda: input("Phone: "))
|
||||
client.phone = phone
|
||||
|
||||
self.clients.append(client)
|
||||
|
@ -447,7 +447,7 @@ class Hikka:
|
|||
)
|
||||
continue
|
||||
except InteractiveAuthRequired:
|
||||
print("Session was terminated and re-auth is required")
|
||||
print(f"Session {session} was terminated and re-auth is required")
|
||||
continue
|
||||
|
||||
def _init_loop(self) -> None:
|
||||
|
|
|
@ -80,6 +80,9 @@ class Web:
|
|||
return self.clients_set.wait()
|
||||
|
||||
def _check_session(self, request) -> bool:
|
||||
if not main.hikka.clients:
|
||||
return True
|
||||
|
||||
return request.cookies.get("session", None) in self._sessions
|
||||
|
||||
async def set_tg_api(self, request):
|
||||
|
@ -189,7 +192,7 @@ class Web:
|
|||
|
||||
async def web_auth(self, request):
|
||||
if self._check_session(request):
|
||||
return web.Response(body=request.cookies.get("session"))
|
||||
return web.Response(body=request.cookies.get("session", "unauthorized"))
|
||||
|
||||
token = rand(8)
|
||||
|
||||
|
|
Loading…
Reference in New Issue