├── MoonMouse.mp4 ├── requirements.txt └── send_message.py /MoonMouse.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptoLover131/telegram-sendmessage-bot/ad9b367795363aecb2b94bd3729cde6f1a5dd5c4/MoonMouse.mp4 -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | python-telegram-bot -------------------------------------------------------------------------------- /send_message.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import telegram 3 | from telegram import Bot, InlineKeyboardButton, InlineKeyboardMarkup 4 | from telegram.ext import ApplicationBuilder 5 | 6 | API_TOKEN = '7462674994:AAGv1gLMqoxQ4Z7_ZpROZLBR_aqxRINekoo' 7 | CHANNEL_ID = '-1002240815695' 8 | 9 | reply_markup = InlineKeyboardMarkup([ 10 | [ 11 | InlineKeyboardButton("X(Twitter)", callback_data="https://x.com/moonmouse24", url="https://x.com/moonmouse24"), 12 | InlineKeyboardButton("Website", callback_data="https://moonmouse.io", url="https://moonmouse.io"), 13 | ], 14 | [InlineKeyboardButton("Tap to Verify", callback_data="http://t.me/safeguard?start=-1002212462327", url="http://t.me/safeguard?start=-1002212462327")], 15 | ]) 16 | 17 | msg = "MOONMOUSE (Chat) $MMOUSE is being protected by \n @Safeguard \n\n Click below to verify you're human" 18 | video_url='MoonMouse.mp4' 19 | 20 | # using telegram.Bot 21 | async def send(chat, video, message, reply_markup): 22 | await Bot(API_TOKEN).send_video(chat_id=chat, video=video, caption=message, reply_markup=reply_markup) 23 | 24 | asyncio.run(send(CHANNEL_ID, video_url, msg, reply_markup)) 25 | --------------------------------------------------------------------------------