Skip to content

Instantly share code, notes, and snippets.

@sunnya97
Last active August 9, 2020 06:00
Show Gist options
  • Save sunnya97/933f6489448ca52796eb161adc6e9233 to your computer and use it in GitHub Desktop.
Save sunnya97/933f6489448ca52796eb161adc6e9233 to your computer and use it in GitHub Desktop.
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