Reputation: 63
I'm trying to write a telegram bot, which send wall posts from VK group to the telegram channel. I use pyTelegramBotAPI.
post = u'{!s}'.format(item['text'])
bot.send_message(CHANNEL_NAME, post)
PHOTO_URL = str(item['attachments']['photo']['photo_604'])
img_file = urllib2.urlopen(PHOTO_URL)
im = StringIO(img_file.read())
bot.send_photo(CHANNEL_NAME, im)
Is it possible to send text and photo in one message? Maybe you can advise me another library for telegram bot or some another magic.
Upvotes: 0
Views: 4756