> For the complete documentation index, see [llms.txt](https://docs.mavibot.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mavibot.ai/doc/fr/faq/questions/payment.md).

# ...Connecter Telegram Pay

Comment créer un bouton de paiement épinglé comme indiqué ci-dessous :

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Cela se fait en seulement deux étapes :

**1re étape :**&#x20;

Avant toute chose, nous devons nous connecter à un système de paiement. Pour des instructions détaillées sur la manière de le faire, lisez ceci [article](https://docs.salebot.ai/integrations/payment-systems/telegram)

**2e étape :**&#x20;

Épinglez ce message. Vous trouverez une description du fonctionnement de l’épinglage des messages dans cet [article ](https://docs.salebot.ai/variables/api-in-calculator)

**Un exemple :**

1re étape :

prices = \[\["product", 200], \["tax", 40], \["packaging", 10]] result = tg\_send\_invoice('632593626:TEST:sandbox\_i38014109764', platform\_id, 'Phone U-200', 'The best of the best', 'UAH', prices, 'shorturl.at/cwyA3', 'phone\_best', 0, 0, 1, 1, 1)

2e étape :

À la suite de la réalisation de la première étape, vous obtiendrez une réponse à partir de laquelle vous devrez récupérer la valeur de message\_id à l’aide de la fonction get() : res=get(result,'result') m\_id=get(res,'message\_id')

Ensuite, nous épinglons le message : tg\_pin\_chat\_message(#{platform\_id}, #{m\_id}, 1)

!!!!!!!!!!!!!!!!!!!!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mavibot.ai/doc/fr/faq/questions/payment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
