from .. import run_as_module
import resources
from secrets import choice
import random
from secrets import choice
from telethon.tl.types import InputMessagesFilterVideo, InputMessagesFilterVoice
from telethon.tl.types import InputMessagesFilterPhotos
#from . import eor, ultroid_cmd, get_string, OWNER_NAME
from telethon import Button
if not run_as_module:
    from ..exceptions import RunningAsFunctionLibError

    raise RunningAsFunctionLibError(
        "You are running 'xteam' as a functions lib, not as run module. You can't access this folder.."
    )

from .. import *
from . import *

DEVLIST = [
    1187804106, # @xteam_clone
    719195224,  # @xditya
    1322549723,  # @danish_00
    1903729401,  # @its_buddhhu
    1303895686,  # @Sipak_OP
    611816596,  # @Arnab431
    1318486004,  # @sppidy
    803243487,  # @hellboi_atul
]

devs = [
    1434595544, # @xteam_clone
    719195224,  # @xditya
    1322549723,  # @danish_00
    1903729401,  # @its_buddhhu
    1303895686,  # @Sipak_OP
    611816596,  # @Arnab431
    1318486004,  # @sppidy
    803243487,  # @hellboi_atul
]


ULTROID_IMAGES = [
    f"https://graph.org/file/{_}.jpg"
    for _ in [
        "8d7b534e34e13316a7dd2"
        #"ec250c66268b62ee4ade6",
        #"3c25230ae30d246194eba",
        #"b01715a61b9e876c0d45d",
        #"4ceaf720a96a24527ecff",
        #"a96223b574f29f3f0d184",
        #"6e081d339a01cc6190393",
    ]
]

XTEAM_URBOT = [
    f"XTEAM-URBOT is a versatile and feature-rich Telegram userbot built using the Telethon library in Python.\n\n" \
    f"Think of it as a customizable bot that runs on your Telegram account, allowing you to automate tasks, manage your groups more effectively, and add a variety of fun and useful features to your Telegram experience.\n" \
    f"• xteam-urbot interesting:\n" \
    f"• Extensive Functionality: xteam-urbot boasts a wide array of built-in modules (plugins) that can perform various actions." f"These can include things like:\n" \
    f"* Moderation tools: Anti-flood, ban/kick/mute users, manage messages.\n" \
    f"* Utility functions: Searching the web, calculating, converting currencies, getting weather information.\n" \
    f"* Media manipulation: Downloading media, converting file formats.\n" \
    f"* Fun commands: Sending memes, playing games.\n" \
    f"* Automation: Setting up timed messages, reacting to specific triggers.\n" \
    f"* Customization: One of the key strengths of xteam-urbot is its modular design.\n" \
    f"You can choose which modules to enable or disable based on your needs." f"Furthermore, it supports adding third-party plugins and even developing your own.\n" \
    f"* Community-Driven: xteam-urbot is actively developed by the Teamxteam-urbot on GitHub, which means it's constantly being updated with new features and improvements." f"There's also a community of users who share plugins and provide support.\n" \
    f"* Self-Hosted: Unlike regular Telegram bots that run on separate servers, a userbot like xteam-urbot runs directly on your device (or a server you control) using your Telegram account." f"This gives you more control but also requires you to handle the setup and running of the bot.\n" \
    f"• If you're considering using xteam-urbot, here are a few things to keep in mind:\n" \
    f"• Technical Skills: Setting up and managing a userbot like xteam-urbot typically requires some familiarity with the command line and Python.\n" \
    f"* Telegram's Terms of Service: While userbots can be powerful, it's crucial to use them responsibly and be aware of Telegram's terms of service to avoid any potential issues with your account.\n" \
    f"Avoid using them for spamming or other abusive activities.\n" \
    f"* Resource Usage: Running a userbot can consume resources on your device or server.\n" \
    f"• Where to find more information:\n" \
    f"• GitHub: The main repository for xteam-urbot is on GitHub at https://github.com/xteam-cloner/xteam-urbot." f"You'll find the source code, installation instructions, and documentation there.\n" \
    f"• TeamX Organization: You can explore other related projects and plugins under the xteam-urbot organization on GitHub: https://github.com/xteam-cloner.\n" \
    f"• In short, xteam-urbot is a powerful tool for Telegram users who want to extend the platform's functionality and automate tasks." f"However, it comes with a learning curve and requires responsible usage.\n" \
]

