# Gmail + Telegram Bot

Send Gmail alerts to Telegram, or save attachments in Google Drive and send public file links to your chat. Choose what you want to share.

## Choose email alerts or attachment links

Keep up with selected Inbox messages, or collect incoming files in Drive. The attachment workflow also needs Google Drive and makes each uploaded file readable by anyone with its link.

- [Send Telegram alerts for matching Gmail emails](https://www.fasthook.io/templates/gmail-search-emails-to-telegram.md): Alert your chat when new Inbox mail matches your Gmail search. Send the subject, sender, received date and conversation link, keeping the body and files in Gmail.
- [Gmail attachments to Drive and Telegram](https://www.fasthook.io/templates/gmail-attachments-to-drive-telegram.md): Save each attachment in a sender/date folder in Google Drive, grant anyone-with-link reader access, then send only the file link to Telegram.

## Choose what leaves your inbox

1. **Select the Gmail source** Choose a workflow and connect the receiving mailbox. Review the email search or attachment filters so only the intended Inbox messages are processed.
2. **Review sharing and the chat** Connect Telegram and choose a Chat Id where the bot can post. For attachments, also connect Drive and review the public-file permission; a private chat does not make the file private.
3. **Check a new message** Activate and use a fictional matching email or attachment. After polling, check the chat output and, for files, the uploaded file's Drive access.

## Questions about Gmail and Telegram

### Which workflow should I use for an email notification?

Choose the matching-email alert when you need subject, sender, received date and a Gmail conversation link. Its prepared search is subject:"\[Alert\]" and can be changed. It does not forward the email body or attached files.

### Are Drive attachments restricted to my Telegram chat?

No. The attachment workflow grants anyone-with-link reader access to each uploaded file. Anyone who obtains the link can read it, including people outside the chat. Change the sharing design before activation if the files must remain private.

### Does the bot send the actual attachment?

The attachment workflow uploads the file to fasthook\_public\_attachments/\{sender folder\}/\{received date\} in Drive and sends its viewing URL as the Telegram message. Each eligible non-inline attachment has its own event, so one email can produce several files and messages.

### Can I reply in Telegram to answer the email?

No. Both workflows run from Gmail to Telegram. They do not send chat replies back to Gmail. Opening an email conversation link still requires access to the connected mailbox; the link grants no permission.

### What happens if Telegram fails after the file upload?

The uploaded file and its public permission can remain even if the later message fails. The workflow has no rollback or permission-revocation step. Check Drive and the run before rerunning, since another run can create another upload and message.

## Connected apps

- [Gmail Integrations](https://www.fasthook.io/apps/gmail/integrations.md)
- [Telegram Bot Integrations](https://www.fasthook.io/apps/telegram/integrations.md)

## Related app pairs

- [Gmail + Airtable](https://www.fasthook.io/apps/airtable/integrations/gmail.md)
- [Gmail + ClickUp](https://www.fasthook.io/apps/clickup/integrations/gmail.md)
- [Gmail + Dropbox](https://www.fasthook.io/apps/dropbox/integrations/gmail.md)
- [Gmail + Shopify](https://www.fasthook.io/apps/shopify/integrations/gmail.md)
- [Gmail + Slack](https://www.fasthook.io/apps/slack/integrations/gmail.md)
- [Gmail + GitHub](https://www.fasthook.io/apps/github/integrations/gmail.md)
- [Gmail + Google Sheets](https://www.fasthook.io/apps/gmail/integrations/google-sheets.md)
- [Gmail + Google Drive](https://www.fasthook.io/apps/gmail/integrations/google-drive.md)
