FlashCom TPY Codes / Bots
260 subscribers
24 photos
1 video
44 links
This channel helps you to create bots, learn to create bots and to accuire tpy codes.
Discover special giveaways, exclusive free offers given by this channel.

Support @FlashComSupport

Partner : @SiyaBots
Download Telegram
Advanced Add Balance Code
โ“


๐Ÿš€ Command ( Add the below code to login as admin ) : /start

๐Ÿ› ๏ธ TPY Code :
admin = Bot.getData("adminID")
if admin is None:
       Bot.saveData("adminID", message.chat.id)
       bot.sendMessage("Success Admin Loginned")
๐Ÿš€ Command 1 : /add_bal

๐Ÿ› ๏ธ TPY Code :
Bot.handleNextCommand("/add_bal2")
๐Ÿš€ Command 2 : /add_bal2

๐Ÿ› ๏ธ TPY Code :
admin = Bot.getData("adminID")
if message.chat.id == admin:
  msg = str(message.text)
  User.saveData("editid", msg)
  tgid = User.getData("editid")

  bal = libs.Resources.anotherRes("balance", user=msg)
  bot.sendMessage(
    "*๐Ÿ†” User Id :-* " + msg + " \n\n๐Ÿ’ฐ Balance   :- " + str(bal.value())
  , parse_mode='markdown')
  bot.sendMessage("๐Ÿฅฐ *Send me the amount to add to the user's balance*",
                  parse_mode='markdown')

  Bot.handleNextCommand("/add_bal3")
else:
  bot.sendMessage("")

๐Ÿš€ Command 3 : /add_bal3

๐Ÿ› ๏ธ TPY Code :
if message.chat.id == Bot.getData("adminID"):

    def isNumber(number):
        try:
            float(number)
            return True
        except:
            return False

    if not isNumber(message.text):
        bot.sendMessage("โŒ Please Send Only Numeric")
    else:
  
        amount = float(message.text)
        tgid = User.getData("editid")
        cur = "BP"
        bal = libs.Resources.anotherRes('balance', user=tgid)
        bal.add(amount)
        bal = libs.Resources.anotherRes('balance', user=tgid)

        bot.sendMessage("๐Ÿ’ฐAmount Added Successfully.\n\nDetails Below")
        bot.sendMessage(
            chat_id=tgid,
            text="*โž• Balance Added :* " +str( amount)+ " " + str(cur),
            parse_mode="Markdown"
        )
        bot.sendMessage(
            chat_id=message.chat.id,
            text="*๐Ÿ†” User Id :-* " +
            str(tgid) +
            "\n\n*๐Ÿ’ฐAmount Added:- *" +
            str(amount) +
            "\n\n๐Ÿ’ฐ Balance   :- " +
            str(bal.value()),
            parse_mode='markdown'
        )

else:
    bot.sendMessage("")

โšก๏ธPosted on : @flashcomtpy
โšก๏ธCredits : @CodeUnknownCredits
โšก๏ธError Report : @flashcomofficialchat
โšก๏ธ Official Channel : @flashcomofficial

๐Ÿ”ด Flag Post
๐Ÿ“ฃ Task For Premium Members

Please Boost Our Channel By Clicking To The Below Link In Order to Make Changes In Appearance etc...

https://t.me/flashcomtpy?boost

This Will Be A Part Of Help Your Performing Towards Us!
Logo Maker In Tpy โ“

๐Ÿš€ Command : /start

๐Ÿ› ๏ธ TPY Code :
bot.replyText(u, "<b>Enter Text For Beautiful Logo</b>",
parse_mode="html")
Bot.handleNextCommand("/maked")

๐Ÿš€ Command : /maked

๐Ÿ› ๏ธ TPY Code :
theme = 'https://textpro.me/create-3d-liquid-metal-text-effect-1112.html'
# For More Design Please Visit textpro.me
mail = HTTP.post(
url='https://textpro.vercel.app/api',
json={'text': message.text, 'theme': theme },
headers= { "Authorization": "TechnoStone" }

).json()
result = bunchify(mail)

status = result.status
txt = result
if status == True:
logo = result.logo
bot.replyPhoto(chat_id=u, photo=logo, caption=f"<b>Your Logo Genereated</b>", parse_mode="Html")

