Smart Dev
How to Use Colored Inline Buttons with Custom Emoji in aiogram Requirements: aiogram 3.25.0+ (Latest version): pip3 install --upgrade aiogram
import asyncio
from aiogram import Bot, Dispatcher
from aiogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
from aiogram.filters import Command
TOKEN = 'XXXXXXXXXXXXX'
bot = Bot(token=TOKEN)
dp = Dispatcher()
@dp.message(Command("start"))
async def send_welcome(message: Message):
keyboard = InlineKeyboardMarkup(
inline_keyboard=[
[InlineKeyboardButton(
text="Primary Button",
callback_data="primary_btn",
icon_custom_emoji_id="5258096772776991776",
style="primary"
)],
[InlineKeyboardButton(
text="Success Button",
callback_data="success_btn",
icon_custom_emoji_id="5258503720928288433",
style="success"
)],
[InlineKeyboardButton(
text="Danger Button",
callback_data="danger_btn",
icon_custom_emoji_id="5258331647358540449",
style="danger"
)]
]
)
await message.answer(
"Hello! Welcome to Color Button Demo 🎨\n\n"
"🔵 Primary - Blue Button\n"
"🟢 Success - Green Button\n"
"🔴 Danger - Red Button",
reply_markup=keyboard
)
@dp.callback_query()
async def handle_buttons(callback: CallbackQuery):
messages = {
"primary_btn": "✅ You clicked Primary (Blue) button!",
"success_btn": "✅ You clicked Success (Green) button!",
"danger_btn": "✅ You clicked Danger (Red) button!"
}
await callback.answer(messages.get(callback.data), show_alert=True)
async def main():
print("Bot started! 🚀")
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(main())
🔥5 4❤1 1
How to Get Custom Emoji IDs:
1. Open bot: @emoji_idbot
2. Send any emoji (from premium emoji packs)
3. Copy the emoji ID
4. Use it in your button!
1. Open bot: @emoji_idbot
2. Send any emoji (from premium emoji packs)
3. Copy the emoji ID
4. Use it in your button!
Bot Update - Perplexity Command Fixed
Fixed bug where /ppx command failed with URLs in prompts.
Before: ❌ 404 error when using URLs
After: ✅ Works perfectly with any URL
Example now working:
/ppx read this article https://9to5google.com/...
Fixed bug where /ppx command failed with URLs in prompts.
Before: ❌ 404 error when using URLs
After: ✅ Works perfectly with any URL
Example now working:
/ppx read this article https://9to5google.com/...
⚡2
Smart Dev
Bot Update - Perplexity Command Fixed Fixed bug where /ppx command failed with URLs in prompts. Before: ❌ 404 error when using URLs After: ✅ Works perfectly with any URL Example now working: /ppx read this article https://9to5google.com/...
AI-powered with cited sources, perfect for research and getting direct answers with references
🚀 NEW: AI Help Command 🤖
Tired of searching for commands? Just ASK!
Use
•
•
•
Get instant answers with examples! ⚡️
Try it now:
Tired of searching for commands? Just ASK!
Use
/help + your question:•
/help How to download Instagram videos?•
/help How to translate a image ?•
/help What downloaders are available?Get instant answers with examples! ⚡️
Try it now:
/help what can this bot do?❤3
Smart Dev
🎵 @TelecastRobot Music Bot — Now Live! Turn your Telegram voice chats into a powerful music hub 🎶 ✨ Highlights • High-quality YouTube music (Audio & Video) • Inline mode — find and play songs easily • Auto voice chat title update • 🏆 Daily & Weekly Top-5…
New Update 🎧
Music player is now faster, and the old issue where songs were not playing fully has been fixed.
New Feature:
When someone requests a song and leaves the voice chat, the bot will mention them once their song starts playing.
YouTube Music Support Added:
The bot now supports YouTube Music URLs, so songs can be requested directly using YouTube Music links.
Admin Control:
This mention feature is optional — admins can turn it off anytime from the bot settings.
Music player is now faster, and the old issue where songs were not playing fully has been fixed.
New Feature:
When someone requests a song and leaves the voice chat, the bot will mention them once their song starts playing.
YouTube Music Support Added:
The bot now supports YouTube Music URLs, so songs can be requested directly using YouTube Music links.
Admin Control:
This mention feature is optional — admins can turn it off anytime from the bot settings.
How to Use Colored Inline Buttons with Custom Emoji in kurigram [ pyrogram fork version ]
Requirements:
kurigram v2.2.19+ (Latest version):
Requirements:
kurigram v2.2.19+ (Latest version):
pip3 install --upgrade kurigram
❤1
Smart Dev
How to Use Colored Inline Buttons with Custom Emoji in kurigram [ pyrogram fork version ] Requirements: kurigram v2.2.19+ (Latest version): pip3 install --upgrade kurigram
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
from pyrogram.enums import ButtonStyle
API_ID = 'YOUR_API_ID'
API_HASH = 'YOUR_API_HASH'
BOT_TOKEN = 'YOUR_BOT_TOKEN'
app = Client("my_bot", api_id=API_ID, api_hash=API_HASH, bot_token=BOT_TOKEN)
@app.on_message(filters.command("start"))
async def start(client, message):
keyboard = InlineKeyboardMarkup([
[InlineKeyboardButton(
text="Primary Button",
callback_data="primary_btn",
icon_custom_emoji_id=5258096772776991776,
style=ButtonStyle.PRIMARY # Dark Blue
)],
[InlineKeyboardButton(
text="Success Button",
callback_data="success_btn",
icon_custom_emoji_id=5258503720928288433,
style=ButtonStyle.SUCCESS # Green
)],
[InlineKeyboardButton(
text="Danger Button",
callback_data="danger_btn",
icon_custom_emoji_id=5258331647358540449,
style=ButtonStyle.DANGER # Red
)]
])
await message.reply(
"Choose a button color! 🎨\n\n"
"🔵 Primary - Dark Blue Button\n"
"🟢 Success - Green Button\n"
"🔴 Danger - Red Button",
reply_markup=keyboard
)
@app.on_callback_query()
async def handle_buttons(client, callback_query: CallbackQuery):
messages = {
"primary_btn": "✅ You clicked Primary (Dark Blue) button!",
"success_btn": "✅ You clicked Success (Green) button!",
"danger_btn": "✅ You clicked Danger (Red) button!"
}
await callback_query.answer(
messages.get(callback_query.data),
show_alert=True
)
print("Bot started! 🚀")
app.run()
⚡1❤1
Colored Inline Buttons with Custom Emoji
For Telethon :
For Aiogram :
For Kurigram [ Pyrogram Fork ] :
For Telethon :
https://t.me/itsSmartDev/1366
For Aiogram :
https://t.me/itsSmartDev/1368
For Kurigram [ Pyrogram Fork ] :
https://t.me/itsSmartDev/1385
❤4
আজ মহান শহীদ দিবস ও আন্তর্জাতিক মাতৃভাষা দিবস।
১৯৫২ সালের এই দিনে বাংলাকে রাষ্ট্রভাষা করার দাবিতে যারা জীবন উৎসর্গ করেছিলেন, তাদের প্রতি গভীর শ্রদ্ধা ও কৃতজ্ঞতা।
তাদের ত্যাগের মাধ্যমেই আমরা পেয়েছি নিজের ভাষায় কথা বলার অধিকার, পেয়েছি আমাদের পরিচয়।
ভাষা শুধু কথা বলার মাধ্যম নয়—এটাই আমাদের সংস্কৃতি, আমাদের আত্মা, আমাদের অস্তিত্ব।
সবাইকে ২১ ফেব্রুয়ারির শ্রদ্ধাভরা শুভেচ্ছা।
শহীদদের আত্মত্যাগ চিরকাল আমাদের পথ দেখাক। 🌼
১৯৫২ সালের এই দিনে বাংলাকে রাষ্ট্রভাষা করার দাবিতে যারা জীবন উৎসর্গ করেছিলেন, তাদের প্রতি গভীর শ্রদ্ধা ও কৃতজ্ঞতা।
তাদের ত্যাগের মাধ্যমেই আমরা পেয়েছি নিজের ভাষায় কথা বলার অধিকার, পেয়েছি আমাদের পরিচয়।
ভাষা শুধু কথা বলার মাধ্যম নয়—এটাই আমাদের সংস্কৃতি, আমাদের আত্মা, আমাদের অস্তিত্ব।
সবাইকে ২১ ফেব্রুয়ারির শ্রদ্ধাভরা শুভেচ্ছা।
শহীদদের আত্মত্যাগ চিরকাল আমাদের পথ দেখাক। 🌼
❤8 3