9194
Share your bots, comment, test and have fun! Rules: Speak in English, Don't spam/advertise channels or groups that aren't bot related, respect other members, use common sense. @BOTLIST 🌟 @BotListBot 🤖 @BotListCollections 📔
Thrpugh account or you have admin in both channels
Читать полностью…
For downloading from tg to vps you need to make worker, I did it with telethon but I never tried pyrogram.
Something like this
async def smart_download(client, message, destination, progress_callback=None):
try:
media = getattr(message, 'media', None)
if not media: return None
os.makedirs(os.path.dirname(os.path.abspath(destination)), exist_ok=True)
file_path = destination
document = getattr(media, 'document', None)
if not document or getattr(document, 'size', 0) < 8 * 1024 * 1024:
return await client.download_media(message, file=file_path, progress_callback=progress_callback)
dc_id = getattr(document, 'dc_id', client.session.dc_id)
input_location = InputDocumentFileLocation(
id=document.id, access_hash=document.access_hash,
file_reference=document.file_reference, thumb_size=""
)
file_size = document.size
part_size = 512 * 1024
total_parts = math.ceil(file_size / part_size)
with open(file_path, "wb") as f:
f.seek(file_size - 1)
f.write(b"\0")
downloaded_bytes, workers = 0, 3
semaphore = asyncio.Semaphore(workers)
async def download_worker(part_index):
nonlocal downloaded_bytes
offset, limit = part_index * part_size, part_size
async with semaphore:
request = GetFileRequest(location=input_location, offset=offset, limit=limit)
for attempt in range(3):
try:
if dc_id == client.session.dc_id:
result = await client(request)
else:
sender = await client._borrow_exported_sender(dc_id)
try: result = await sender.send(request)
finally: await client._return_exported_sender(sender)
with open(file_path, "r+b") as f:
f.seek(offset)
f.write(result.bytes)
downloaded_bytes += len(result.bytes)
if progress_callback:
cb = progress_callback(downloaded_bytes, file_size)
if inspect.isawaitable(cb): await cb
break
except Exception:
if attempt == 2: raise
await asyncio.sleep(1)
tasks = [asyncio.create_task(download_worker(i)) for i in range(total_parts)]
await asyncio.gather(*tasks)
return file_path
except Exception as e:
return await client.download_media(message, file=destination, progress_callback=progress_callback)
workers = 0, 3
A bot for converting simple latex formula to math output, using new markdown formatting of Telegram 12.8 for richtexts
Читать полностью…
Shhh... quiet now.
Muted 401.
Reason:
This isn't a webseries request group. Bots / channels that offer web series are illegal. telegram.org/tos
Is there any bot which split long video into 30-50sec clips?
Читать полностью…
Hmm, I wanted to promote my bot. I guess I'll have to look for other ways.
Читать полностью…
If u want to anything just message me I'm giving u
Читать полностью…
Well hostinger has a good support u can get help from there too
Читать полностью…
Please, does anyone have a bot that can transfer content from one channel to another?
Читать полностью…
Hey guys, I'm downloading some files from Telegram to my VPS using a Pyrogram user session, but my download speed is maxing out at only 4 MB/s.
My VPS specs are: 6 vCPU Cores, 18 GB RAM, 1 TB SSD, 600 Mbit/s Port, and Unlimited Traffic.
Why am I getting such low speeds? Are there some Telegram limits I should know about?
Any best and cheap server to keep my bots online 24/7
Читать полностью…
It is not providing the actual results what I want.
Читать полностью…
Hey there, the botlist bot does not react on commands /new ?
Читать полностью…
Daily Economy Bot
An economy system designed for long-term engagement.
— Earn money from activity
— Complete daily and weekly missions
— Level up and unlock perks
— Challenge others in duels
— Run heists and collect bounties
— Climb wealth and XP leaderboards
Supports the latest Telegram Rich Message Formatting
@DailyEconomyBot
I would suggest first go through a breif of there settings
Читать полностью…
i can change and route wuth cloudflair later right?
Читать полностью…