skip to Main Content

How Do I Send a Message to a Privately Linked Group in Telegram with Python? – Telegram API

from telethon import TelegramClient, events, sync client.start() destination_group_invite_link=grouplink #t.me/xxxxxxx entity=client.get_entity(destination_group_invite_link) client.send_file(entity=entity, message="xxxx") With this code I can send message to public linked group. But how do I send a message to a group with a private link? #t.me/+xxxxxxxxx

VIEW QUESTION

How to send a message through Pyrogram? – Telegram API

from pyrogram import Client from pyrogram.errors import PeerFlood import time vubor = input('Нажмите Enter чтобы запустить рассылку! ') api_id = 12905662 api_hash = "a7cfcd44cb95d26d7529d547c9a1d9ef" app = Client('my_accont11', api_id, api_hash) if vubor == '': def rassulka(app): try: with open('username.txt', 'r') as…

VIEW QUESTION
Back To Top
Search