How to paste excel data to telegram as a picture - telegram-bot

there are many methods that send messages in excel to telegram bot.
I want to ask is there any way that sends ranges of specific excel to telegram bot as a picture.

Related

Telegrambots and several pictures in message

When sending several photos in telegram messenger, bot recieves each picture separately with same mediaGroupId. But how can I resend all the pictures somewhere if I don't know how much messages/pictures I'm going to receive?

Messages sent to my sample Telegram Bot cannot be seen by one with whom I share the bot link

I have created a sample Telegram Bot. http://t.me/zOS_Telegram_bot
I am being able to send text messages to the bot. For example, check the "Testing our new Telegram Bot!!!" messages that I am being able to send to the bot. enter image description here
However, when I share the bot link http://t.me/zOS_Telegram_bot with someone else, he/she cannot see the messages. What is it that I am missing here?

Is there any way to transfer Telegram file IDs between different bots?

Many different media types on Telegram have a file_id and file_unique_id property, such as Stickers, Audio, and Document.
The file_id property is unique to each Telegram bot, so one Telegram bot will not report the same file_id as another Telegram bot will, even if it's the same piece of media.
I want to have two Telegram bots communicate with each other, but they are currently unable to do so because the file_id property is meaningless when one bot tries to talk to the other.
The file_unique_id property is consistent between the bots, but it does not seem like you can do much of anything with that identifier.
Is there any way to pass a reference to a file stored on Telegram's servers from one bot to another, without having to re-upload the file on both bots?
Bot can't interact with each other. But there's a workaround,
we can use channels as a medium (with only BotAPI)
Steps,
Add two bots as admin in channel
Broadcast the messages from Bot A to channel
Now, the Bot B will get these as channel posts and your new fileid
for the same file which will be unique for Bot B (obviously)
You have officially transferred all fileid to Bot B
There aren't any official methods to share fileIds between bots. In fact, you can't even get 2 bots talk to each other, also you won't get bot updates in groups. So bot to bot communication is not possible at all at this moment.
But what you can do is to use Mtproto api and sign-in to telegram as a normal user (with phone number). And follow these steps using the logged in account:
Start both of your bots.
Forward messages you receive from bot 1 to bot 2.
This way you'll be able to access any files in bot 1 in bot 2.
You can use Telethon to write a script that does the job for you, listening to updates coming from bot 1 & forwarding them to bot 2.
Also using normal bot api you should forward received messages to your logged-in account.
The only way is to use a shared channel. Both bots have admin access. However, you may encounter error 429 while transferring the file.
The solution is to send the files to the channel at longer intervals.

Go to chat message with specific text with Telegram API

I'm looking for information about this, but I don't find anything.
Is possible send to user to a chat message that contains a specific text?
This request below can be made with multiple languages.
https://api.telegram.org/bot[BOT_API_KEY]/sendMessage?chat_id=[MY_CHANNEL_NAME]&text=[MY_MESSAGE_TEXT]
where:
BOT_API_KEY is the API Key when you created your bot
MY_CHANNEL_NAME is the handle of your channel (e.g. #my_channel_name)
MY_MESSAGE_TEXT is the message you want to send (URL-encoded)
https://medium.com/#xabaras/sending-a-message-to-a-telegram-channel-the-easy-way-eb0a0b32968

How do I create and send Vcard (vcf) from Google Sheets?

I would like to send a Vcard to my email in attachment everytime someone fills out a form on our website. That way I can quickly add this contact to my phone (ios).
Right now we are using Zapier to import all form contact details in a spreadsheet - name, surname, email etc.
Now, I'd like to trigger some service to put those details in a Vcard and send it to me by email.
Is it possible to create a vcf file inside Google Sheets? Then I could send the link to this file to my email. Or there's some other service that creates Vcards and has API I could connect to Google Sheets?
Any other suggestion is more than welcome!
I don't think there's any mention of doing such thing in Sheets API.
However, try to checkout CardDAV protocol, it's the closest thing I find to what you're trying to do.