This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| System: | |
| Kernel: 6.14.0-36-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 | |
| Desktop: Cinnamon v: 6.4.8 tk: GTK v: 3.24.41 wm: Muffin dm: LightDM | |
| Distro: Linux Mint 22.2 Zara base: Ubuntu 24.04 noble | |
| Machine: | |
| Type: Laptop System: LENOVO product: 82SB v: IdeaPad Gaming 3 15ARH7 serial: <superuser required> | |
| Chassis: type: 10 v: IdeaPad Gaming 3 15ARH7 serial: <superuser required> | |
| Mobo: LENOVO model: LNVNB161216 v: SDK0T76463 WIN serial: <superuser required> | |
| part-nu: LENOVO_MT_82SB_BU_idea_FM_IdeaPad Gaming 3 15ARH7 UEFI: LENOVO v: JNCN52WW(V2.12) | |
| date: 10/04/2024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from telethon.sync import TelegramClient | |
| from telethon.tl.functions.account import DeleteAccountRequest | |
| api_id = 123456 # Replace with your API ID. | |
| api_hash = 'xxxxxx' # Replace with your API Hash. | |
| with TelegramClient('delete_me', api_id, api_hash) as client: | |
| try: | |
| client(DeleteAccountRequest( | |
| reason='User requested account deletion' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from telethon import TelegramClient | |
| from telethon.tl.types import PeerChannel | |
| import asyncio | |
| api_id = xxxxxx # Replace with your API ID. | |
| api_hash = 'your_api_hash' # Replace with your API Hash. | |
| getting_entity_ID = 'publicgroupusername/publicchannelusername' # No @ symbol, enter username only. | |
| client = TelegramClient('session_name', api_id, api_hash) |