I am writing a telegram bot in python. I want to print the random number (from 1 to 9, 4 digit number) between text in this command:
import random
import telebot
from telebot.types import Message
TOKEN = ''
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands=['start'])
def command_handler(message: Message):
bot.reply_to(message, 'example_text1\n'
random_number_here\n
'example_text2\n')
How can I do this? Maybe I can do this using another command, but I don't know how.