Skip to content

[BUG] - sendDraftMessage method not working #846

@ahjdev

Description

@ahjdev

I tried a lot but it's not working.

$chains = [
    'Hi',
    'I\'m',
    'a strean test',
    'This will show at the end'
];
$text = '';
$results = [];
foreach ($array as $st) {
    $text .= ' ' . $st;
    $text = trim($text);
    sleep(2);
    $results[] = $api->sendMessageDraft([
        'text'     => $text,
        'draft_id' => 99,
        'chat_id'  => $chat, // my pv id
    ]);
}
var_dump($results);

Results:

array(3) {
  [0]=>
  bool(false)
  [1]=>
  bool(false)
  [2]=>
  bool(false)
  [3]=>
  bool(false)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions