Wizard Book


Programming Python, Web, Android

Python : Mengirimkan Pesan ke Telegram Menggunakan Telethon

Mengirim pesan ke Telegram secara otomatis menggunakan Telethon

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient("", "", "") as client:
    result = client(functions.messages.SendMessageRequest(
        peer='+6281999999999',
        message='Hello there! Tes Kirim Otomatis Dari Python Bos',
        no_webpage=True
    ))
    print(result.stringify())

email : contohprogram.com@gmail.com
WA : +6289671400363