Skip to content

Commit

Permalink
disable 4g
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Dec 21, 2023
1 parent 750c897 commit ee65c37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ytdlbot/ytdl_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
__author__ = "Benny <[email protected]>"

import contextlib
import json
import logging
import os
import random
Expand Down Expand Up @@ -321,9 +320,10 @@ def tronpayment_btn_calback(client: Client, callback_query: types.CallbackQuery)
def premium_click(client: Client, callback_query: types.CallbackQuery):
data = callback_query.data
if data == "premium-yes":
replied = callback_query.message.reply_to_message
data = {"url": replied.text, "user_id": callback_query.message.chat.id}
client.send_message(PREMIUM_USER, json.dumps(data), disable_notification=True, disable_web_page_preview=True)
callback_query.answer("developing....please wait for next release")
# replied = callback_query.message.reply_to_message
# data = {"url": replied.text, "user_id": callback_query.message.chat.id}
# client.send_message(PREMIUM_USER, json.dumps(data), disable_notification=True, disable_web_page_preview=True)
else:
callback_query.answer("Cancelled.")

Expand Down

0 comments on commit ee65c37

Please sign in to comment.