Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import telebot
- bot = telebot.TeleBot("2012506055:AAFYd_KVIlOk4TvxPZms-KXECIxuULwnGHU")
- r = requests.session()
- @bot.message_handler(commands=['start'])
- def start(message):
- first = message.from_user.first_name
- bot.send_message(message.chat.id, text=f"<strong>Hi {first}\n- - - - -\nSend TikTok Video Url To Download Him! \n- - - - -\nBy @SMOKA_28</strong>",parse_mode="html")
- @bot.message_handler(func=lambda m: True)
- def Get(message):
- msg = message.text
- text = msg.split(":")[0]
- t_title = msg.split(":")[1]
- form = msg.split(":")[2]
- bot.send_message(message.chat.id,f"<strong>Wait Please ... </strong>",parse_mode="html")
- key = 'i9QLuX9Vw0AM6lq3eKuFIAKnRPgt6Za1'
- login_data = {'api_dev_key':key,
- 'api_user_name':'MUSTAFA733737',
- 'api_user_password':'krarkrar1111'}
- data = {'api_option':'paste',
- 'api_dev_key':key,
- 'api_paste_code':text,
- 'api_paste_name':t_title,
- 'api_paste_expire_date':'N',
- 'api_user_key':None,
- 'api_paste_format':form}
- login = requests.post('https://pastebin.com/api/api_login.php', data=login_data)
- data['api_user_key'] = login.text
- r = requests.post('https://pastebin.com/api/api_post.php', data=data).text
- bot.send_message(message.chat.id, text=f"<strong>Done- - - - -\n paste URL : {r} </strong>",parse_mode="html")
- pass
- bot.polling(True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement