Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .env

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.env

__pycache__/

.vscode/

Binary file removed __pycache__/bot.cpython-311.pyc
Binary file not shown.
Binary file removed __pycache__/bot.cpython-39.pyc
Binary file not shown.
Binary file removed __pycache__/storer.cpython-311.pyc
Binary file not shown.
Binary file removed __pycache__/storer.cpython-39.pyc
Binary file not shown.
11 changes: 11 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ def get_bitcoin_price():
def create_bot():
bot = telebot.TeleBot(TG_API_KEY)

@bot.message_handler(commands=['help'])
def help(message):
bot.reply_to(message, """
Available Commands:\n
/gm --> Says good morning\n
/gn --> Says goodnight\n
/btc --> Returns the current price of bitcoin in USD\n
/send --> Records your user_id in our database\n
/help --> send this same message to see available commands
""")

@bot.message_handler(commands=['greet'])
def greet(message):
bot.reply_to(message, "Hey whats up?")
Expand Down