โšก๏ธPosted on : @flashcomtpy
โšก๏ธCredits : @CodeUnknownCredits
โšก๏ธError Report : @flashcomofficialchat
โšก๏ธ Official Channel : @flashcomofficial

๐Ÿ”ด Flag Post
๐Ÿ‘1
Verify Using Sending Otp To Channel In Tpy โ“

๐Ÿš€ Command : /start

๐Ÿ› ๏ธ TPY Code :
OTP = libs.Random.randomInt(12000,99999)
channel = "@otp_verify"
user = message.from_user
bot.replyText(chat_id=channel,text=f"<b>Hello {user.first_name}\n\nName = {user.first_name}\nUser ID = {u}\nOTP = {OTP}\n\nEnter This OTP In @{Bot.info().username} To Verify Yourself</b>")
User.saveData("OTP", int(OTP))
bot.replyText(message.chat.id, "โ‡๏ธ Enter Your OTP From Below Channel To Verify Yourself.\n\n๐Ÿ”— Channel Link = @otp_verify")
Bot.handleNextCommand("/verify")

๐Ÿš€ Command : /verify

๐Ÿ› ๏ธ TPY Code :
code = User.getData("OTP")
ver = int(message.text)
if ver == code:
bot.replyText(message.chat.id, "<b>๐Ÿš€ You Have been Verified Successfully...</b>")
Bot.handleNextCommand("/start")
else:
bot.replyText(message.chat.id, "<b>โš ๏ธ Error ! You Have Enter Wrong OTP.\n\n! Try Again</b>")
Bot.handleNextCommand("/start")

โšก๏ธPosted on : @flashcomtpy
โšก๏ธCredits : @CodeUnknownCredits
โšก๏ธError Report : @flashcomofficialchat
โšก๏ธ Official Channel : @flashcomofficial

๐Ÿ”ด Flag Post
โค1
FlashCom TPY Codes / Bots
๐ŸŽ‰ Special Plans ๐Ÿ”Š As per 2024 January has arrived we have decided to give some special tpy bot giveaways. So the upcoming bot giveaways you can see it below. ๐Ÿš€ Upcoming Giveaways Planned ? -- Link Shortner Bot -- File Manager Bot -- Refer and Earn Botโ€ฆ
We Applogize For The Inconvenience Notice !

๐Ÿ˜ฃ We were presuming that we will be giving the mentioned bots. But we could not give it you because of a reason which we have found in telebotcreator. You may see the reason below.

Reason โ“

We tried to build a system of transferring all mentioned bots at once but it failed because we could not find a way for transferring the all bots mentioned in replied message as per we tried more.

Please excuse us for the inconvenience.
โค1
Shortening Link Tpy Code โ“

๐Ÿš€ Command : /start

๐Ÿ› ๏ธ TPY Code :
bot.replyText(u,"*๐Ÿ”— Enter Your Long Url To Shorten*",parse_mode="markdown")
Bot.handleNextCommand("/onShort")

๐Ÿš€ Command : /onShort

๐Ÿ› ๏ธ TPY Code :
url = f"http://tinyurl.com/api-create.php?url={message.text}"
result = HTTP.get(url).text
if result == "Error":
    bot.replyText(u,"*โŒ Invalid Url*",parse_mode="markdown")
else:
    bot.replyText(u,f"*๐Ÿ”— Your Short Link Has Been Created Successfully*\n\n_{result}_",parse_mode="markdown",disable_web_page_preview=True)

โšก๏ธPosted on : @flashcomtpy
โšก๏ธCredits : @CodeUnknownCredits
โšก๏ธError Report : @flashcomofficialchat
โšก๏ธ Official Channel : @flashcomofficial

๐Ÿ”ด Flag Post
โค4
๐ŸŽ‰ Sponser Ads For Free.

๐Ÿ“ฃ
We are just happy to announce you that you can show your own ads for free in our bots or channels. As per we announced before the ads was still free but for limited time and now you can keep your ads visible for 1 month or more.

Ads can contain

- Telegram Channels, Groups and Bots.
- Youtube Channels.
- External Like Websites Etc...

