Remove word "function" from all function names in the file. function_counselor_n are to be named schedule_counselor_appointment_n
Replace schedule_counselor_appointment_n with a single function that accepts counselor id as an argument
See if you can put functions directly to callback_data instead of this if-else function here. You can use functools.partial for functions that require some arguments to be fixed like schedule_counselor_appointment
user_utils.select_username_from_text
with plainmessage.text.split()[1]
function_counselor_n
are to be namedschedule_counselor_appointment_n
schedule_counselor_appointment_n
with a single function that accepts counselor id as an argumentfunctools.partial
for functions that require some arguments to be fixed likeschedule_counselor_appointment