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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
venv/
7 changes: 5 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Constants
BOT_USERNAME: Final = 'xyz'
BOT_TOKEN: Final = "your token"
BOT_TOKEN: Final = os.getenv("BOT_TOKEN")
COINGECKO_API_URL: Final = "https://api.coingecko.com/api/v3"

# Conversation states
Expand Down Expand Up @@ -62,7 +62,10 @@ async def show_main_menu(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
keyboard = [
[InlineKeyboardButton("Top 100 Cryptocurrencies", callback_data='top100')],
[InlineKeyboardButton("Trending Cryptocurrencies", callback_data='trending')],
[InlineKeyboardButton("Search Cryptocurrency", callback_data='search')]
[InlineKeyboardButton("Search Cryptocurrency", callback_data='search')],
[InlineKeyboardButton("Litecoin (LTC)", callback_data='crypto:litecoin')],
[InlineKeyboardButton("Dogecoin (DOGE)", callback_data='crypto:dogecoin')],
[InlineKeyboardButton("Cardano (ADA)", callback_data='crypto:cardano')],
]
reply_markup = InlineKeyboardMarkup(keyboard)
text = "Welcome to the Crypto Price Bot! What would you like to do?"
Expand Down