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
from pyrogram import Client | |
# get these values from api.telegram.org | |
api_id = "API_ID" | |
api_hash = "API_HASH" | |
async def main(): | |
async with Client(":memory:", api_id=int(api_id), api_hash=api_hash) as app: | |
# Generate the session string |
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
import pyrogram | |
import pywhatkit | |
# Replace with your Pyrogram API credentials | |
API_ID = 'YOUR_API_ID' | |
API_HASH = 'YOUR_API_HASH' | |
BOT_TOKEN = 'YOUR_BOT_TOKEN' | |
# Initialize the Pyrogram client | |
app = pyrogram.Client('my_bot', api_id=API_ID, api_hash=API_HASH, bot_token=BOT_TOKEN) |
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
<lib-ngx-image-zoom | |
[thumbImage]='imageUrl' [fullImage]=imageUrl maxZoomRatio="10" magnification="1" | |
enableScrollZoom="true" altText="img-not-found"> | |
</lib-ngx-image-zoom> |
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
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 |
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
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 |