-
-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
750c897
commit ee65c37
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
__author__ = "Benny <[email protected]>" | ||
|
||
import contextlib | ||
import json | ||
import logging | ||
import os | ||
import random | ||
|
@@ -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.") | ||
|
||
|