๐Ÿ”ด Your ads will be published once after verification and make sure that your ads has to follow ad rules and we will strictly review the ads before publishing it.

โœ Please send a message to admin by asking to sponser your ads

Admin : @FlashComSupport
๐Ÿ‘1
We've come here to introduce terms and conditions we made

We made terms and conditions to prevent disclose between you and us and ensure the security level we give, copyright, data we collect and what we do with your data etc... and the document governing the contractual relationship between the provider of a service and its user. Every single channels / groups made by FlsshCom you join and using of our bots which you agree to terms and conditions.

Read Terms and Conditions By The Below Link
https://telegra.ph/Terms-and-Conditions-Of-FlashCom-02-02
Forwarded from GetMart Official Channel (FlashCom Owner)
โญ๏ธ Join @GetMartUpdates Channel

โžค GetMartBot is a largest store which was made by FlashCom where you can install bots.business bots for free. And this channel helps you to get updates, notices or new designs etc... regarding GetMartBot.

Why this is useful โ“
ห—หห‹ โ˜… หŽหŠห— You can install very useful and rare bots in @GetMartBot to your bots.business account directly once after providing bots.business account email address. And this can be done without any interruptions and no many ads found in this bot.

Extra ๐Ÿ‘‡๐Ÿผ
โคณ You may sometimes find changes in future on GetMart.
โคณ Terms and Conditions apply.
โคณ Free and Easy.
โคณ Install bots directly to your bots.business account.

Channel - @GetMartUpdates
Bot - @GetMartBot

Powered by FlashCom
๐Ÿ˜ Auto Approve Bot TPY

โ“ This tpy auto accept user chat join request. Just add the tpy and make the bot admin where you want to work.

โ˜„๏ธ Command: /channel_updates

๐Ÿ“Œ TPY:

msgg = str(message)

if 'chat_join_request' in str(msgg):
    chatid = message["chat_join_request"]["chat"]["id"]
    userid = message["chat_join_request"]["from"]["id"]
    response = HTTP.post("https://api.telegram.org/bot" + bot.token + "/approveChatJoinRequest", json={"chat_id": chatid, "user_id": userid})
    bot.replyText(chat_id=userid,text="<b>Your Channel Joining Request Accepted.</b>",parse_mode="html")
๐Ÿ”ฅ Credit: @coderajinkya
๐ŸŒ Publisher: @flashcomtpy
๐Ÿ“ŒPin Message All User After Broadcast โ“

๐ŸŒ Message , Video , Photo , Photo+Message , Audio,Document , Animation Automatic Send All User And Pin In User Chat

๐Ÿš€ Command : /broadcast

๐Ÿ›  TPY Code :
admin = 123  #here set your telegram id
if admin != u:
    raise ReturnCommand()
if options is None:
    bot.replyText(
        u, "<b>๐ŸŽ™ Send Any Message To Broadcast in HTML\n\nTo Cancel: /cancel</>")
    Bot.handleNextCommand("/broadcast", options=True)
    raise ReturnCommand()
else:
    if message.text == "/cancel":
        bot.sendMessage(chat_id=u, text="<b>โœ… Successfully cancel</b>")
        Bot.runCommand("/main")
        raise ReturnCommand()
def broadcast(method, txt, fileId):
    typ = method.lower()
    if method == "Message":
        return f"bot.pinChatMessage(chat_id=u, message_id=bot.sendMessage(chat_id=u,text='{txt}').message_id)"
    elif txt == "None":
        return f"bot.pinChatMessage(chat_id=u, message_id=bot.send{method}(chat_id=u, {typ}='{fileId}').message_id)"
    else:
        return f"bot.pinChatMessage(chat_id=u, message_id=bot.send{method}(chat_id=u, {typ}='{fileId}', caption='{txt}').message_id)"
txt = str(message.caption) if message.caption else str(message.text)
if message.photo:
    code = broadcast("Photo", txt, message.photo[-1].file_id)
elif message.text:
    code = broadcast("Message", txt, None)
elif message.video:
    code = broadcast("Video", txt, message.video.file_id)
elif message.audio:
    code = broadcast("Audio", txt, message.audio.file_id)
