M
M
MakarMS2020-10-18 19:24:45
Java
MakarMS, 2020-10-18 19:24:45

How to upload an image from hosting to Telegram?

I have a task to write an auto sales bot for telegram.

5f8c6b92d5c8d035614515.jpeg

I made a small block diagram of the bot. The question is, the messages that the bot will send should contain images that the customer should conveniently change through the web admin panel. How to implement it in Java code? The database stores a link to the image, the link to which I insert into the java code or what? I have no idea how to implement this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2020-10-18
@MakarMS

The telegram bot API allows you to send a picture directly.
On the bot side, upload the image from the link (perhaps it makes sense to cache it), and send it in a message.
It seems nothing complicated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question