0

I have a list of strings, name, ignore_stock. I want to display it in a telegram bot message. Presently, I am displaying it like this:

update.message.reply_text(f'<b>Following stocks are ignored: {ignore_stock}</b>', parse_mode='HTML')

This displays the list like this: ['a','b','c'] inside the telegram bot message.

I want to display the list like this: a, b, c inside the telegram bot message without [ ] and ''. How do I do that?

thanks in advance

KawaiKx
  • 9,558
  • 19
  • 72
  • 111

1 Answers1

1

Try replacing {ignore_stock} with {",".join(ignore_stock)}