Never worry about crappy resolution again
Telegram is considered one of the best free messaging apps for several reasons. You can use Telegram to exchange large files with your friends, have secret chats, edit or delete messages after you send them, and all without worrying about the security of your private data.
However, not many people know about one of the most useful features of Telegram. You can use this app to send high-quality photos and videos online. We’ll teach you all about this feature, and how to use it on both mobile and desktop versions of the app.
Table of Contents
Messengers are great for exchanging photos and videos. It can quickly become frustrating if the files you send or receive are blurry. That happens because social media and messaging platforms use different image compression techniques. While this simplifies the process of exchanging media files and allows you to send and receive photos quickly, it also means that the quality differs from the original when it reaches the recipient.
Sending uncompressed files can help you avoid disappointment and make sure both the sender and the recipient get the same quality photos and videos. Plus, on Telegram, you don’t have to worry about the files being too big, as the app allows you to exchange large files. Thanks to Telegram’s superior security protocols, you also don’t have to worry about keeping your media files private.
What’s the Max File Size that You Can Share on Telegram?On Telegram, you can send individual files of up to 2GB in size. That exceeds the limits of any other messaging platform. For example, the maximum file size that WhatsApp allows is 16MB for all media, and 100MB for the files you share as documents.
As long as your photo or video doesn’t exceed 2GB, you can send it via Telegram at its full quality.
You can also use Telegram as unlimited cloud storage for your files. Even if you accidentally delete a file from your phone but still have it on Telegram, you can download it again at any time.
There are two ways to send uncompressed media files in the Telegram mobile app. To send high-quality photos & videos from your smartphone, follow the steps below. The steps are the same for both iOS and Android.
Select Gallery. The photos and videos you send using this method will be delivered in their original quality. You can also use the following method to send uncompressed files on Telegram.
Your files will then be sent without being compressed first.
How to Send Uncompressed Photos and Videos in Telegram DesktopWhat if you have your high-quality photos and videos saved on your computer? You can also send them in Telegram without having to sacrifice the quality using the desktop app.
To send uncompressed photos and videos in Telegram from your computer, follow the steps below.
If you’re sending videos from your computer using Telegram, you won’t see the option to send your files without compression. That’s because Telegram doesn’t compress video files, so you don’t have to worry about keeping your high-quality.
Share Your High-Quality Photos and Videos on TelegramYou can choose any of the methods we described to exchange images and videos with your friends or colleagues on Telegram without worrying about compression and reduced quality.
Do you often send high-quality photos & videos online? Do you use Telegram for it or some other app? Share your experience with file transfers in the comments section below.
';document.getElementsByClassName("post-ad-top")[0].outerHTML='';tocEl.outerHTML=tocHTML+newHTML;}}catch(e){console.log(e)}
Anya is a freelance technology writer. Originally from Russia, she is currently a full-time Remote Worker and Digital Nomad. With a background in Journalism, Language Studies, and Technical Translation, Anya couldn't imagine her life and work without using modern technology on a daily basis. Always looking out for new ways to make her life and location-independent lifestyle easier, she hopes to share her experiences as a tech- and internet-addict through her writing. Read Anya's Full Bio
Subscribe on YouTube!
Did you enjoy this tip? If so, check out our very own YouTube channel where we cover Windows, Mac, software, and apps, and have a bunch of troubleshooting tips and how-to videos.
Click the button below to subscribe!
Subscribe
Asked
Modified 5 months ago
Viewed 49k times
Using Telegram Bot API,
I'm aware that it is possible to send an image via https://core.telegram.org/bots/api#sendphoto
However, how can I embed a remote image into a formatted message?
The message I am looking to send, can be compared to a news article with a title in bold, an image, and a longer text with links. I figured out how to create bold text and links with markdown, but I'm failing at inserting images.
How can we do that?
6
you must set ParseMode in HTML and set your Image Url in A tag like this:
<a href="' + image + '">‍</a>
‍ -> never show in message
2
You can use zero-width space trick. Works for both Markdown and HTML parse mode.
Markdown:
$data = [ 'chat_id' => $chat_id, 'parse_mode' => 'markdown', 'text' => "[](https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Stack_Overflow_logo.svg/200px-Stack_Overflow_logo.svg.png) Some text here.", ];
Result:
Note: The zero-width space is in-between the brackets "[]".
1
import requests text="testing" img="http://imageurl.png" r = requests.get('https://api.telegram.org/botyour_token_here/sendMessage?chat_id=@your_channel_here&parse_mode=markdown&text='+"[]("+img+")"+text)
Method using <a href=http://.......jpg>..</a> will show preview of the image below the text. Like this:
a href sample
It will look better if you send an image with a caption.
caption sample
2
You should just add captions
bot.send_video(user_id, video, caption='some interesting text')
In our case captions are text. look this image
Using sendPhoto rather than sendMessage is a cleaner way of achieving this, depending on your use case, for example:
import io import json import requests telegram_bot_token = 'INSERT_TOKEN_HERE' chat_id = '@INSERT_CHAT_ID_HERE' bot_url = 'https://api.telegram.org/bot' + telegram_bot_token + '/sendPhoto' img_url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Stack_Overflow_logo.svg/200px-Stack_Overflow_logo.svg.png' msg_txt = '<b>Stack Overflow Logo</b>' msg_txt += '\n\nStack Overflow solves all our problems' payload = { 'chat_id': chat_id, 'caption': msg_txt, 'parse_mode': 'html' } remote_image = requests.get(img_url) photo = io.BytesIO(remote_image.content) photo.name = 'img.png' files = {'photo': photo} req = requests.post(url=bot_url, data=payload, files=files) response = req.json() print(response)
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Required, but never shown
Required, but never shown
Today it is difficult to imagine correspondence in messengers without a stream of media files and documents, but images remain the most demanded content.
Therefore, having taken a great picture or found an interesting picture, the user is faced with the problem of how to send a photo to Telegram.
Not everyone knows that Telegram compresses photos, but this does not happen with all pictures and not always. Common formats - jpg (jpeg), png and gif - can be sent both in compressed form and in its original form. Other types of photos (such as raw or psd) Telegram sends without compressing. nine0003
To insert a photo into a Telegram chat using an Android smartphone, you will need:
By ticking the desired images, the user will need to tap on the icon in the form of two squares. The squares should change color from white to blue - this means that the pictures will be sent in the album;
For devices running on iOS, you can send a photo via Telegram according to a similar principle:
For PC (Windows), the image sending algorithm is as follows:
Then click on the "Open" button, select "Send as a photo" to compress the image, or "Send as a file" to send the source;
When sending from a PC, the user is unable to organize images into albums.
Large media files sent in their original size are not automatically downloaded by the messenger, and downloading small and compressed images depends on the settings of the Telegram application. If the Media Autoload slider is set to on in the settings, compressed media files will be automatically downloaded to the cache (internal memory) of the device. nine0003
But, in order for the image to be seen in the gallery, the user will need to perform several actions in the Telegram application:
Open a chat, if an arrow is drawn on the image, you need to click on it and wait for it to load. Then you need to tap on three vertical dots near the image, and in the menu that opens, select an item such as "Save to Gallery";
Telegram stores sent pictures on the server - this means that you can log in to the device (both smartphone and PC) and see all the files that the user received or sent.
Exceptions are:
If the photos were saved by the user, they can be found in the gallery, downloads, or a folder that the user has manually selected.
How to delete a sent message in a telegram for yourself and your interlocutor
How to send a message to Telegram from a computer
Question asked
Changed 1 year 3 months ago
Viewed 3k times
I just started learning python and can't figure out how to send me a text with a picture in a telegram. Tried like this
@bot.message_handler(commands=["start"]) def welcome(message): global num_start num_start += 1 keyboard = types.ReplyKeyboardMarkup(resize_keyboard=True, row_width=2) keyboard.add(*[types.KeyboardButton(name) for name in ['💼 Button 1', '📊 Button 2', '🚀 Button 3', 'Button 4']]) bot.send_message(message.chat.id, open('static/welc.webp', 'rb'),\n '✌️ Hello, ' + ' ' + message.chat.first_name + ' ' + '!\n\n' '🏧 Bit+Coin is an instant exchange of Bitcoin to Qiwi, Sberbank,' ' Yandex.Money and Webmoney \n\n' '❕And free storage of your BTC \n\n', reply_markup=keyboard, parse_mode="Html")
Pasted this code into bot.send_message(message.chat.id,
open( 'static/welc.webp', 'rb'), nine0141But what doesn't happen, how to do it right to send a photo and text in one post.
Like this, for example: