Last active
August 9, 2020 06:00
-
-
Save sunnya97/933f6489448ca52796eb161adc6e9233 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# GET YOUR OWN VALUES FROM https://my.telegram.org/apps | |
api_id = 0 | |
api_hash = '' | |
# Insert Telegram Group ID | |
group_id = -1001431173533 | |
client = TelegramClient('anon', api_id, api_hash) | |
async def main(): | |
me = await client.get_me() | |
while true: | |
message = await client.send_message(group_id, 'Soliloquoy Mining', silent=True) | |
await message.delete() | |
with client: | |
client.loop.run_until_complete(main()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment