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: string | FormattedString
|
||||
text: string | FormattedString<any>
|
||||
|
||||
/**
|
||||
* Text markup entities.
|
||||
|
@ -48,7 +48,7 @@ export interface InputInlineMessageMedia {
|
|||
/**
|
||||
* Caption for the media
|
||||
*/
|
||||
text?: string | FormattedString
|
||||
text?: string | FormattedString<any>
|
||||
|
||||
/**
|
||||
* Caption markup entities.
|
||||
|
|
|
@ -151,7 +151,7 @@ export class Conversation {
|
|||
* @param params
|
||||
*/
|
||||
async sendText(
|
||||
text: string | FormattedString,
|
||||
text: string | FormattedString<any>,
|
||||
params?: Parameters<TelegramClient['sendText']>[2]
|
||||
): ReturnType<TelegramClient['sendText']> {
|
||||
if (!this._started) {
|
||||
|
|
|
@ -576,7 +576,7 @@ export class Message {
|
|||
* @param params
|
||||
*/
|
||||
answerText(
|
||||
text: string | FormattedString,
|
||||
text: string | FormattedString<any>,
|
||||
params?: Parameters<TelegramClient['sendText']>[2]
|
||||
): ReturnType<TelegramClient['sendText']> {
|
||||
return this.client.sendText(this.chat.inputPeer, text, params)
|
||||
|
@ -621,7 +621,7 @@ export class Message {
|
|||
* @param params
|
||||
*/
|
||||
replyText(
|
||||
text: string | FormattedString,
|
||||
text: string | FormattedString<any>,
|
||||
params?: Parameters<TelegramClient['sendText']>[2]
|
||||
): ReturnType<TelegramClient['sendText']> {
|
||||
if (!params) params = {}
|
||||
|
@ -676,7 +676,7 @@ export class Message {
|
|||
* @param params
|
||||
*/
|
||||
commentText(
|
||||
text: string | FormattedString,
|
||||
text: string | FormattedString<any>,
|
||||
params?: Parameters<TelegramClient['sendText']>[2]
|
||||
): ReturnType<TelegramClient['sendText']> {
|
||||
if (this.chat.type !== 'channel') {
|
||||
|
@ -809,7 +809,7 @@ export class Message {
|
|||
* @link TelegramClient.editMessage
|
||||
*/
|
||||
editText(
|
||||
text: string | FormattedString,
|
||||
text: string | FormattedString<any>,
|
||||
params?: Omit<Parameters<TelegramClient['editMessage']>[2], 'text'>
|
||||
): Promise<Message> {
|
||||
return this.edit({
|
||||
|
|
|
@ -633,7 +633,7 @@ export class Chat {
|
|||
* @param params
|
||||
*/
|
||||
sendText(
|
||||
text: string | FormattedString,
|
||||
text: string | FormattedString<any>,
|
||||
params?: Parameters<TelegramClient['sendText']>[2]
|
||||
): ReturnType<TelegramClient['sendText']> {
|
||||
return this.client.sendText(this.inputPeer, text, params)
|
||||
|
|
|
@ -376,7 +376,7 @@ export class User {
|
|||
* @param params
|
||||
*/
|
||||
sendText(
|
||||
text: string | FormattedString,
|
||||
text: string | FormattedString<any>,
|
||||
params?: Parameters<TelegramClient['sendText']>[2]
|
||||
): ReturnType<TelegramClient['sendText']> {
|
||||
return this.client.sendText(this.inputPeer, text, params)
|
||||
|
|
Loading…
Reference in a new issue