fix(client): added missing <any> for formatted strings
This commit is contained in:
parent
cd88a3a74a
commit
e1326a5cf1
5 changed files with 9 additions and 9 deletions
|
@ -19,7 +19,7 @@ export interface InputInlineMessageText {
|
||||||
/**
|
/**
|
||||||
* Text of the message
|
* Text of the message
|
||||||
*/
|
*/
|
||||||
text: string | FormattedString
|
text: string | FormattedString<any>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Text markup entities.
|
* Text markup entities.
|
||||||
|
@ -48,7 +48,7 @@ export interface InputInlineMessageMedia {
|
||||||
/**
|
/**
|
||||||
* Caption for the media
|
* Caption for the media
|
||||||
*/
|
*/
|
||||||
text?: string | FormattedString
|
text?: string | FormattedString<any>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Caption markup entities.
|
* Caption markup entities.
|
||||||
|
|
|
@ -151,7 +151,7 @@ export class Conversation {
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
async sendText(
|
async sendText(
|
||||||
text: string | FormattedString,
|
text: string | FormattedString<any>,
|
||||||
params?: Parameters<TelegramClient['sendText']>[2]
|
params?: Parameters<TelegramClient['sendText']>[2]
|
||||||
): ReturnType<TelegramClient['sendText']> {
|
): ReturnType<TelegramClient['sendText']> {
|
||||||
if (!this._started) {
|
if (!this._started) {
|
||||||
|
|
|
@ -576,7 +576,7 @@ export class Message {
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
answerText(
|
answerText(
|
||||||
text: string | FormattedString,
|
text: string | FormattedString<any>,
|
||||||
params?: Parameters<TelegramClient['sendText']>[2]
|
params?: Parameters<TelegramClient['sendText']>[2]
|
||||||
): ReturnType<TelegramClient['sendText']> {
|
): ReturnType<TelegramClient['sendText']> {
|
||||||
return this.client.sendText(this.chat.inputPeer, text, params)
|
return this.client.sendText(this.chat.inputPeer, text, params)
|
||||||
|
@ -621,7 +621,7 @@ export class Message {
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
replyText(
|
replyText(
|
||||||
text: string | FormattedString,
|
text: string | FormattedString<any>,
|
||||||
params?: Parameters<TelegramClient['sendText']>[2]
|
params?: Parameters<TelegramClient['sendText']>[2]
|
||||||
): ReturnType<TelegramClient['sendText']> {
|
): ReturnType<TelegramClient['sendText']> {
|
||||||
if (!params) params = {}
|
if (!params) params = {}
|
||||||
|
@ -676,7 +676,7 @@ export class Message {
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
commentText(
|
commentText(
|
||||||
text: string | FormattedString,
|
text: string | FormattedString<any>,
|
||||||
params?: Parameters<TelegramClient['sendText']>[2]
|
params?: Parameters<TelegramClient['sendText']>[2]
|
||||||
): ReturnType<TelegramClient['sendText']> {
|
): ReturnType<TelegramClient['sendText']> {
|
||||||
if (this.chat.type !== 'channel') {
|
if (this.chat.type !== 'channel') {
|
||||||
|
@ -809,7 +809,7 @@ export class Message {
|
||||||
* @link TelegramClient.editMessage
|
* @link TelegramClient.editMessage
|
||||||
*/
|
*/
|
||||||
editText(
|
editText(
|
||||||
text: string | FormattedString,
|
text: string | FormattedString<any>,
|
||||||
params?: Omit<Parameters<TelegramClient['editMessage']>[2], 'text'>
|
params?: Omit<Parameters<TelegramClient['editMessage']>[2], 'text'>
|
||||||
): Promise<Message> {
|
): Promise<Message> {
|
||||||
return this.edit({
|
return this.edit({
|
||||||
|
|
|
@ -633,7 +633,7 @@ export class Chat {
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
sendText(
|
sendText(
|
||||||
text: string | FormattedString,
|
text: string | FormattedString<any>,
|
||||||
params?: Parameters<TelegramClient['sendText']>[2]
|
params?: Parameters<TelegramClient['sendText']>[2]
|
||||||
): ReturnType<TelegramClient['sendText']> {
|
): ReturnType<TelegramClient['sendText']> {
|
||||||
return this.client.sendText(this.inputPeer, text, params)
|
return this.client.sendText(this.inputPeer, text, params)
|
||||||
|
|
|
@ -376,7 +376,7 @@ export class User {
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
sendText(
|
sendText(
|
||||||
text: string | FormattedString,
|
text: string | FormattedString<any>,
|
||||||
params?: Parameters<TelegramClient['sendText']>[2]
|
params?: Parameters<TelegramClient['sendText']>[2]
|
||||||
): ReturnType<TelegramClient['sendText']> {
|
): ReturnType<TelegramClient['sendText']> {
|
||||||
return this.client.sendText(this.inputPeer, text, params)
|
return this.client.sendText(this.inputPeer, text, params)
|
||||||
|
|
Loading…
Reference in a new issue