J
J
JackFakob2018-10-12 12:42:43
C++ / C#
JackFakob, 2018-10-12 12:42:43

How to make a price for a product in a telegram bot?

Hello, I am writing a telegram bot for my own purposes, there is a sendinvoice(...) command, I
enter everything I need and go to "System.Collections.Generic.IEnumerable Telegram.Bot.Types.Payments.LabeledPrice
" I understand that this is an array with prices or something like that ...
Please tell me how to create this array with prices on the seasharp (rummaged through the internet, found it for other languages, but it didn’t help because I don’t rummage their syntax)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Smi1ik, 2021-05-23
@Smi1ik

using Telegram.Bot.Types.Payments;

prices: new List<LabeledPrice>() { new LabeledPrice("red_rose", 10000) }

As one of the options

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question