This repository has been archived by the owner on Jul 30, 2023. It is now read-only.
forked from Sadew451/AnonymousSender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDBot.py
57 lines (44 loc) · 2.08 KB
/
SDBot.py
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
55
56
57
# Sadew Jayasekara <https://t.me/Itz_Sadew>
import os
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
from pyrogram.types.bots_and_keyboards.reply_keyboard_markup import ReplyKeyboardMarkup
API_ID = int(os.environ.get("API_ID"))
API_HASH = os.environ.get("API_HASH")
BOT_TOKEN = os.environ.get("BOT_TOKEN")
SD = Client("anymouse sender", bot_token = BOT_TOKEN, api_id = API_ID, api_hash = API_HASH)
STICKER = "CAACAgEAAxkBAAEByrhhud7I5QYR81zDK_43Fq0lLLXfUQACFgEAAnqTKUSkDDzwSrcbwyME"
START_TEXT = """👋 Hey I am **Anonymous Sender Bot.**
__Just Forward me Some messages or media and I will **Anonymouse** that!__
__I can edit caption_
🛠 **Server** : [Heroku](Heroku.com)
🛠 **Library** : [Pyrogram](https://github.com/pyrogram/pyrogram)
**Made by** @SDBotsz. | @Itz_Sadew. """
REPLY_MARKUP = InlineKeyboardMarkup([
[InlineKeyboardButton(text="👩💻 Creater", url="https://t.me/Itz_Sadew"),
InlineKeyboardButton(
text="👥 Support Group", url=f"https://t.me/SDBotz")],
[InlineKeyboardButton(text="📡 Update Channel", url=f"https://t.me/SDBOTs_Inifinity"),
InlineKeyboardButton(
text="💾 Scource Code", url=f"https://github.com/Sadew451")]])
@SD.on_message(filters.command('start') & filters.private)
async def start(client, message):
await message.reply_sticker(STICKER)
await message.reply_text(START_TEXT,
reply_markup=REPLY_MARKUP,
disable_web_page_preview=True)
@SD.on_message(filters.caption & filters.private)
async def addorno(client, message):
msg = message.message._id
await message.reply_text('start bot go to the option', quote=True,
reply_markup=InlineKeyboardMarkup([InlineKeyboardButton(text="yes",
callback_data=f"yes-{msg}"),
InlineKeyboardButton(text="No",
callback_data=f"no-{msg}")])
)
@SD.on_message(filters.private & filters.text | filters.media)
async def SDBot(client, message):
await message.copy(message.chat.id)
print("Bot is Started")
print("Join @SDBotsz.")
SD.run()