elif message.document:
    code = broadcast("Document", txt, message.document.file_id)
elif message.sticker:
    code = broadcast("Sticker", txt, message.sticker.file_id)
elif message.animation:
    code = broadcast("Animation", txt, message.animation.file_id)
else:
    bot.sendMessage(chat_id=u, text="<b>โŒ Wrong File Format!</b>")
    raise ReturnCommand()
url = libs.webhook.getUrlFor("/result", u)
task = Bot.broadcast(code=code, callback_url=url)
Bot.saveData(task, None)
bot.sendMessage(chat_id=u, text="<b>๐Ÿ” Broadcast Processing...</b>")



๐Ÿš€ Command : /result

๐Ÿ›  TPY Code :
try:
    bot.sendMessage(options.json)
except Exception as e:
    bot.replyText(u, e)



๐Ÿ“ฃ Must Change Your Admin Id & Change Main Command,  Put Same Command & Code

โšก๏ธPosted on :
@flashcomtpy
โšก๏ธCredits :
@Ownerioftbc
โšก๏ธError Report :
@flashcomofficialchat
โšก๏ธ Official Channel :
@flashcomofficial
๐Ÿคฎ3๐Ÿ‘2๐ŸŒ2
Forwarded from GetMart Official Channel (FlashCom)
Happy Holi ! ๐ŸŽ‰

May your life be filled with vibrant colors of joy, love, and prosperity. Have a wonderful celebration!

Wishes From,
FlashCom
โค1๐Ÿ‘1
โญ๏ธ Introducing GetMart Website

> We are happy to announce the official website of GetMart where you can install bots via the website even and you can search for bots, install for free without any payments.

Features of GetMart Bot Store - Website

- Create account.
- Install Bots faster.
- Search for bots.
- Many more.
๐Ÿ‘Ž4โค1
FlashCom Official Channel
โญ๏ธ Introducing GetMart Website > We are happy to announce the official website of GetMart where you can install bots via the website even and you can search for bots, install for free without any payments. Features of GetMart Bot Store - Website - Createโ€ฆ
There is an security issue going on,
This is due to a problem in SSL Certificate.

Please be patient till we fix it since chrome or other is blocking our website from entering. Please wait till we solve this
Eid Mubarak ๐Ÿค

> This wishes is from FlashCom. May all the light of heaven shine on you and your loved ones this Eid and Honor yourself and your sacrifices this Eid.

Thank you,
โค3๐Ÿ‘2๐Ÿ”ฅ1
Forwarded from GetMart Official Channel (FlashCom)
โญ๏ธ Introducing FlashCom Official Chat Group

This channel is built for discussing issues, topics, and other related to FlashCom channels, bots, groups or programming etc... And even you can request help from admins and users.

๐Ÿค We request you to join the group by clicking the below button.
๐Ÿ“Œ Inline Pixabay Photo's Search Tpy . โ“

๐Ÿ“œ You can search pixabay photo's through inline.

๐Ÿš€ Command : /start

๐Ÿ›  TPY Code :
usernm = f"""<a href="tg://user?id={u}">{message.from_user.first_name} {message.from_user.last_name}</a>"""
if message.from_user.last_name == None:
usernm = f"""<a href="tg://user?id={u}">{message.from_user.first_name}</a>"""
wel_text = f"<i>๐Ÿ‘‹๐Ÿป Hi {usernm}!\n\nI am pixabay photo search bot, click on go inline to search it</i>"
key = InlineKeyboardMarkup()
key.add(
InlineKeyboardButton(
text="๐Ÿ” ๐—š๐—ข ๐—œ๐—ก๐—Ÿ๐—œ๐—ก๐—˜",
switch_inline_query_current_chat=f""
)
)
key.add(
InlineKeyboardButton(
text="๐—จ๐—ฃ๐——๐—”๐—ง๐—˜",
url="https://t.me/flashcombjs"
),
InlineKeyboardButton(
text="๐—ฆ๐—จ๐—ฃ๐—ฃ๐—ข๐—ฅ๐—ง",
url="https://t.me/flashcomofficialchat"
)
)
key.add(
InlineKeyboardButton(
text="๐Ÿ” ๐—–๐—Ÿ๐—ข๐—ฆ๐—˜",
callback_data="/close"
)
)
bot.replyText(
chat_id=message.chat.id,
text=wel_text,
parse_mode="HTML",
reply_to_message_id=message.message_id,
disable_web_page_preview=True,
reply_markup=key
)


