๐ 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 :
โก๏ธCredits : @JOBIANSTECHIE
โก๏ธError Report : @flashcomtpychat
โก๏ธOfficial Channel : @flashcomofficial
๐ 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 :
๐ TPY Code :
โก๏ธCredits : @Nepcoder
โก๏ธError Report : @flashcomtpychat
โก๏ธOfficial Channel : @flashcomofficial
๐ 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
What do you want FlashCom to create next โ
-- We would like to get you opinion on what FlashCom must create next as channels, groups, bots etc.. You can suggest anything you want as per the decision we make and then your suggestions may include after the decision taken.
๐ค Just comment your idea by below comment option
-- We would like to get you opinion on what FlashCom must create next as channels, groups, bots etc.. You can suggest anything you want as per the decision we make and then your suggestions may include after the decision taken.
๐ค Just comment your idea by below comment option
๐3โค2
๐ Dynamic Qr Code Generator Tpy Codeโ
๐ With this code you can generate dynamic qr codes.
๐ Command :
๐ TPY Code :
๐ Command :
๐ TPY Code :
๐ Command :
๐ TPY Code :
โก๏ธCredits : @Nepcoder
โก๏ธError Report : @flashcomtpychat
โก๏ธOfficial Channel : @flashcomofficial
๐ With this code you can generate dynamic qr codes.
๐ Command :
*๐ TPY Code :
bot.sendChatAction(chat_id=u, action="typing")
input_text = message.text
api_url = "https://dynamicqrcode.nepcoderdevs.workers.dev/?message=" + input_text
try:
response = HTTP.get(api_url)
if response.status_code == 200:
qr_image_url = response.json()["qrImageUrl"]
keyboard = [
[
InlineKeyboardButton("๐จโ๐ป Developer", url="https://t.me/nepcoder"),
InlineKeyboardButton("๐ข Channel", url="https://t.me/devsnp")
],
[
InlineKeyboardButton("Read QR Code ๐ท", callback_data="/ReadQr")
]
]
reply_markup = InlineKeyboardMarkup(keyboard)
caption = "*๐ค QR code generated by @DynamicQRGeneratorBot*\n\nJoin us on Telegram:"
bot.sendPhoto(chat_id=u, photo=qr_image_url, caption=caption, parse_mode="Markdown", reply_markup=reply_markup)
else:
bot.sendMessage(chat_id=u, text="โ Error: Failed to retrieve QR code image.")
except Exception as e:
error_message = "โ <b>Oops! Something went wrong:</b>\n{}".format(str(e))
bot.sendMessage(chat_id=u, text=error_message, parse_mode="HTML")
๐ Command :
/ReadQr๐ TPY Code :
prompt_message = '๐ **Please send your QR code photo** ๐ท\n\n' \
'Our bot will read it and provide you with the text or URL encoded in the QR code.'
bot.sendMessage(chat_id=u, text=prompt_message, parse_mode="Markdown")
Bot.handleNextCommand("/Nep")
๐ Command :
/Nep๐ TPY Code :
image_file = f"https://api.telegram.org/bot{Bot.info().token}/getFile?file_id={message.photo[-1].file_id}"
content = HTTP.get(image_file).json()
file_path = content['result']['file_path']
file_url = f"https://api.telegram.org/file/bot{Bot.info().token}/{file_path}"
imgbb_api_url = "https://api.imgbb.com/1/upload"
imgbb_api_key = "apikey" # Replace with your ImgBB API key
files = {'image': (file_path, HTTP.get(file_url).content)}
payload = {'key': imgbb_api_key}
response = HTTP.post(imgbb_api_url, files=files, data=payload)
if response.status_code == 200:
imgbb_image_url = response.json()['data']['url']
qr_api_url = f"https://qrredaes.nepcoderdevs.workers.dev/?url={imgbb_image_url}"
qr_response = HTTP.get(qr_api_url)
if qr_response.status_code == 200:
raw_text = qr_response.json()["raw_text"]
bot.sendMessage(chat_id=u, text=f"๐ Extracted Text from QR Code:\n\n<code>{raw_text}</code>", parse_mode="HTML")
else:
bot.sendMessage(chat_id=u, text="โ Error: Failed to extract raw text from QR code.")
else:
bot.sendMessage(chat_id=u, text="โ Error: Failed to upload image to ImgBB.")
โก๏ธPosted on : @flashcomtpyโก๏ธCredits : @Nepcoder
โก๏ธError Report : @flashcomtpychat
โก๏ธOfficial Channel : @flashcomofficial
๐ AI Image Generator TBC Code
๐ Command:
๐ Code:
โ ๏ธ Must Give Credit If You Are Posting On Your Channel
โยฉ๏ธ Credit: @HazexTBC
โ๐จ๐ปโ๐ป Developer: @MrRoleXG
โโผ๏ธ Error & Support: @FlashcomTPYchat
๐ Command:
*๐ Code:
bot.sendChatAction(chat_id=message.chat.id, action="upload_photo")
bot.sendChatAction(chat_id=message.chat.id, action="upload_photo")
chat_id = u
ms = message.text
url = f"https://aiimage.hellonepdevs.workers.dev/?prompt={ms}"
try:
response = HTTP.get(url)
response.raise_for_status()
get = bunchify(response.json())
bot.sendPhoto(chat_id=chat_id, photo=get["image_url"], caption="๐ค Created By @username")
except:
pass
โ ๏ธ Must Give Credit If You Are Posting On Your Channel
โยฉ๏ธ Credit: @HazexTBC
โ๐จ๐ปโ๐ป Developer: @MrRoleXG
โโผ๏ธ Error & Support: @FlashcomTPYchat
Forwarded from GetMart Official Channel (FlashCom)
โก๏ธ Introducing FlashCom Off-Topic Group
โค This group is made where You can chat off topics including where you can post your ads in this group, chat with your friends or other users, other topics and even more.
โค You can join the group by clicking the below join button
โค This group is made where You can chat off topics including where you can post your ads in this group, chat with your friends or other users, other topics and even more.
โค You can join the group by clicking the below join button
Forwarded from GetMart Official Channel (FlashCom)
๐ซก Here's wishing you and your family, peace, harmony, happiness, good health and prosperity on the auspicious occasion of Eid. Eid al-Adha Mubarak to you and everyone at home
Sorry for late wishes ๐ฃ
Sorry for late wishes ๐ฃ
โค4
โญ๏ธ Buy a YouTube channel consisting of 949 subscribers and many more!
-- You can buy a YouTube Channel with 949 subscribers just for $35.
โน๏ธ Channel Details
Channel Created On :
Channel Total Subscribers :
Videos Posted Before :
Last Views Rise Till :
Watch Hours :
๐ต Price : $35
๐ Note : This channel is not owned by FlashCom as this is given by a different user to sell and this channel is opened on 2020 as you can see the evidence listed in photos more evidences can be sent you on your making order. and this is sold by us as we give in less price and you can do the related payments with the specific admin mentioned below and please read to payments and purchases policy before making the payments.
โญ๏ธ Buy the channel now until someone buys it!
Contact Us : @FlashComAssistant
-- You can buy a YouTube Channel with 949 subscribers just for $35.
โน๏ธ Channel Details
Channel Created On :
12/12/2020Channel Total Subscribers :
949Videos Posted Before :
50+Last Views Rise Till :
14kWatch Hours :
9.1๐ต Price : $35
๐ Note : This channel is not owned by FlashCom as this is given by a different user to sell and this channel is opened on 2020 as you can see the evidence listed in photos more evidences can be sent you on your making order. and this is sold by us as we give in less price and you can do the related payments with the specific admin mentioned below and please read to payments and purchases policy before making the payments.
โญ๏ธ Buy the channel now until someone buys it!
Contact Us : @FlashComAssistant
๐5
Forwarded from FlashCom Official Channel
๐ Introducing GetMart v1.8
> GetMart v1.8 is the largest update so far. This update is the most cool update and has more features than before. And you can easily install bots and added new bot platforms such as bots.business and telebot creator bots too...
๐ฆธ Features of GetMart v1.8
- Install Bots.Business and Telebot Creator Bots.
- Added settings menu.
- Added profile menu
- Track your last actions took place.
- Clear all emails at once.
- Search bots randomly.
- Search bots by name or keyword.
- Switch the platforms according to you wish in settings.
- Switch versions according to you wish. ( Free / Premium )
- Report system added.
- Manual search option updated.
- Premium version updated.
- Bots structure updated.
- And more...
Tutorialsโ
-- You can view tutorials if you don't know about GetMart v1.8
Warning โ ๏ธ
- Make sure that once after the bot is launch spamming may ban you from using the bot. Please don't try to send any messages or run any command to the bot within 1 seconds multiple times even though the bot doesn't respond if you do then it may lead to a ban.
Try using the new version of GetMart now!
#GerMartV1.8
> GetMart v1.8 is the largest update so far. This update is the most cool update and has more features than before. And you can easily install bots and added new bot platforms such as bots.business and telebot creator bots too...
๐ฆธ Features of GetMart v1.8
- Install Bots.Business and Telebot Creator Bots.
- Added settings menu.
- Added profile menu
- Track your last actions took place.
- Clear all emails at once.
- Search bots randomly.
- Search bots by name or keyword.
- Switch the platforms according to you wish in settings.
- Switch versions according to you wish. ( Free / Premium )
- Report system added.
- Manual search option updated.
- Premium version updated.
- Bots structure updated.
- And more...
Tutorialsโ
-- You can view tutorials if you don't know about GetMart v1.8
Warning โ ๏ธ
- Make sure that once after the bot is launch spamming may ban you from using the bot. Please don't try to send any messages or run any command to the bot within 1 seconds multiple times even though the bot doesn't respond if you do then it may lead to a ban.
Try using the new version of GetMart now!
#GerMartV1.8
Forwarded from GetMart Official Channel (FlashCom)
โโ๐ GetMart V1.8 Update
โ We have updated @GetMartBot with special feature there are advantages and disadvantages for you. But to improve GetMart long last we have to update and add features.
Bug Error : Bug errors has been fixed.
Points : You must have the required points to install bots each bot may have different price you must have balance to install those. ( First time receive 5,000 points )
ShortCut Command : Added some shortcut commands you can check in menu, to see shortcuts and to know on using it.
Updated Commands : Several commands has been updated and improved to new systems.
Time Limit : Once after you install some bots you have to wait 1 hour.
Bonus Points : Every 24 hours automatically 10 bonus points will be added to your account.
Install Bots and No Premium Bots : You can install bots which was in premium and you must have related points.
Premium Updated : Premium users can install bots without time limit and free of ads including they will get 100,000 points.
Balance Check : You can check your balance in your profile start> Settings> Profile.
Optimized : Bot has been optimized and works faster than before.
Installation Fast : Install bots fast than before
Free Plan : Free plan users will get 5000 points for first time on start after this and make sure you can earn points in different ways and also by bonus which you get daily.
Premium Plan : Premium users receive 100,000 points and free of ads.
What's Points and Why ?
- Points are made where you can purchase bots by points and you must have the required points value to install a bot.
Tutorials : Updating Soon!
โ We have updated @GetMartBot with special feature there are advantages and disadvantages for you. But to improve GetMart long last we have to update and add features.
Bug Error : Bug errors has been fixed.
Points : You must have the required points to install bots each bot may have different price you must have balance to install those. ( First time receive 5,000 points )
ShortCut Command : Added some shortcut commands you can check in menu, to see shortcuts and to know on using it.
Updated Commands : Several commands has been updated and improved to new systems.
Time Limit : Once after you install some bots you have to wait 1 hour.
Bonus Points : Every 24 hours automatically 10 bonus points will be added to your account.
Install Bots and No Premium Bots : You can install bots which was in premium and you must have related points.
Premium Updated : Premium users can install bots without time limit and free of ads including they will get 100,000 points.
Balance Check : You can check your balance in your profile start> Settings> Profile.
Optimized : Bot has been optimized and works faster than before.
Installation Fast : Install bots fast than before
Free Plan : Free plan users will get 5000 points for first time on start after this and make sure you can earn points in different ways and also by bonus which you get daily.
Premium Plan : Premium users receive 100,000 points and free of ads.
What's Points and Why ?
- Points are made where you can purchase bots by points and you must have the required points value to install a bot.
Tutorials : Updating Soon!
Happy Republic Day For India ๐ฎ๐ณ
Wishing you a joyful Republic Day! May the spirit of patriotism and love for the country fill your heart today and always.
On this Republic Day, letโs remember the sacrifices of those who made the freedom possible. May indians continue to build a brighter, united india.
Wishes from FlashCom ๐ค
Wishing you a joyful Republic Day! May the spirit of patriotism and love for the country fill your heart today and always.
On this Republic Day, letโs remember the sacrifices of those who made the freedom possible. May indians continue to build a brighter, united india.
Wishes from FlashCom ๐ค
๐ฅ4
@all ๐ด I need urgent telegram old groups !!
๐ Will pay you more than you expection. (High Price)
โ DM - @TheAmanxD
๐ Will pay you more than you expection. (High Price)
โ DM - @TheAmanxD
๐จ Get Your Telegram Bot Featured! ๐จ
The opportunity to have your Telegram bot displayed in all FlashCom channels has just started! ๐
Submit your bot now and get it featured until May 6 for maximum exposure. Donโt miss this chance to showcase your bot and reach a wider audience!
๐น How to submit:
1. Craft a compelling description using fresh and engaging words.
2. Provide a PNG animated image that will grab attention.
3. Fill out our Google Form with your botโs details and upload everything there:
โถ๏ธ Submit here via Google Form
โณ Hurryโmake sure to submit before May 6 and let us help you grow your audience! ๐
The opportunity to have your Telegram bot displayed in all FlashCom channels has just started! ๐
Submit your bot now and get it featured until May 6 for maximum exposure. Donโt miss this chance to showcase your bot and reach a wider audience!
๐น How to submit:
1. Craft a compelling description using fresh and engaging words.
2. Provide a PNG animated image that will grab attention.
3. Fill out our Google Form with your botโs details and upload everything there:
โถ๏ธ Submit here via Google Form
โณ Hurryโmake sure to submit before May 6 and let us help you grow your audience! ๐
๐2
Hello everyone!
First, I sincerely apologize for the delay in publishing these Telegram bots โ I had promised to post them by May 6, and today is May 8. Thank you for your patience!
Here are the amazing bots submitted by our users. Make sure to check them out and support their creators!
1. IPapkornBot โ uploaded by @bitget_srilankan
A super-responsive movie and series search bot. Just send a movie or series name, and it will instantly show you all available titles. Tap on any title, and the full movie will be sent right away!
2. Smm Pannel Bot๐ โ uploaded by @SmmPannelSupport
This SMM (Social Media Marketing) bot lets users place orders automatically, generates an order ID, and provides real-time order tracking. Users receive notifications once their order is completed!
3. ๐๐๐-หขแตโฑแถแตแตสณ&สธแตแตแตแตแตแต-แดฎแตแต โ uploaded by @mjoeyx
A fun multipurpose bot. Join my little multi-bot for stickers, YouTube downloads, and moreโit's compact, creative, and community-friendly!
4. Otp Trusted bot โ uploaded by @TrustedProDevil
This bot provides virtual numbers and accounts along with their correct passwords and OTPs. A secure and convenient solution for your verification needs.
First, I sincerely apologize for the delay in publishing these Telegram bots โ I had promised to post them by May 6, and today is May 8. Thank you for your patience!
Here are the amazing bots submitted by our users. Make sure to check them out and support their creators!
1. IPapkornBot โ uploaded by @bitget_srilankan
A super-responsive movie and series search bot. Just send a movie or series name, and it will instantly show you all available titles. Tap on any title, and the full movie will be sent right away!
2. Smm Pannel Bot๐ โ uploaded by @SmmPannelSupport
This SMM (Social Media Marketing) bot lets users place orders automatically, generates an order ID, and provides real-time order tracking. Users receive notifications once their order is completed!
3. ๐๐๐-หขแตโฑแถแตแตสณ&สธแตแตแตแตแตแต-แดฎแตแต โ uploaded by @mjoeyx
A fun multipurpose bot. Join my little multi-bot for stickers, YouTube downloads, and moreโit's compact, creative, and community-friendly!
4. Otp Trusted bot โ uploaded by @TrustedProDevil
This bot provides virtual numbers and accounts along with their correct passwords and OTPs. A secure and convenient solution for your verification needs.
๐2
๐ฌ Latest Movies & Web Series โ All in One Place! ๐ฟ
โจ Get your daily dose of entertainment!
Join Movie Flix Zone for the newest movie releases, binge-worthy web series, and classic favorites.
โ Never miss a blockbuster again!
๐ Join Now:
๐ Movie Channel: https://t.me/Movie_Flix_Zone
๐ฏ Got a request?
๐ฉ Request Group: https://t.me/Movies_Zone_Request_Group
๐ค Movie Provider Bots:
๐ฅ MrKillerDeveloperBot
๐ฌ IMDB_HPBOT
๐ฅ Everything you love โ in one place. Join now and start streaming! ๐
โ ๏ธ This content has been verified by FlashCom to the best of our ability. However, it is from a third-party source. FlashCom is not responsible for any changes, errors, or outcomes. Always participate at your own risk and do your own research.
Sponsered User :
FlashCom Ad Id :
#Ads
โจ Get your daily dose of entertainment!
Join Movie Flix Zone for the newest movie releases, binge-worthy web series, and classic favorites.
โ Never miss a blockbuster again!
๐ Join Now:
๐ Movie Channel: https://t.me/Movie_Flix_Zone
๐ฏ Got a request?
๐ฉ Request Group: https://t.me/Movies_Zone_Request_Group
๐ค Movie Provider Bots:
๐ฅ MrKillerDeveloperBot
๐ฌ IMDB_HPBOT
๐ฅ Everything you love โ in one place. Join now and start streaming! ๐
โ ๏ธ This content has been verified by FlashCom to the best of our ability. However, it is from a third-party source. FlashCom is not responsible for any changes, errors, or outcomes. Always participate at your own risk and do your own research.
Sponsered User :
@Mrkiller_1109FlashCom Ad Id :
29381947#Ads
๐ Welcome to Legit AIRDROP!
Looking for real ways to earn online? ๐โจ
Our channel is all about helping you make money without spending a dime! ๐
Hereโs what youโll find: ๐๐๐
โ Free loots & legit earning opportunities โ grab them fast before they end!
๐ Top trending Airdrops โ join, complete simple tasks, and earn crypto.
๐ ๏ธ Free tools & bots โ boost your channels, socials, or crypto game.
๐ก Tips, guides & updates โ stay informed and never miss an earning chance!
We only share whatโs tested, real, and worth your time.
โ No hype. โ No scams. โ Just legit chances to earn. ๐ฏ
โจ Join Now:
https://t.me/+GQhUeC-y-WtiMzA8
๐ข Channel Username: @LegitAirdropChannel
Start your journey with daily free loots & airdrops that actually pay! ๐ธ๐ฅ
โ ๏ธ This content has been verified by FlashCom to the best of our ability. However, it is from a third-party source. FlashCom is not responsible for any changes, errors,
or outcomes. Always participate at your own risk and do your own research.
Sponsered User :
FlashCom Ad Id :
Looking for real ways to earn online? ๐โจ
Our channel is all about helping you make money without spending a dime! ๐
Hereโs what youโll find: ๐๐๐
โ Free loots & legit earning opportunities โ grab them fast before they end!
๐ Top trending Airdrops โ join, complete simple tasks, and earn crypto.
๐ ๏ธ Free tools & bots โ boost your channels, socials, or crypto game.
๐ก Tips, guides & updates โ stay informed and never miss an earning chance!
We only share whatโs tested, real, and worth your time.
โ No hype. โ No scams. โ Just legit chances to earn. ๐ฏ
โจ Join Now:
https://t.me/+GQhUeC-y-WtiMzA8
๐ข Channel Username: @LegitAirdropChannel
Start your journey with daily free loots & airdrops that actually pay! ๐ธ๐ฅ
โ ๏ธ This content has been verified by FlashCom to the best of our ability. However, it is from a third-party source. FlashCom is not responsible for any changes, errors,
or outcomes. Always participate at your own risk and do your own research.
Sponsered User :
@Ademuyiwa2017FlashCom Ad Id :
3038294Telegram
๐๐ฒ๐ด๐ถ๐ ๐๐ถ๐ฟ๐ฑ๐ฟ๐ผ๐ฝ
BEST CRYPTO UPDATE CHANNEL YOU CAN GET
Discussion group @for_links123
Owner: @Ademuyiwa2017
Support: @LegitAirdropSupportbot
Discussion group @for_links123
Owner: @Ademuyiwa2017
Support: @LegitAirdropSupportbot
โค1
๐ YouTube Video Summarizer Code ๐ โ
If Tpy has tik it is tested & working perfectly.
๐ Description: Summarize YouTube videos up to 1000 words.
๐ Command:
โณ Wait for response : โ On
๐ Tpy Code:
๐ Command:
โณ Wait for response : โ On
๐ Tpy Code:
๐ Command:
โณ Wait for response : โ Off
๐ Tpy Code:
โก๏ธPosted on : @FlashComTpy
โก๏ธCredits : @FlashComOfficial
โก๏ธApi Credits : @HazexApi
โก๏ธError Report : @FlashComBTChat
โก๏ธOfficial Channel : @FlashComOfficial
#TpyCode โ
If Tpy has tik it is tested & working perfectly.
If Tpy has tik it is tested & working perfectly.
๐ Description: Summarize YouTube videos up to 1000 words.
๐ Command:
/startโณ Wait for response : โ On
๐ Tpy Code:
bot.sendMessage("๐ฌ Welcome to the YouTube Summarizer Bot!\n\nPlease send the YouTube video link:")
Bot.handleNextCommand("get_video_url")๐ Command:
get_video_urlโณ Wait for response : โ On
๐ Tpy Code:
try:
yt_url = message.text.strip()
User.saveData("yt_url", yt_url)
bot.sendMessage("โ Got the video link!\nNow enter the word count (15 to 1000):")
Bot.handleNextCommand("get_word_count")
except Exception as e:
bot.sendMessage(f"โ ๏ธ Error while processing the video URL: {str(e)}")
๐ Command:
get_word_countโณ Wait for response : โ Off
๐ Tpy Code:
try:
user_input = message.text.strip()
word_count = int(user_input)
if word_count < 15 or word_count > 1000:
bot.sendMessage("โ Word count must be between 15 and 1000. Try again:")
Bot.handleNextCommand("get_word_count")
else:
yt_url = User.getData("yt_url")
if not yt_url:
bot.sendMessage("โ No video link found. Please start again with /start.")
else:
bot.sendMessage("โณ Summarizing your video...")
res = HTTP.get("https://api.hazex.sbs/yt-summarizer", params={
"url": yt_url,
"wordCount": word_count
}).json()
if res.get("error") == True:
error_message = res.get("message", "Unknown error occurred.")
bot.sendMessage(f"โ API Error: {error_message}")
else:
result = res.get("result", "โ ๏ธ No summary returned.")
bot.sendMessage(f"โ Summary ({word_count} words):\n\n{result}")
except Exception as e:
bot.sendMessage(f"๐ซ Internal Error: {str(e)}")
โก๏ธPosted on : @FlashComTpy
โก๏ธCredits : @FlashComOfficial
โก๏ธApi Credits : @HazexApi
โก๏ธError Report : @FlashComBTChat
โก๏ธOfficial Channel : @FlashComOfficial
#TpyCode โ
If Tpy has tik it is tested & working perfectly.
1๐ฅ2โค1๐1