skip to Main Content

I send a message on telegram channel using this method:

telegramResult = requests.get('https://api.telegram.org/bot' + telegramApiKey + '/sendMessage', params={
    'chat_id': '@XXXXXX',
    'text': 'hello world' + getShortLink
})

The problem is that telegram view a preview of this short link. I don’t see this preview.

Please, can you help me?

Thanks!

2

Answers


  1. Chosen as BEST ANSWER

    I resolved my problem. Now I use method sendPhoto (teleport library) and when I add shortlink I don't see more the preview image.


  2. telegramResult = requests.get('https://api.telegram.org/bot' + telegramApiKey + '/sendMessage', params={
        'chat_id': '@XXXXXX',
        'text': 'hello world' + getShortLink
    })
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search