ALIVE_TEXT = [
    f"XTEAM-URBOT is a versatile and feature-rich Telegram userbot built using the Telethon library in Python.\n\n" \
    f"Think of it as a customizable bot that runs on your Telegram account, allowing you to automate tasks, manage your groups more effectively, and add a variety of fun and useful features to your Telegram experience.\n" \
    f"• xteam-urbot interesting:\n" \
    f"• Extensive Functionality: xteam-urbot boasts a wide array of built-in modules (plugins) that can perform various actions." f"These can include things like:\n" \
    f"* Moderation tools: Anti-flood, ban/kick/mute users, manage messages.\n" \
    f"* Utility functions: Searching the web, calculating, converting currencies, getting weather information.\n" \
    f"* Media manipulation: Downloading media, converting file formats.\n" \
    f"* Fun commands: Sending memes, playing games.\n" \
    f"* Automation: Setting up timed messages, reacting to specific triggers.\n" \
    f"* Customization: One of the key strengths of xteam-urbot is its modular design.\n" \
    f"You can choose which modules to enable or disable based on your needs." f"Furthermore, it supports adding third-party plugins and even developing your own.\n" \
    f"* Community-Driven: xteam-urbot is actively developed by the Teamxteam-urbot on GitHub, which means it's constantly being updated with new features and improvements." f"There's also a community of users who share plugins and provide support.\n" \
    f"* Self-Hosted: Unlike regular Telegram bots that run on separate servers, a userbot like xteam-urbot runs directly on your device (or a server you control) using your Telegram account." f"This gives you more control but also requires you to handle the setup and running of the bot.\n" \
    f"• If you're considering using xteam-urbot, here are a few things to keep in mind:\n" \
    f"• Technical Skills: Setting up and managing a userbot like xteam-urbot typically requires some familiarity with the command line and Python.\n" \
    f"* Telegram's Terms of Service: While userbots can be powerful, it's crucial to use them responsibly and be aware of Telegram's terms of service to avoid any potential issues with your account.\n" \
    f"Avoid using them for spamming or other abusive activities.\n" \
    f"* Resource Usage: Running a userbot can consume resources on your device or server.\n" \
    f"• Where to find more information:\n" \
    f"• GitHub: The main repository for xteam-urbot is on GitHub at https://github.com/xteam-cloner/xteam-urbot." f"You'll find the source code, installation instructions, and documentation there.\n" \
    f"• TeamX Organization: You can explore other related projects and plugins under the xteam-urbot organization on GitHub: https://github.com/xteam-cloner.\n" \
    f"• In short, xteam-urbot is a powerful tool for Telegram users who want to extend the platform's functionality and automate tasks." f"However, it comes with a learning curve and requires responsible usage.\n" \
]


ALIVE_NAME = [
"❍❍❍❍❍❍❍❍❍❍❍❍❍❍❍❍"
]

PING_IMAGES = [f"/resources/extras/ping_pic.mp4"]

stickers = [
    "CAADAQADeAIAAm_BZBQh8owdViocCAI",
    "CAADAQADegIAAm_BZBQ6j8GpKtnrSgI",
    "CAADAQADfAIAAm_BZBQpqC84n9JNXgI",
    "CAADAQADfgIAAm_BZBSxLmTyuHvlzgI",
    "CAADAQADgAIAAm_BZBQ3TZaueMkS-gI",
    "CAADAQADggIAAm_BZBTPcbJMorVVsQI",
    "CAADAQADhAIAAm_BZBR3lnMZRdsYxAI",
    "CAADAQADhgIAAm_BZBQGQRx4iaM4pQI",
    "CAADAQADiAIAAm_BZBRRF-cjJi_QywI",
    "CAADAQADigIAAm_BZBQQJwfzkqLM0wI",
    "CAADAQADjAIAAm_BZBQSl5GSAT0viwI",
    "CAADAQADjgIAAm_BZBQ2xU688gfHhQI",
    "CAADAQADkAIAAm_BZBRGuPNgVvkoHQI",
    "CAADAQADpgIAAm_BZBQAAZr0SJ5EKtQC",
    "CAADAQADkgIAAm_BZBTvuxuayqvjhgI",
    "CAADAQADlAIAAm_BZBSMZdWN2Yew1AI",
    "CAADAQADlQIAAm_BZBRXyadiwWGNkwI",
    "CAADAQADmAIAAm_BZBQDoB15A1jS1AI",
    "CAADAQADmgIAAm_BZBTnOLQ8_d72vgI",
    "CAADAQADmwIAAm_BZBTve1kgdG0Y5gI",
    "CAADAQADnAIAAm_BZBQUMyFiylJSqQI",
    "CAADAQADnQIAAm_BZBSMAe2V4pwhNgI",
    "CAADAQADngIAAm_BZBQ06D92QL_vywI",
    "CAADAQADnwIAAm_BZBRw7UAbr6vtEgI",
    "CAADAQADoAIAAm_BZBRkv9DnGPXh_wI",
    "CAADAQADoQIAAm_BZBQwI2NgQdyKlwI",
    "CAADAQADogIAAm_BZBRPHJF3XChVLgI",
    "CAADAQADowIAAm_BZBThpas7rZD6DAI",
    "CAADAQADpAIAAm_BZBQcC2DpZcCw1wI",
    "CAADAQADpQIAAm_BZBQKruTcEU4ntwI",
]


#@call_back("asupan")
async def asupannya(event):
    try:
        asupannya = [
            asupan
            async for asupan in event.client.iter_messages(
                "@xcryasupan", filter=InputMessagesFilterVideo
            )
        ]
        await event.client.send_file(
            event.chat_id, file=choice(asupannya), reply_to=event.reply_to_msg_id
        )
        await xx.delete()
    except Exception:
        await xx.edit("**Tidak bisa menemukan video asupan.**")

QUOTES = [
"Nothing is impossible",
"Anyone can be anything",
"Take the risk or lose the chance",
"When there is a will, there is way",
"Do the best and let God do the rest",
"Good things take time",
"Don’t stop when you’re tired,stop when you’re done",
"Our life is very difficult,but there are millions of more difficult life out there",
"In life, there will be things that come up by itself, \nbut there will be things that also need to struggle to get it",
"Love comfort like sunshine after rain",
]
