Created
January 10, 2020 00:05
-
-
Save Aero-Blue/b226cd71e29d35de78a0d4a7dee6a2ad to your computer and use it in GitHub Desktop.
Example of sending messages using Telethon
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
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