How to add Multi Force Subscribe in any Repo
FSUB Multi Force Subscribe is a feature that force yours to join the particular channel wheather it's private or public ita doesn't matter before using your telegram bot. Follow the below steps to add multi force subscribe in your repository. 1. Add the code given below in your "config.py" Or "info.py" file import os from typing import List IS_FSUB = bool(os.environ.get("FSUB", True)) # Set "True" For Enable Force Subscribe AUTH_CHANNELS = list(map(int, os.environ.get("AUTH_CHANNEL", "-100xxxxxxxxx -100xxxxxxx").split())) # Add Multiple channel id 2. Now create a new file "fsub.py" from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from config import AUTH_CHANNELS from pyrogram import Client from pyrogram.types import Message from typing import List from pyrogram.errors import UserNotParticipant async def get_fsub(bot: Client, message: Message) -> bool: tb = await bot...