To lift the weight of the computation needed to do the parsing after any question is requested to the bot, it would be simpler to keep all these data in memory after an initialization in a dict such as:
qacs: Dict[int, Dict[str, str]] = {
1: {
'q': 'This is a question',
'a': 'C',
'c': 'This is a comment'
},
...
}
To lift the weight of the computation needed to do the parsing after any question is requested to the bot, it would be simpler to keep all these data in memory after an initialization in a dict such as: