python
597 subscribers
23 photos
3 videos
69 files
21 links
channel interested in programming languages such as Python
the creator : @DuDrD
Download Telegram
تعلمو شباب
4👍1
ها شباب
4
import telebot
bot = telebot.TeleBot("Token")
@bot.message_handler(func=lambda message: True)
def logo(message):
logo = f"https://bcassetcdn.com/asset/logo/4b4b23e4-f3d3-42b1-9c5d-615ac62ef5ac/logo?v=4&text={message.text}"
bot.send_photo(message.chat.id, logo)
bot.infinity_polling()

بوت يصنعلك لوقو بالاسم التدزه .
import telebot
bot = telebot.TeleBot("Token")
@bot.message_handler(func=lambda message: message.text.isdigit())
def num(message):
num = int(message.text)
rel = ""
for i in range(1, 11):
rel += f"{num} × {i} = {num*i}\n"
bot.reply_to(message, rel)

@bot.message_handler(func=lambda message: not message.text.isdigit())
def unnum(message):
bot.reply_to(message, "اكتب بس رقم .")
bot.infinity_polling()

بوت بس تدزله رقم يدزلك جدوله الضرب
👍2👎1
شباب افكار اكو؟
👍1
🤯1
🤯1
ترجمةة.py
875 B
Ar 🇮🇶
كود بوت ترجمة الى 5 لغات الي هي
الانكليزية ، الفرنسية ، العربية ، الصينية ، التركية
من تدزله كلمة راح يدزلك معناها بهذة اللغات بدون Api بـ مكتبة ( googletrans )
-
En 🇬🇧
Code bot translated into 5 languages
English, French, Arabic, Chinese, Turkish
Whoever enters a word, it will provide you with its meaning in these languages without the API using the ( googletrans ) .

@iq_python - @DuDrD
👍1
import telebot
from telebot import types
#@iq_python - @DuDrD
bot = telebot.TeleBot("Token")
#@iq_python - @DuDrD
@bot.message_handler(commands=['start'])
def start(message):
list = [
{"name": "python", "url": "https://t.me/iq_python"},
{"name": "أذكار", "url": "https://t.me/Y5Y1Y"}
]
bttn = types.InlineKeyboardMarkup()
for btns in list:
n = btns["name"]
u = btns["url"]
btn = types.InlineKeyboardButton(n, url=u)
bttn.add(btn)


bot.reply_to(message, "أهلاً حبيبي اضغط على الزر اليعجبك .", reply_markup=bttn)

bot.infinity_polling()


بوت يصنعلك ازرار لا نهائية من داخل قائمة تحتوي على الاسماء والروابط وبس
تكدر تسوي زر جديد بهطريقة
{"name" : "اسم الزر", "url" : "رابط الزر"}
بعدها تضيف ( , ) اذا تريد تسوي زر ثاني بهشكل
{"name" : "اسم الزر", "url" : "رابط الزر"},
{"name" : "بايثون", "url" : "https://t.me/iq_python"}
@iq_python - @DuDrD
افكار حلوة اكو !
This media is not supported in your browser
VIEW IN TELEGRAM
python
Sticker
ما باقي شي .
مشروع مصنع بوتات أعرف زبالة بس اول مره احاول اسوي مصنع بوتات
توكن المصنع بملف main.py
وارفعهن ثنينهن وشغل ملف main.py راح يشتغلن ثنينهن
ان شاء الله بلعطلة اذا ما تكاسلت اسوي مصنع بوتات حماية ان شاء الله