for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: akeinhell
* Date: 29.06.16
* Time: 14:15
*/
namespace Telegram\Types;
use Carbon\Carbon;
use Telegram\Base\BaseType;
* Class Message
* @method int getUpdateId
* @method User getFrom
* @method Carbon getDate
* @method string getText
* @method User getForwardFrom
* @method Chat getForwardFromChat
* @method Carbon getForwardDate
* @method Carbon getEditDate
* @method Message getReplyToMessage
*
* @package Telegram\Types
class Message extends BaseType
{
protected $map = [
'from' => User::class,
'chat' => Chat::class,
'date' => [Carbon::class, 'createFromTimestamp'],
'forwardDate' => [Carbon::class, 'createFromTimestamp'],
];
public function __construct($attributes)
parent::__construct($attributes);
}
//
// /**
// * @var MessageEntity[]
// */
// protected $entities;
// * @var Audio
// protected $audio;
// * @var Document
// protected $document;
// * @var PhotoSize[]
// protected $photo;
// * @var Sticker
// protected $sticker;
// * @var Video
// protected $video;
// * @var Voice
// protected $voice;
// * @var string
// protected $caption;
// * @var Contact
// protected $contact;
// * @var Location
// protected $location;
// * @var Venue
// protected $venue;
// * @var User
// protected $newChatMember;
// protected $leftChatMember;
// protected $newChatTitle;
// protected $newChatPhoto;
// * @var boolean
// protected $deleteChatPhoto;
// protected $groupChatCreated;
// protected $superGroupChatCreated;
// protected $channelChatCreated;
// * @var int
// protected $migrateToChatId;
// protected $migrateFromChatId;
// * @var Message
// protected $pinnedMessage;