disable buy

This commit is contained in:
Benny 2024-04-07 20:14:34 +02:00
parent 76172fb0b7
commit aab8abd74c
No known key found for this signature in database
GPG key ID: 6CD0DBDA5235D481

View file

@ -307,6 +307,8 @@ def buy_handler(client: Client, message: types.Message):
# process as chat.id, not from_user.id
chat_id = message.chat.id
client.send_chat_action(chat_id, enums.ChatAction.TYPING)
message.reply_text("Not available now.")
return
# currency USD
token_count = message.text.replace("/buy", "").strip()
if token_count.isdigit():