File size: 2,184 Bytes
f9bd520
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from aiogram import Bot, Dispatcher, executor, types
from aiogram.types import ReplyKeyboardMarkup, ReplyKeyboardRemove, KeyboardButton
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from random import randint

bot = Bot(token='5829401310:AAHHf2lK9fQ_orNGi70AyXxNDnb0ex9jABo')
dp = Dispatcher(bot)
button1 = InlineKeyboardButton(text="👑 ارتباط با ما", callback_data="randomvalue_of100",url="https://t.me/Nima41217")
button3 = InlineKeyboardButton(text="💋 چنل", callback_data="randomvalue_of100",url="https://t.me/CLUB_BCC")
button2 = InlineKeyboardButton(text="💬 گروه", callback_data="randomvalue_of100",url="https://t.me/+uNzCjN9S6L9iNjU0")


keyboard_inline = InlineKeyboardMarkup().add(button3,button2,button1)
text =''' #WELCOM To Our Family 🏠
SUPER GAP 🔛ᯓ𝗖𝗟𝗨𝗕 𝗛𝗢𝗨𝗦𝗘
Voice Chat ✅ 24 🕧Active
Gap Chat   ✅ 5 k🕓In Day
For Professional Members🧬 '''

keyboard1 = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True).add("👋 گروه!", "🚀 چنل","")


@dp.message_handler(commands=['random'])
async def random_answer(message: types.Message):
    await message.answer_photo('https://raw.githubusercontent.com/g0d1t/xcvv/main/photo_2023-06-05_22-30-28.jpg',text, reply_markup=keyboard_inline)
   


@dp.message_handler(commands=['start', 'help'])
async def welcome(message: types.Message):
    await message.reply("سلام به ربات  گرافیک سرعت خوش امدی", reply_markup=keyboard1)


@dp.callback_query_handler(text=["randomvalue_of10", "randomvalue_of100"])
async def random_value(call: types.CallbackQuery):
    if call.data == "randomvalue_of10":
        await call.message.answer(randint(1, 10))
    if call.data == "randomvalue_of100":
        await call.message.answer(randint(1, 100))
    await call.answer()


@dp.message_handler()
async def kb_answer(message: types.Message):
    if message.text == '👋 Hello!':
        await message.reply("Hi! How are you?")
    elif message.text == '💋 Youtube':
        await message.reply("name")
    else:
        await message.reply(f"Your message is: {message.text}")


executor.start_polling(dp)