def quote_from_author(update, context, author): print(f'will quote from author={author}') from quotes.models import Quote quote = Quote.from_author(author) print(f'quote:{quote}') update.message.reply_text(str(quote))