# How to fully connect the Telegram bot to GPT to handle all photo, text

**URL:** <https://community.make.com/t/how-to-fully-connect-the-telegram-bot-to-gpt-to-handle-all-photo-text/49485>\
**Category:** Questions\
**Tags:** telegram\
**Created:** [August 5, 2024, 6:30am UTC](https://community.make.com/t/how-to-fully-connect-the-telegram-bot-to-gpt-to-handle-all-photo-text/49485 "2024-08-05T06:30:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnapPrompt](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SnapPrompt](https://community.make.com/u/SnapPrompt)\
**Post date:** [August 5, 2024, 6:30am UTC](https://community.make.com/t/how-to-fully-connect-the-telegram-bot-to-gpt-to-handle-all-photo-text/49485/1 "2024-08-05T06:30:17Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/b/8b099f5d2b109ecf0d3b90a27e58112045c7501f.png)

---

<div class="post-metadata">

**Author:** ![Jamie\_Harris](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@Jamie\_Harris](https://community.make.com/u/Jamie_Harris)\
**Post date:** [August 5, 2024, 7:18am UTC](https://community.make.com/t/how-to-fully-connect-the-telegram-bot-to-gpt-to-handle-all-photo-text/49485/2 "2024-08-05T07:18:11Z")

</div>

Hi SnapPrompt,

The simple way to do this to to connect the start of the ChatGPT modules that are currently not in your chain to the end of your current chain. You will be able to see all of the values from previous telegram modules and you can then input these values into the ChatGPT moudles

So what you should have is one continous chain

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/4/94de5b42559645fd58e8440f2e7ea8c7bdac9775.jpeg)

So what you shuld end up with is something like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/c/6c06e1c7b257f6fd27b061d1199a9f54d7df2ab7.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [August 5, 2024, 7:29am UTC](https://community.make.com/t/how-to-fully-connect-the-telegram-bot-to-gpt-to-handle-all-photo-text/49485/3 "2024-08-05T07:29:00Z")

</div>

Welcome to the Make community!

You’ll need to implement a router and filters to handle different types of requests and attachments.

Here is an example:

 ![Screenshot_2024-08-05_150856](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/7/77662756cfbb2ac9fcffc4baafc907e0e5a3bc2e.png)

 ![Screenshot_2024-08-05_150843](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/5/856a6460158c912d40ebe1aa33c6193d70d1a4c0.png)

In this example, I am using the “Router Magic Formula” to perform a final single response based on any of/multiple routes taken. For more information, see link below:

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

### Getting Started

- [Help Centre](https://www.make.com/en/help) | [Tutorials](https://www.make.com/en/help/tutorials.html) – Make “Manual”
- [Make Academy](https://academy.make.com) – Basics 101: Learn Make and get certified

### Help Centre Basics

- [Mapping](https://www.make.com/en/help/mapping/mapping) – What is mapping? What can I map?
- [Mapping with arrays](https://www.make.com/en/help/mapping/mapping-arrays) – How to map items in an array
- [Aggregate an array for mapping complex fields](https://www.make.com/en/help/tools/flow-control#customizing-the-output)
- [Tokens for `parseDate`](https://www.make.com/en/help/functions/tokens-for-date-time-parsing) | [Tokens for `formatDate`](https://www.make.com/en/help/functions/tokens-for-date-time-formatting)
- [HTTP modules](https://www.make.com/en/help/tools/http) – Make a request, Get (download) a file
- [Webhooks](https://www.make.com/en/help/tools/webhooks) – Error Handling, Responding to webhooks

### Articles & Videos

- [Router Magic Formula](https://www.youtube.com/watch?v=4Q-5BsCtJu4) - YouTube
- [Error Handlers in Make](https://www.youtube.com/playlist?list=PLRE9E-rAD8U10mx2TRs54Nq1XJDdK9Kx4) - YouTube playlist
- [Getting started with OpenAI](https://community.make.com/t/getting-started-with-openai-gpt-3-and-make/7796) - How to setup and use OpenAI (ChatGPT) in Make
- [How to use Regex in Make](https://community.make.com/t/how-to-use-regex-in-make/202) - How to use pattern matching to extract the text you want

### Partner & Custom Apps

- [Make Partner Training Portal](https://partnertraining.make.com)
- [Custom Apps / App Builder](https://docs.integromat.com/apps)

Hope this helps!

— @samliew

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [November 3, 2024, 8:42am UTC](https://community.make.com/t/how-to-fully-connect-the-telegram-bot-to-gpt-to-handle-all-photo-text/49485/4 "2024-11-03T08:42:06Z")

</div>


