0

Написал код и хочу добавить в слово: Привет, добавить ссылку

bot.send_message(message.chat.id ,'[Привіт](https://pypi.org/project/pyTelegramBotAPI/#description), я чат-бот ', reply_markup=markup,parse_mode='HTML')

На reply_markup=markup не обращайте внимание у меня там кнопки

1 ответ 1

1

Вот похожий вопрос. Судя по первому ответу, может помочь Внедрение ссылки в сообщение telegram bot

from aiogram.utils.markdown import hlink

hello_with_url = hlink('Привіт', 'https://pypi.org/project/pyTelegramBotAPI/#description')
bot.send_message(message.chat.id ,f'{hello_with_url}, я чат-бот ', reply_markup=markup,parse_mode='HTML')

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.