Download main.py from MTINET/time: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/datasets/MTINET/time/resolve/main/main.py
- Command line
-
hf download hf://datasets/MTINET/time/main.py
-
curl -L -o main.py https://huggingface.co/datasets/MTINET/time/resolve/main/main.py
2.18 kB
| 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("👋 گروه!", "🚀 چنل","") | |
| 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) | |
| async def welcome(message: types.Message): | |
| await message.reply("سلام به ربات گرافیک سرعت خوش امدی", reply_markup=keyboard1) | |
| 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() | |
| 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) | |