Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EditMessageText #50

Closed
Shoteexke opened this issue Dec 7, 2021 · 2 comments
Closed

EditMessageText #50

Shoteexke opened this issue Dec 7, 2021 · 2 comments

Comments

@Shoteexke
Copy link

someone help me, I want to send a message and edit it (sendmessage and editMessageText) can you send an example?

@awohsen
Copy link
Contributor

awohsen commented Dec 7, 2021

Here you go:

$ctx->sendMessage("How to edit sent message?")->then(
    function (\Zanzara\Telegram\Type\Message $msg) use ($ctx) {
        $ctx->editMessageText("Just like this...", ['message_id' => $msg->getMessageId()]);
    }
);

@Shoteexke
Copy link
Author

Thank you

@cheeghi cheeghi closed this as completed Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants