Skip to content

Instantly share code, notes, and snippets.

@nuhmanpk
nuhmanpk / broadcast.py
Last active November 10, 2024 17:08
Broadcasting in Bots Pyrogram
from userbase import present_in_userbase, add_to_userbase, get_users # userbase.py is Attached below
import time
@bughunter0.on_message(filters.private & filters.command('broadcast') & filters.user(OWNER) & filters.reply)
async def broadcast(client: bughunter0, message: Message):
broadcast_msg = message.reply_to_message
txt = await message.reply(text = 'Staring....')
user_ids = await get_users()
success = 0
deleted = 0
@nuhmanpk
nuhmanpk / ForceSub.py
Last active December 27, 2024 18:04
Add Force Subscribe To Your Bot
import pyrogram
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from pyrogram.types import User, Message
from pyrogram.errors import UserNotParticipant
UPDATE_CHANNEL= "channel name without '@'"
# Follow me on Github - Github.com/nuhmanpk
# Join @BugHunterBots for more
@raulqf
raulqf / Install_OpenCV4_CUDA12.6_CUDNN8.9.md
Last active May 19, 2025 05:31
How to install OpenCV 4.10 with CUDA 12 in Ubuntu 24.04

Install OpenCV 4.10 with CUDA 12.6 and CUDNN 8.9 in Ubuntu 24.04

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries: