Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from labi-le/rolling
Browse files Browse the repository at this point in the history
Rolling
  • Loading branch information
labi-le committed Mar 9, 2022
2 parents 7d08162 + 265009f commit dcabf57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Command/Example/Attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
use Astaroth\Enums\ConversationType;
use Astaroth\Enums\Events;

#[Conversation(ConversationType::ALL)]
#[Event(Events::MESSAGE_NEW)]
#[Conversation(ConversationType::ALL)]
class Attachments extends BaseCommands
{
#[Message("котика")]
public function cat(): void
{
$api = static fn() => $this->catApi();
$api = fn() => $this->catApi();

$twoCats = [
$api(),
Expand Down
4 changes: 2 additions & 2 deletions app/Command/Example/ClassForConcreteUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
* Этот класс будет доступен только для id418618
* @package app\Command
*/
#[Conversation(ConversationType::PERSONAL, 418618)]
#[Event(Events::MESSAGE_NEW)]
#[Conversation(ConversationType::PERSONAL, 418618)]
class ClassForConcreteUser extends BaseCommands
{
#[Message("привет")]
public function method(): void
{
$this->message("Ого! Привет давно не виделись!")->send();
$this->message("Ого! Привет labile aaaa не виделись!")->send();
}

#[Attachment(AttachmentEnum::PHOTO)]
Expand Down
2 changes: 1 addition & 1 deletion app/Command/Example/Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Astaroth\Enums\ConversationType;
use Astaroth\Enums\Events;

#[Conversation(ConversationType::ALL)]
#[Event(Events::MESSAGE_NEW)]
#[Conversation(ConversationType::ALL)]
class Example extends BaseCommands
{
#[Message("привет")]
Expand Down

0 comments on commit dcabf57

Please sign in to comment.