File size: 5,009 Bytes
8db43b6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | # 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 = """
<i>π Hey,</i>{}\n
<i>I'm Telegram Files Streaming Bot as well as a Direct Links Generator</i>\n
<i>Click on Help to get more information</i>\n
<i><u>WARNING πΈ</u></i>\n
<b>π Adult content leads to a permanent ban.</b>\n\n"""
HELP_TEXT: str = """
<i>- Send me any file (or) media from Telegram.</i>
<i>- I will provide an external direct download link!</i>
<i>- Download link with the fastest speed</i>
<u>πΈ WARNING πΈ</u>\n
<b>π Adult content leads to a permanent ban.</b>\n
<i>Contact developer (or) report bugs</i> <b>: <a href='https://t.me/{}'>[ Click Here ]</a></b>"""
ABOUT_TEXT: str = """
Maintained By: <a href="https://github.com/DeekshithSH">DeekshithSH</a>
Source Code: <a href="https://github.com/DeekshithSH/TG-FileStreamBot/tree/main">TG-FileStreamBot</a>
Based On: [<a href="https://github.com/EverythingSuckz/TG-FileStreamBot">TG-FileStreamBot</a>]
Version: {}
Last Updated: 23 March 2025
"""
STREAM_MSG_TEXT: str = """
<i><u>Your Link Generated!</u></i>\n
<b>π File Name:</b> <i>{}</i>\n
<b>π¦ File Size:</b> <i>{}</i>\n
<b>π₯ Download:</b> <i>{}</i>\n
<b>π₯ Watch:</b> <i>{}</i>\n
<b>Link Generated Using</b> <a href='https://t.me/{}'>{}</a>"""
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: <code>{}</code>
Plan: <code>{}</code>
Links Used: <code>{}</code>
Links Left: <code>{}</code>"""
#----------------------#
# 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 = """
<i>π Hey,</i>{}\n
<i>I'm Telegram Files Streaming Bot as well as a Direct Links Generator</i>\n
<i>Click on Help to get more information</i>\n
<i><u>WARNING πΈ</u></i>\n
<b>π Adult content leads to a permanent ban.</b>\n\n"""
HELP_TEXT: str = """
<i>- Send me any file (or) media from Telegram.</i>
<i>- I will provide an external direct download link!</i>
<i>- Download link with the fastest speed</i>
<u>πΈ WARNING πΈ</u>\n
<b>π Adult content leads to a permanent ban.</b>\n
<i>Contact developer (or) report bugs</i> <b>: <a href='https://t.me/{}'>[ Click Here ]</a></b>"""
ABOUT_TEXT: str = """
Maintained By: <a href="https://github.com/DeekshithSH">DeekshithSH</a>
Source Code: <a href="https://github.com/DeekshithSH/TG-FileStreamBot/tree/main">TG-FileStreamBot</a>
Based On: [<a href="https://github.com/EverythingSuckz/TG-FileStreamBot">TG-FileStreamBot</a>]
Version: {}
Last Updated: 23 March 2025
"""
STREAM_MSG_TEXT: str = """
<i><u>Your Link Generated!</u></i>\n
<b>π File Name:</b> <i>{}</i>\n
<b>π¦ File Size:</b> <i>{}</i>\n
<b>π₯ Download:</b> <i>{}</i>\n
<b>π₯ Watch:</b> <i>{}</i>\n
<b>Link Generated Using</b> <a href='https://t.me/{}'>{}</a>"""
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: <code>{}</code>
Plan: <code>{}</code>
Links Used: <code>{}</code>
Links Left: <code>{}</code>"""
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}')]
])
|