# ...Conectar Telegram-pay

Cómo crear un botón de pago fijado como se muestra a continuación:

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

Se hace en solo dos pasos:

**1.er paso:**&#x20;

Antes que nada, necesitamos conectarnos a un sistema de pago. Para obtener instrucciones detalladas sobre cómo hacerlo, lee este [artículo](https://docs.salebot.ai/integrations/payment-systems/telegram)

**2.º paso:**&#x20;

Fija este mensaje. Una descripción sobre la funcionalidad de fijar mensajes la encontrarás en este [artículo ](https://docs.salebot.ai/variables/api-in-calculator)

**Un ejemplo:**

1.er paso:

prices = \[\["producto", 200], \["impuesto", 40], \["embalaje", 10]] result = tg\_send\_invoice('632593626:TEST:sandbox\_i38014109764', platform\_id, 'Phone U-200', 'Lo mejor de lo mejor', 'UAH', prices, 'shorturl.at/cwyA3', 'phone\_best', 0, 0, 1, 1, 1)

2.º paso:

Como resultado de completar el primer paso, obtendrás una respuesta de la que tendrás que obtener el valor de message\_id con la ayuda de la función get(): res=get(result,'result') m\_id=get(res,'message\_id')

Luego fijamos el mensaje: tg\_pin\_chat\_message(#{platform\_id}, #{m\_id}, 1)

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


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
