def start_command(update, context):
update.message.reply_text('''Hello there! I\'m a crypto sentiment bot.
Send me the coin name, I\'ll send you sentiment!''')
def help_command(update, context):
update.message.reply_text('''check the coin names from the list below!
bitcoin\n etherium\n ripple\n dogecoin\n cardano\n polygon
binance\n polkadot\n uniswap\n litecoin\n chainlink\n solana\n stellar''')
def handle_message(update, context):
text = str(update.message.text).lower()
logging.info(f'User ({update.message.chat.id}) says: {text}')
sentiment_naas = get_response(text)
update.message.reply_text(sentiment_naas)
def error(update, context):
logging.error(f'Update {update} caused error {context.error}')