[PYTHON]def reg_order_number(message):
global order_number
order_number = message.text[/PYTHON]
df.loc[df['Артикул_'].values == Глобальная переменная, cols].to_excel('P:/Program Files/test/test10.xlsx',
index=False)
local variable 'order_number' referenced before assignment