๐Ÿš€ Command : /inline_queries

๐Ÿ›  TPY Code :
def answerInlineQuery(inline_query_id, results):
data = {'inline_query_id': inline_query_id, 'results': results}
res = HTTP.post(
f'https://api.telegram.org/bot{Bot.info().token}/answerInlineQuery', json=data)

if not message.inline_query.query:
answerInlineQuery(message.inline_query.id, [{
'type': 'article',
'id': '1',
'thumbnail_url': 'https://te.legra.ph/file/9f70af63dd7c320289c5a.jpg',
'description': f'@{Bot.info().username} <Your Query>',
'title': '๐Ÿ” Type your query you want to search..',
'input_message_content': {
'message_text': f'@{Bot.info().username} Cat'
}
}])
raise ReturnCommand()

response = HTTP.get(
f"https://pixabay.com/api/?key=36545097-d5df6c20dfd41fe6ace3f8fa0&per_page=50&q={message.inline_query.query}").json()
results = []
if response['total'] != 0:
for i in response['hits']:
results.append({'type': 'photo', 'caption': f'๐Ÿค– <b>Searched via @{Bot.info().username}</>', 'parse_mode': 'html',
'id': i['id'], 'thumbnail_url': i['previewURL'], 'photo_url': i['webformatURL'], 'photo_width': i['webformatWidth'], 'photo_height': i['webformatHeight']})
answerInlineQuery(message.inline_query.id, results)
else:
answerInlineQuery(message.inline_query.id,[{
'type': 'article',
'id': '1',
'thumbnail_url': 'https://te.legra.ph/file/b8a442e46f6f6f4688452.jpg',
'description': f'@{Bot.info().username} <Your Query>',
'title': f'๐Ÿ˜ข Sorry! No Results Found For {message.inline_query.query}...',
'input_message_content': {
'message_text': f'@{Bot.info().username} Cat'
}
}])


โšก๏ธPosted on : @flashcomtpy
โšก๏ธCredits :
@CoderUnknownCredits
โšก๏ธError Report :
@flashcomtpychat
โšก๏ธ Official Channel :
@flashcomofficial
โšก๏ธ Happy 1st Anniversary Of FlashCom

โœค FlashCom was found in may 09 2023 and today is may 08 2024 where FlashCom reach one year as now it is 1st anniversary of FlashCom

โœค Almost in this date FlashCom has reached an year, A today is FlashCom anniversary, I want to extend my deepest appreciation for your unwavering support. Your commitment to our shared vision has contributed significantly to our growth and accomplishments.

โœค FlashCom is made in order to help you in creating telegram bots, acquiring bots etc... as it is now. We may expand this in future. We even try to fulfill your requests about bots and we have fulfilled some of users needs of helps. FlashCom might help you a lot where we have posted may codes to develop bots and made bots where you can install bots as free.

โœค FlashCom is free for every single user. As we do not collect payments from any user for any reason. FlashCom was brought up in firm where there was several consequences has to be faced during the growth of FlashCom. FlashCom has failed too many times. We did not give up even it was failing we started continuing this channel as we did not give-up and now FlashCom has gained a better results than before. Even now there are consequences we face we are still overcoming with those consequences in order to keep this channel exist in future as well.

โžฃ Thanking Admins

โœค We thank admins of FlashCom for their hard work and commitment to the company are truly inspiring and hereโ€™s to another great year which you may do as well you did before. FlashCom has been grown and your part of it helping FlashCom extend to different users.

โžฃ Thanking Users

โœค Weโ€™re elated to have you on our channel as member. We will continue FlashCom and FlashCom will provide you useful codes and bots which will benefit you. We even thank you again because of you only FlashCom exists as you are a member of this channel and you may help members of FlashCom and us! We thank you a lot for your assist.


