Skip to content

Instantly share code, notes, and snippets.

@Aero-Blue
Created January 10, 2020 00:05
Show Gist options
  • Save Aero-Blue/b226cd71e29d35de78a0d4a7dee6a2ad to your computer and use it in GitHub Desktop.
Save Aero-Blue/b226cd71e29d35de78a0d4a7dee6a2ad to your computer and use it in GitHub Desktop.
Example of sending messages using Telethon
with TelegramClient(PHONE_NUMBER, API_ID, API_HASH) as client:
user_list = ["@user1", "@user2", "@user3"]
for user in user_list:
client.send_message(user, "Some message") # Send message to each user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment