How can I send one variable to another script? I have 3 scripts (bot.py, language_dict.py, markups.py)
language_dict.py (dictionary)
russian = {
"section": "Выберите раздел ➡",
"individual": "Физические лица",
"legal_entity": "Юридические лица",
}
In bot.py I declare this dictionary to dic variable
import language_dict
def language(message):
chat_id = message.chat.id
if message.text == "Русский":
dic = language_dict.russian
msg = bot.send_message(chat_id, dictionary["section"])
So, I need to send dic to markups.py
import bot
#to here