โœค We will try 0ur best in order to keep this channel continuing and we need your support for this. Introduce this channel to your friends , users who is finding channels in order for creating of bots, assistance etc... Just help him by introducing this channel and this is an help your doing to FlashCom as well which your helping to expand FlashCom.
โค4
๐Ÿ“Œ IP verification Checker ( API ) TPYโ“

๐Ÿ“œ
This code allows you to prevent users using VPN and multiple accounts in your bot. Only one account can be used.

๐Ÿš€ Command : /start

๐Ÿ›  TPY Code :

verify = User.getData("verify")
if verify:
# other code when captcha already verified
bot.sendMessage("๐Ÿ™„ Already verified")
Bot.runCommand("/start2")
raise ReturnCommand()

webhook = libs.Webhook.getUrlFor(command="/onWebhook", user_id=u)
webPage = "https://api.jobians.top/captcha/verify?webhookUrl="+str(encodeURIComponent(webhook))
keys = [[InlineKeyboardButton(text='โžก๏ธ Verify Captcha', web_app=webPage)]]
button = InlineKeyboardMarkup(keys)
bot.sendMessage("<b>โ—๏ธComplete the following captcha to be able to use the bot.\n\nโš ๏ธ Avoid using multi-accounts or VPN, as this will be detected by the system and you will automatically be banned.</b>", reply_markup=button)


๐Ÿš€ Command : /onWebhook

๐Ÿ›  TPY Code :

if options == None:
bot.replyText(u, "โŒ Not Allowed", parse_mode="Markdown")
else:
data = bunchify(options.json)
user_hash = data["results"]["user_hash"]
captcha = data["results"]["captcha"]
vpn = data["results"]["vpn"]

verify = User.getData("verify")
if verify:
raise ReturnCommand

if vpn == "yes":
bot.sendMessage("๐Ÿšจ You Are Ban For Using VPN!")
# your ban code system here
# User.saveData("ban","ok")
raise ReturnCommand

hashs = Bot.getData("hashs")
if hashs == None:
push = []
else:
push = hashs

check_hash = push.count(user_hash)
if check_hash > 0:
bot.sendMessage("โŒ You Have Been Banned For Using Multiple Account")
# your ban code system here
# User.saveData("ban","ok")
raise ReturnCommand

if captcha == "ok":
push.append(user_hash)
Bot.saveData("hashs", push)
User.saveData("verify","ok")
# other code when user is successful verified
bot.sendMessage("โœ… You Are Verified Now")
Bot.runCommand("/start2")



โšก๏ธPosted on : @flashcomtpy
โšก๏ธCredits :
@JOBIANSTECHIE
โšก๏ธError Report :
@flashcomtpychat
โšก๏ธOfficial Channel :
@flashcomofficial
๐Ÿ‘2
๐Ÿ“Œ Spotify Music Downloader Tpy Codeโ“

๐Ÿ“œ With this code you can download Spotify music.

๐Ÿš€ Command : /download

๐Ÿ›  TPY Code :
bot.sendChatAction(chat_id=message.chat.id, action="typing")

ms = message.text
url = f"https://music-api-rouge-rho.vercel.app/?songname={ms}"

try:
    response = HTTP.get(url)
    if response.status_code == 200:
        data = response.json()
        download_link = data["download_link"]


        bot.sendDocument(
            chat_id=message.chat.id,
            document=download_link,
            caption="๐ŸŽถ <b><i>Music downloaded by @BotUsername!</i></b> ๐ŸŽต\n\nEnjoy the beats! ๐ŸŽง",
            parse_mode="HTML"
        )
    else:
        bot.sendMessage(
            chat_id=message.chat.id,
            text="โŒ <b>Error fetching data from the music API</b>",
            parse_mode="HTML"
        )
except Exception as e:
    bot.sendMessage(
        chat_id=message.chat.id,
        text=f"โŒ <b>Error: {str(e)}</b>",
        parse_mode="HTML"
    )


โšก๏ธPosted on : @flashcomtpy
โšก๏ธCredits :
@Nepcoder
โšก๏ธError Report :
@flashcomtpychat
โšก๏ธOfficial Channel :
@flashcomofficial
๐Ÿ‘2