A
A
Angelina2019-08-07 17:30:46
Python
Angelina, 2019-08-07 17:30:46

What to do with a lot of text in a telegram bot?

Hey!
I have a question.
The bot will have a large number of keyboards, and each final button will contain a lot of information. In order not to leave it in the code, is it possible to write the text in a separate file, and when you click on the button, it was imported from the file with the text into the code? How to implement? Or can you leave everything in the code?
I write in python, I use the pyTelegraam library

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sound901, 2019-08-07
@saund901

you can, but it’s better to use the database, and not shove it into files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question