Passed
Push — api-7.0 ( 7410c3...14c77e )
by Armando
28:03 queued 15:34
created

ReplyParameters   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * Describes reply parameters for the message that is being sent.
16
 *
17
 * @link https://core.telegram.org/bots/api#replyparameters
18
 *
19
 * @method int             getMessageId()                Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified
20
 * @method int|string      getChatId()                   Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername)
21
 * @method bool            getAllowSendingWithoutReply() Optional. Pass True if the message should be sent even if the specified message to be replied to is not found; can be used only for replies in the same chat and forum topic.
22
 * @method string          getQuote()                    Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message.
23
 * @method string          getQuoteParseMode()           Optional. Mode for parsing entities in the quote. See formatting options for more details.
24
 * @method MessageEntity[] getQuoteEntities()            Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode.
25
 * @method int             getQuotePosition()            Optional. Position of the quote in the original message in UTF-16 code units
26
 */
27
class ReplyParameters extends Entity
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32
    protected function subEntities(): array
33
    {
34
        return [
35
            'quote_entities' => [MessageEntity::class],
36
        ];
37
    }
38
}
39