# This file is a part of TG-FileStreamBot from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, Message from WebStreamer.vars import Var class Language: def __new__(cls, message: Message): return getattr(cls, getattr(message.from_user, 'language_code', "en"), cls.en) available = ['en', 'language_code'] class en: START_TEXT: str = """ 👋 Hey,{}\n I'm Telegram Files Streaming Bot as well as a Direct Links Generator\n Click on Help to get more information\n WARNING 🚸\n 🔞 Adult content leads to a permanent ban.\n\n""" HELP_TEXT: str = """ - Send me any file (or) media from Telegram. - I will provide an external direct download link! - Download link with the fastest speed 🔸 WARNING 🚸\n 🔞 Adult content leads to a permanent ban.\n Contact developer (or) report bugs : [ Click Here ]""" ABOUT_TEXT: str = """ Maintained By: DeekshithSH Source Code: TG-FileStreamBot Based On: [TG-FileStreamBot] Version: {} Last Updated: 23 March 2025 """ STREAM_MSG_TEXT: str = """ Your Link Generated!\n 📂 File Name: {}\n 📦 File Size: {}\n 📥 Download: {}\n 🖥 Watch: {}\n Link Generated Using {}""" BAN_TEXT: str = "__Sorry sir, you are banned from using me.__\n\n**[Contact Developer](tg://user?id={}) They will help you**" LINK_LIMIT_EXCEEDED: str = "You have exceeded the number of links you can generate." INFO_TEXT: str = """User ID: {} Plan: {} Links Used: {} Links Left: {}""" #----------------------# # Change the Text's below to add suport for your language # you can find the language_code for your language here # https://en.wikipedia.org/wiki/IETF_language_tag#List_of_common_primary_language_subtags # change language_code with your language code # eg: class kn(object): class language_code: START_TEXT: str = """ 👋 Hey,{}\n I'm Telegram Files Streaming Bot as well as a Direct Links Generator\n Click on Help to get more information\n WARNING 🚸\n 🔞 Adult content leads to a permanent ban.\n\n""" HELP_TEXT: str = """ - Send me any file (or) media from Telegram. - I will provide an external direct download link! - Download link with the fastest speed 🔸 WARNING 🚸\n 🔞 Adult content leads to a permanent ban.\n Contact developer (or) report bugs : [ Click Here ]""" ABOUT_TEXT: str = """ Maintained By: DeekshithSH Source Code: TG-FileStreamBot Based On: [TG-FileStreamBot] Version: {} Last Updated: 23 March 2025 """ STREAM_MSG_TEXT: str = """ Your Link Generated!\n 📂 File Name: {}\n 📦 File Size: {}\n 📥 Download: {}\n 🖥 Watch: {}\n Link Generated Using {}""" BAN_TEXT: str = "__Sorry sir, you are banned from using me.__\n\n**[Contact Developer](tg://user?id={}) They will help you**" LINK_LIMIT_EXCEEDED: str = "You have exceeded the number of links you can generate." INFO_TEXT: str = """User ID: {} Plan: {} Links Used: {} Links Left: {}""" class BUTTON(object): START_BUTTONS = InlineKeyboardMarkup([ [ InlineKeyboardButton('Help', callback_data='help'), InlineKeyboardButton('About', callback_data='about'), InlineKeyboardButton('Close', callback_data='close') ], [InlineKeyboardButton("📢 Bot Channel", url=f'https://t.me/{Var.UPDATES_CHANNEL}')] ]) HELP_BUTTONS = InlineKeyboardMarkup([ [ InlineKeyboardButton('Home', callback_data='home'), InlineKeyboardButton('About', callback_data='about'), InlineKeyboardButton('Close', callback_data='close'), ], [InlineKeyboardButton("📢 Bot Channel", url=f'https://t.me/{Var.UPDATES_CHANNEL}')] ]) ABOUT_BUTTONS = InlineKeyboardMarkup([ [ InlineKeyboardButton('Home', callback_data='home'), InlineKeyboardButton('Help', callback_data='help'), InlineKeyboardButton('Close', callback_data='close'), ], [InlineKeyboardButton("📢 Bot Channel", url=f'https://t.me/{Var.UPDATES_CHANNEL}')] ])