P
P
popoff032018-11-19 20:26:42
Python
popoff03, 2018-11-19 20:26:42

How to correctly import the keyboard from another file?

I am writing a bot, but writing the entire keyboard in the main file is too much. How to import it correctly from a file with a keyboard into the main one?
For example, in a file with a keyboard, the code is:
tp = telebot.types.ReplyKeyboardMarkup(True, False)
tp.row('Technical support')
What should I write in the main file?
PS I'm a beginner and for some it's easy, but I'm still delving into it. Thank you for your time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alternativshik, 2018-11-19
@popoff03

from keyboard_py_file import keyboard

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question