Changed device
This commit is contained in:
parent
1d7f87a7a0
commit
90f74110a9
|
@ -28,7 +28,7 @@ from telethon.errors.rpcerrorlist import (
|
||||||
|
|
||||||
class PaperClient(TelegramClient):
|
class PaperClient(TelegramClient):
|
||||||
def __init__(self, session: str | Session) -> None:
|
def __init__(self, session: str | Session) -> None:
|
||||||
api = API.TelegramDesktop.Generate("linux", "paper")
|
api = API.TelegramAndroid.Generate("paper")
|
||||||
super().__init__(f"sessions/{session}.session", api)
|
super().__init__(f"sessions/{session}.session", api)
|
||||||
|
|
||||||
async def invite_self(self, group: Entity | EntityLike):
|
async def invite_self(self, group: Entity | EntityLike):
|
||||||
|
|
Loading…
Reference in New Issue