for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Conversation\Concerns;
use FondBot\Drivers\PendingReply;
use FondBot\Templates\Attachment;
trait SendsMessages
{
/**
* Send reply to user.
*
* @param string|null $text
* @return PendingReply
*/
protected function reply(string $text = null): PendingReply
return (new PendingReply(
context()->getChannel(),
context()->getChat(),
context()->getUser()
))->text($text);
}
* Send attachment to user.
* @param Attachment $attachment
protected function sendAttachment(Attachment $attachment): PendingReply
))->attachment($attachment);