ðĨ Beginner Coding Tip ðĨ
âĻ Tip: Comment Your Code âĻ
Writing clear and understandable code is just as important as making it work. Here's why you should get into the habit of commenting your code:
Why Commenting is Important:
- Clarity: Comments help explain what your code does, making it easier to understand for yourself and others.
- Maintenance: When you come back to your code after some time, comments can remind you of your thought process.
- Collaboration: If you're working with others, comments can help your teammates understand your code quickly.
How to Comment Effectively:
1. Explain the Why: Use comments to explain why you're doing something, not just what you're doing.
2. Keep It Simple: Write clear and concise comments.
3. Use Descriptive Variable Names: This reduces the need for excessive comments.
4. Update Comments: Ensure your comments stay accurate as you modify your code.
Example:
Remember, good comments can make your code much more readable and maintainable. Happy coding! ð
âĻ Tip: Comment Your Code âĻ
Writing clear and understandable code is just as important as making it work. Here's why you should get into the habit of commenting your code:
Why Commenting is Important:
- Clarity: Comments help explain what your code does, making it easier to understand for yourself and others.
- Maintenance: When you come back to your code after some time, comments can remind you of your thought process.
- Collaboration: If you're working with others, comments can help your teammates understand your code quickly.
How to Comment Effectively:
1. Explain the Why: Use comments to explain why you're doing something, not just what you're doing.
2. Keep It Simple: Write clear and concise comments.
3. Use Descriptive Variable Names: This reduces the need for excessive comments.
4. Update Comments: Ensure your comments stay accurate as you modify your code.
Example:
# Calculate the area of a circle
def calculate_area(radius):
# Use the formula: area = Ï * r^2
pi = 3.14159
area = pi * (radius ** 2)
return area
Remember, good comments can make your code much more readable and maintainable. Happy coding! ð
ð10âĪ1
ðļ IMGBB Image Uploader TBC Code
ð Command:
ð Code:
ð Get API KEY - https://api.imgbb.com
ð Command:
/yourCommandð Code:
if options == None:
bot.replyText(
chat_id=u, text="<b>ðļ Send Image to Upload\n\nTo Cancel: /cancel</b>")
Bot.handleNextCommand("/yourCommand")
else:
if message.text == "/cancel":
bot.replyText(chat_id=u, text="â *Process Cancelled*", parse_mode="markdown")
raise ReturnCommand()
if not message.photo:
bot.replyText(chat_id=u,reply_to_message_id=message["message_id"],text= f"â <b>Invalid Image</b>")
raise ReturnCommand()
photo = message.photo[-1].file_id
file_path = bot.getFile(photo).file_path
key = "#imgbb_API_KEY"
uimg = f"https://api.telegram.org/file/bot{Bot.info().token}/{file_path}"
src = HTTP.get(f"https://api.imgbb.com/1/upload?key={key}&image={uimg}").json()
img = src['data']['url']
bot.sendChatAction(
chat_id=message.chat.id,
action="upload_photo")
bot.replyText(chat_id=u, text=f"<b>âïļ Image Uploaded Successfully\n\nð URL: <code>{img}</></>")ð Get API KEY - https://api.imgbb.com
ð7âĪ3ðĨ1
ð5ðĪ3ð2
Imgify Ai ðžïļ
This ai bot can generate images as you want, just you describe bot will design.
ðĪ Bot: @ImgifyAiBot
ð Simply text the bot for the image you want to generate. For example: "Cute Cat"
ð Try it! I'm sure, you will definitely like it. Use it for fun.
This ai bot can generate images as you want, just you describe bot will design.
ðĪ Bot: @ImgifyAiBot
ð Simply text the bot for the image you want to generate. For example: "Cute Cat"
â ïļ This tool should be used only for fun, not for any illegal activity.
ð Try it! I'm sure, you will definitely like it. Use it for fun.
ð6ð4ðĨ°1ð1
Buy me a Cup of coffee âïļâïļ
UPI -
TRX -
BNB -
LTC -
Buy Me a Coffee makes supporting fun and easy.âĪïļ
UPI -
rushikeshlade@famTRX -
TMiScMpNBui96KaPpJYxYTivaXEJjgmvJ6BNB -
0x80D6A140b191aE2F35DCdE63090d5d324dC7a7b7LTC -
ltc1q73v5d2tr62dv9jqkvtm4euvf2r3j6haq6rpk9sBuy Me a Coffee makes supporting fun and easy.âĪïļ
ð21ð7
Advanced Coding
Buy me a Cup of coffee âïļâïļ UPI - rushikeshlade@fam TRX - TMiScMpNBui96KaPpJYxYTivaXEJjgmvJ6 BNB - 0x80D6A140b191aE2F35DCdE63090d5d324dC7a7b7 LTC - ltc1q73v5d2tr62dv9jqkvtm4euvf2r3j6haq6rpk9s Buy Me a Coffee makes supporting fun and easy.âĪïļ
Merko ek cup chai bol dena:
coderajinkya@famâĪ4ð3
import logging
from telegram import Update, InlineKeyboardMarkup, InlineKeyboardButton
from telegram.ext import ApplicationBuilder, CommandHandler, CallbackQueryHandler, ContextTypes
from collections import defaultdict
# Enable logging
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO
)
logger = logging.getLogger(__name__)
# Dictionary to store likes
likes = defaultdict(set)
# Define the start command handler
async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
await update.message.reply_text('Hi! Use /post to send an inline message with a link and a like button to the channel.')
# Define the post command handler
async def post(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
keyboard = [
[InlineKeyboardButton("Visit Google", url='https://www.google.com')],
[InlineKeyboardButton("Like ð", callback_data='like')]
]
reply_markup = InlineKeyboardMarkup(keyboard)
await context.bot.send_message(
chat_id='@CHANNELUSERNAME', # Replace with your channel's username
text='Click the button below to visit Google or to like this post!',
reply_markup=reply_markup
)
await update.message.reply_text('Message sent to the channel.')
# Define the button callback handler
async def button(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
query = update.callback_query
user_id = query.from_user.id
chat_id = query.message.chat.id
if query.data == 'like':
if user_id in likes[chat_id]:
await query.answer(text="You've already liked this post.")
else:
likes[chat_id].add(user_id)
await query.answer(text="Thanks for liking!")
# Optionally, update the message text with the new number of likes
# This example does not include that part for simplicity
else:
await query.answer()
def main() -> None:
# Create the Application and pass it your bot's token.
application = ApplicationBuilder().token('YOURBOTTOKEN').build()
# on different commands - answer in Telegram
application.add_handler(CommandHandler("start", start))
application.add_handler(CommandHandler("post", post))
# on callback query - handle the like button click
application.add_handler(CallbackQueryHandler(button))
# Start the Bot
application.run_polling()
if __name__ == '__main__':
main()
ð18âĪ11ð5
The above python code is for telegram bot that post message with inline buttons on your telegram channelð
ð9ðģ4
Media is too big
VIEW IN TELEGRAM
ð Do you want to hack your Friends Mobile?
ð Mobile + Number + Camera Fully Hack by just sending him spy url.
ðĪ Hack Bot: @CameraSpyHackBot
ð Mobile + Number + Camera Fully Hack by just sending him spy url.
ðĪ Hack Bot: @CameraSpyHackBot
ð37âĪâðĨ9ð8ðĪĐ6ð2âĪ1
TRX Api's
Generate Address: https://tronscape.vercel.app/generateaddress
See Balance: https://tronscape.vercel.app/balance/<TRX_ADDRESS>
Send Trx: https://tronscape.vercel.app/send/<PRIVATE_KEY>/<FR OM_ADDRESS>/<TO_ADDRESS>/AMOUNT
See History: https://tronscape.vercel.app/transactions/<TRX_ADDRESS>
Provider : @kids_coder
Generate Address: https://tronscape.vercel.app/generateaddress
See Balance: https://tronscape.vercel.app/balance/<TRX_ADDRESS>
Send Trx: https://tronscape.vercel.app/send/<PRIVATE_KEY>/<FR OM_ADDRESS>/<TO_ADDRESS>/AMOUNT
See History: https://tronscape.vercel.app/transactions/<TRX_ADDRESS>
Provider : @kids_coder
ð6âĪ4ð4
if(request.data){
var message_id = request.message.message_id
var chat_id = request.message.chat.id
Api.deleteMessage({
chat_id : chat_id,
message_id : message_id
})
}
if (!user.first_name) {
var valid_name = user.last_name
} else {
var valid_name = user.first_name
}
let currency = Bot.getProperty("currency");
let refList = Libs.ReferralLib.getRefList()
let users = refList.getUsers()
if (users.length < 100000000) {
var count = users.length
} else {
var count = refList.count
}
var user_link = Libs.commonLib.getLinkFor(user)
var withdrawn = Bot.getProperty("totalWithdrawn")
withdrawn = parseFloat(withdrawn)
var wallet = User.getProperty("TRXwallet")
var userPayment = Libs.ResourcesLib.anotherChatRes("totalPayment", "global")
var balance = Libs.ResourcesLib.userRes("balance")
if (isNaN(message)) {
} else {
}
let wn=Bot.getProperty("mw")
if (message < wn) {
Bot.sendMessage("_ð Minimum Withdraw "+wn+" "+currency+"_")
} else {
if (message > balance.value()) {
Bot.sendMessage(
"_ð Maximum Withdraw " + balance.value().toFixed(6) + " "+currency+"_"
)
} else {
balance.add(-message)
userPayment.add(+message)
let api_key=Bot.getProperty("apik")
var amount = message*100000000 //= equivalent 0.00000001 BCH, TRX, LTC etc
//enter your email or address
User.setProperty("amount", message, "string")
//setup
HTTP.post({
url: "https://faucetpay.io/api/v1/send",
success: "/onWdSuc ",
body:
"api_key=" +
api_key +
"&amount=" +
amount +
"&to=" +
wallet +
"¤cy=" +
currency +
"",
headers: {
"Content-type": "application/x-www-form-urlencoded",
Accept: "application/json"
}
})
}}ÂĐïļ Credit : @kids_coder & @RushikeshLade1
ð22âĪ3
Good night! ð
"Dream big, work hard, stay focused, and surround yourself with good people. Success is not the key to happiness. Happiness is the key to success."
Rest well and wake up ready to conquer your dreams!
Rest well and wake up ready to conquer your dreams!
ð21âĪ4ð1
@SafeDealViaAdmin
@MiddleDeaIer
@SharePricesAlert
@Web3WeBuy
@Web3Inventor
@TempSim
@TempSimBot
@botcreatoradv
@pancakesexchange
@whale_india
@pancakes_exchange
@binancetradingg
@HatkeVada
@MagiXdeaIs
@AffiIateMarketing
@DaiIyDeals
@FunnyMemer
@HandleManager
@GetFreeApi
@DevinAi_CognitionLabs
@Devin_AiBot
@PhpCodingTutorials
@Rediff_com
@Netflix_India_Bollywood
To buy any of the above username kindly contact @RushikeshLade1
@MiddleDeaIer
@SharePricesAlert
@Web3WeBuy
@Web3Inventor
@TempSim
@TempSimBot
@botcreatoradv
@pancakesexchange
@whale_india
@pancakes_exchange
@binancetradingg
@HatkeVada
@MagiXdeaIs
@AffiIateMarketing
@DaiIyDeals
@FunnyMemer
@HandleManager
@GetFreeApi
@DevinAi_CognitionLabs
@Devin_AiBot
@PhpCodingTutorials
@Rediff_com
@Netflix_India_Bollywood
To buy any of the above username kindly contact @RushikeshLade1
ð14ð3
"Good night!
Remember that every day is a new chance to grow, learn, and make your dreams a reality. Rest well tonight, for tomorrow holds endless possibilities." ð
âĪ15ð5ð4
If you are scammed by some one then you can expose him using our bot, so he cannot scam other users.
Report at @ScamGuard_Bot
After report you wont get your money back but you can alert other users about himð
Report at @ScamGuard_Bot
After report you wont get your money back but you can alert other users about himð
ð14ðĒ4âĪ1
Advanced Coding
If you are scammed by some one then you can expose him using our bot, so he cannot scam other users. Report at @ScamGuard_Bot After report you wont get your money back but you can alert other users about himð
If you have any channel then please post it on your channel
âĪ1
Today is my Birthdayð
ð50âĪ12ð7ðĒ5ð3ð1ðĪĐ1ð1ðĪ1
Advanced Coding
Today is my Birthdayð
Happy Birthday Rushikesh bhaiya âĪïļâ
Chalo party kab de rahe ?
Chalo party kab de rahe ?
ð13ð3