Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TelegramBot/Api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: stfalcon-studio/telegram-bot-api-php
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 4 commits
  • 5 files changed
  • 3 contributors

Commits on May 10, 2022

  1. MyChatMember

    EvMV committed May 10, 2022
    Copy the full SHA
    63bd894 View commit details

Commits on May 26, 2022

  1. Merge pull request #1 from EvMV/master

    MyChatMember
    EvMV authored May 26, 2022
    Copy the full SHA
    83be76b View commit details

Commits on Dec 24, 2022

  1. Fix eventCollection

    Yevhen Mazur committed Dec 24, 2022
    Copy the full SHA
    d43f4c5 View commit details
  2. Merge pull request #2 from stfalcon-studio/fix-events

    Fix eventCollection
    EvMV authored Dec 24, 2022
    Copy the full SHA
    7947293 View commit details
Showing with 556 additions and 1 deletion.
  1. +1 −1 src/Events/EventCollection.php
  2. +125 −0 src/Types/MyChatMember.php
  3. +325 −0 src/Types/NewChatMember.php
  4. +83 −0 src/Types/OldChatMember.php
  5. +22 −0 src/Types/Update.php
2 changes: 1 addition & 1 deletion src/Events/EventCollection.php
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ class EventCollection
*
* @var array
*/
protected $events;
protected $events = [];

/**
* Botan tracker
125 changes: 125 additions & 0 deletions src/Types/MyChatMember.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?php

namespace TelegramBot\Api\Types;

use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class MyChatMember extends BaseType implements TypeInterface
{
/**
* @var Chat
*/
protected $chat;

/**
* @var User
*/
protected $from;

/**
* @var string
*/
protected $date;

/**
* @var NewChatMember
*/
protected $newChatMember;

/**
* @var OldChatMember
*/
protected $oldChatMember;

/**
* @var array
*/
static protected $map = [
'chat' => Chat::class,
'from' => User::class,
'date' => true,
'new_chat_member' => NewChatMember::class,
'old_chat_member' => OldChatMember::class,
];

/**
* @return Chat
*/
public function getChat()
{
return $this->chat;
}

/**
* @param Chat $chat
*/
public function setChat($chat)
{
$this->chat = $chat;
}

/**
* @return User
*/
public function getFrom()
{
return $this->from;
}

/**
* @param User $from
*/
public function setFrom($from)
{
$this->from = $from;
}

/**
* @return string
*/
public function getDate()
{
return $this->date;
}

/**
* @param string $date
*/
public function setDate($date)
{
$this->date = $date;
}

/**
* @return NewChatMember
*/
public function getNewChatMember()
{
return $this->newChatMember;
}

/**
* @param NewChatMember $newChatMember
*/
public function setNewChatMember($newChatMember)
{
$this->newChatMember = $newChatMember;
}

/**
* @return OldChatMember
*/
public function getOldChatMember()
{
return $this->oldChatMember;
}

/**
* @param OldChatMember $oldChatMember
*/
public function setOldChatMember($oldChatMember)
{
$this->oldChatMember = $oldChatMember;
}
}
Loading