tg_cli: fix InputInvoice.

This commit is contained in:
levlam 2024-05-17 13:32:02 +03:00
parent 1f8a1e8585
commit dbf6ba045a

View File

@ -1019,8 +1019,8 @@ class CliClient final : public Actor {
};
void get_args(string &args, InputInvoice &arg) const {
if (args.size() > 1 && args[0] == '#') {
arg.invoice_name = args;
if (args.size() > 1 && (args[0] == '#' || args[0] == '$')) {
arg.invoice_name = args.substr(1);
} else {
string chat_id;
string message_id;