mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 20:54:42 +01:00
Increase release
This commit is contained in:
parent
17c186f5b5
commit
5255cf3460
@ -490,7 +490,7 @@ Want to add your own open-source project to this list? [Click here!](https://doc
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getDialogUnreadMarks.html" name="messages.getDialogUnreadMarks">Get dialogs manually marked as unread: messages.getDialogUnreadMarks</a>
|
||||
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#getdhconfig-array" name="getDhConfig">Get diffie-hellman configuration: getDhConfig</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getDiscussionMessage.html" name="messages.getDiscussionMessage">Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group: messages.getDiscussionMessage</a>
|
||||
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#getdownloadinfo-mixed-messagemedia-array-ext-string-name-string-mime-string-size-int-inputfilelocation-array" name="getDownloadInfo">Get download info of file: getDownloadInfo</a>
|
||||
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#getdownloadinfo-mixed-messagemedia-array-ext-string-name-string-mime-string-size-int-inputfilelocation-array-key_fingerprint-string-key-string-iv-string-thumb_size-string" name="getDownloadInfo">Get download info of file: getDownloadInfo</a>
|
||||
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#getpropicinfo-mixed-data-array" name="getPropicInfo">Get download info of the propic of a user: getPropicInfo</a>
|
||||
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#getdownloadlink-danog-madelineproto-eventhandler-message-danog-madelineproto-eventhandler-media-array-string-media-string-scripturl-null-int-size-null-string-name-null-string-mime-null-string" name="getDownloadLink">Get download link of media file: getDownloadLink</a>
|
||||
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#geteventhandler-class-string-t-null-class-null-t-danog-madelineproto-ipc-eventhandlerproxy-__php_incomplete_class-null" name="getEventHandler">Get event handler (or plugin instance): getEventHandler</a>
|
||||
|
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 5b18787da927b8fa114f0ae25525f57b8ba38e79
|
||||
Subproject commit 11ac3836aef519d0bcfe34ba7240d60f7b51945f
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
errorLevel="1"
|
||||
errorLevel="2"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
|
@ -51,7 +51,7 @@ final class API extends AbstractAPI
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE = '8.0.0-beta128';
|
||||
public const RELEASE = '8.0.0-beta129';
|
||||
/**
|
||||
* Secret chat was not found.
|
||||
*
|
||||
|
@ -322,7 +322,7 @@ abstract class Message extends AbstractMessage
|
||||
|
||||
/**
|
||||
* Get an HTML version of the message.
|
||||
*
|
||||
*
|
||||
* @psalm-suppress InaccessibleProperty
|
||||
*
|
||||
* @param bool $allowTelegramTags Whether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on...
|
||||
|
@ -34,8 +34,8 @@ trait ChatTrait
|
||||
string $message,
|
||||
?array $replyMarkup = null,
|
||||
ParseMode $parseMode = ParseMode::TEXT,
|
||||
?int $scheduleDate = null,
|
||||
bool $noWebpage = false
|
||||
bool $noWebpage = false,
|
||||
?int $scheduleDate = null
|
||||
): Message {
|
||||
$result = $this->getClient()->methodCallAsyncRead(
|
||||
'messages.editMessage',
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace danog\MadelineProto\EventHandler\Query;
|
||||
|
||||
use danog\MadelineProto\MTProto;
|
||||
use danog\MadelineProto\ParseMode;
|
||||
use danog\MadelineProto\Tools;
|
||||
|
||||
/** @internal */
|
||||
@ -10,23 +11,50 @@ trait InlineTrait
|
||||
{
|
||||
/** Inline message ID */
|
||||
public readonly string $inlineMessageId;
|
||||
protected readonly array $rawId;
|
||||
|
||||
/** @internal */
|
||||
public function __construct(MTProto $API, array $rawCallback)
|
||||
{
|
||||
parent::__construct($API, $rawCallback);
|
||||
$this->inlineMessageId = Tools::base64urlEncode(match ($rawCallback['_']) {
|
||||
$this->rawId = $rawCallback['msg_id'];
|
||||
$this->inlineMessageId = Tools::base64urlEncode(match ($rawCallback['msg_id']['_']) {
|
||||
'inputBotInlineMessageID' => (
|
||||
Tools::packSignedInt($rawCallback['dc_id']).
|
||||
Tools::packSignedLong($rawCallback['id']).
|
||||
Tools::packSignedLong($rawCallback['access_hash'])
|
||||
Tools::packSignedInt($rawCallback['msg_id']['dc_id']).
|
||||
Tools::packSignedLong($rawCallback['msg_id']['id']).
|
||||
Tools::packSignedLong($rawCallback['msg_id']['access_hash'])
|
||||
),
|
||||
'inputBotInlineMessageID64' => (
|
||||
Tools::packSignedInt($rawCallback['dc_id']).
|
||||
Tools::packSignedLong($rawCallback['owner_id']).
|
||||
Tools::packSignedInt($rawCallback['id']).
|
||||
Tools::packSignedLong($rawCallback['access_hash'])
|
||||
Tools::packSignedInt($rawCallback['msg_id']['dc_id']).
|
||||
Tools::packSignedLong($rawCallback['msg_id']['owner_id']).
|
||||
Tools::packSignedInt($rawCallback['msg_id']['id']).
|
||||
Tools::packSignedLong($rawCallback['msg_id']['access_hash'])
|
||||
),
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Edit message text.
|
||||
*
|
||||
* @param string $message New message
|
||||
* @param ParseMode $parseMode Whether to parse HTML or Markdown markup in the message
|
||||
* @param array|null $replyMarkup Reply markup for inline keyboards
|
||||
* @param bool $noWebpage Disable webpage preview
|
||||
*/
|
||||
public function editText(
|
||||
string $message,
|
||||
?array $replyMarkup = null,
|
||||
ParseMode $parseMode = ParseMode::TEXT,
|
||||
bool $noWebpage = false
|
||||
): void {
|
||||
$this->getClient()->methodCallAsyncRead(
|
||||
'messages.editInlineBotMessage',
|
||||
[
|
||||
'id' => $this->rawId,
|
||||
'message' => $message,
|
||||
'reply_markup' => $replyMarkup,
|
||||
'parse_mode' => $parseMode,
|
||||
'no_webpage' => $noWebpage,
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -775,7 +775,7 @@ abstract class InternalDoc
|
||||
* mime: string,
|
||||
* size: int,
|
||||
* InputFileLocation: array,
|
||||
* key_fingeprint?: string,
|
||||
* key_fingerprint?: string,
|
||||
* key?: string,
|
||||
* iv?: string,
|
||||
* thumb_size?: string
|
||||
|
Loading…
Reference in New Issue
Block a user