Comparing version 1.1.8-rc.4 to 1.1.8
{ | ||
"name": "puregram", | ||
"version": "1.1.8-rc.4", | ||
"version": "1.1.8", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -54,2 +54,3 @@ # puregram | ||
[VK chat](https://vk.me/join/AJQ1d7n35xXnfBxIB21zACP3) | ||
[Telegram chat](https://t.me/puregram_chat) |
import Params from '../typings/params'; | ||
import Interfaces from '../typings/interfaces'; | ||
import Responses from '../typings/responses'; | ||
import Telegram from './telegram'; | ||
// STRUCTURES | ||
import User from './structures/user'; | ||
type MessageOrTrue = object | true; | ||
type MessageOrTrue = Interfaces.IMessage | true; | ||
declare class API { | ||
@@ -21,3 +17,3 @@ constructor(telegram: Telegram); | ||
*/ | ||
getMe(): Promise<User>; | ||
getMe(): Promise<object>; | ||
@@ -29,3 +25,3 @@ /** | ||
*/ | ||
getUpdates(params?: Params.IGetUpdatesParams): Promise<Array<Interfaces.IUpdate>>; | ||
getUpdates(params?: Params.IGetUpdatesParams): Promise<object>; | ||
@@ -37,3 +33,3 @@ /** | ||
*/ | ||
sendMessage(params?: Params.ISendMessageParams): Promise<Interfaces.IMessage>; | ||
sendMessage(params?: Params.ISendMessageParams): Promise<object>; | ||
@@ -45,3 +41,3 @@ /** | ||
*/ | ||
forwardMessage(params?: Params.IForwardMessageParams): Promise<Interfaces.IMessage>; | ||
forwardMessage(params?: Params.IForwardMessageParams): Promise<object>; | ||
@@ -53,3 +49,3 @@ /** | ||
*/ | ||
sendPhoto(params?: Params.ISendPhotoParams): Promise<Interfaces.IMessage>; | ||
sendPhoto(params?: Params.ISendPhotoParams): Promise<object>; | ||
@@ -68,3 +64,3 @@ /** | ||
*/ | ||
sendAudio(params?: Params.ISendAudioParams): Promise<Interfaces.IMessage>; | ||
sendAudio(params?: Params.ISendAudioParams): Promise<object>; | ||
@@ -79,3 +75,3 @@ /** | ||
*/ | ||
sendDocument(params?: Params.ISendDocumentParams): Promise<Interfaces.IMessage>; | ||
sendDocument(params?: Params.ISendDocumentParams): Promise<object>; | ||
@@ -92,3 +88,3 @@ /** | ||
*/ | ||
sendVideo(params?: Params.ISendVideoParams): Promise<Interfaces.IMessage>; | ||
sendVideo(params?: Params.ISendVideoParams): Promise<object>; | ||
@@ -104,3 +100,3 @@ /** | ||
*/ | ||
sendAnimation(params?: Params.ISendAnimationParams): Promise<Interfaces.IMessage>; | ||
sendAnimation(params?: Params.ISendAnimationParams): Promise<object>; | ||
@@ -118,3 +114,3 @@ /** | ||
*/ | ||
sendVoice(params?: Params.ISendVoiceParams): Promise<Interfaces.IMessage>; | ||
sendVoice(params?: Params.ISendVoiceParams): Promise<object>; | ||
@@ -128,3 +124,3 @@ /** | ||
*/ | ||
sendVideoNote(params?: Params.ISendVideoNoteParams): Promise<Interfaces.IMessage>; | ||
sendVideoNote(params?: Params.ISendVideoNoteParams): Promise<object>; | ||
@@ -136,3 +132,3 @@ /** | ||
*/ | ||
sendMediaGroup(params?: Params.ISendMediaGroupParams): Promise<Array<Interfaces.IMessage>>; | ||
sendMediaGroup(params?: Params.ISendMediaGroupParams): Promise<Array<object>>; | ||
@@ -144,3 +140,3 @@ /** | ||
*/ | ||
sendLocation(params?: Params.ISendLocationParams): Promise<Interfaces.IMessage>; | ||
sendLocation(params?: Params.ISendLocationParams): Promise<object>; | ||
@@ -171,3 +167,3 @@ /** | ||
*/ | ||
sendVenue(params?: Params.ISendVenueParams): Promise<Interfaces.IMessage>; | ||
sendVenue(params?: Params.ISendVenueParams): Promise<object>; | ||
@@ -179,3 +175,3 @@ /** | ||
*/ | ||
sendContact(params?: Params.ISendContactParams): Promise<Interfaces.IMessage>; | ||
sendContact(params?: Params.ISendContactParams): Promise<object>; | ||
@@ -187,3 +183,3 @@ /** | ||
*/ | ||
sendPoll(params?: Params.ISendPollParams): Promise<Interfaces.IMessage>; | ||
sendPoll(params?: Params.ISendPollParams): Promise<object>; | ||
@@ -195,3 +191,3 @@ /** | ||
*/ | ||
sendDice(params?: Params.ISendDiceParams): Promise<Interfaces.IMessage>; | ||
sendDice(params?: Params.ISendDiceParams): Promise<object>; | ||
@@ -214,3 +210,3 @@ /** | ||
*/ | ||
getUserProfilePhotos(params?: Params.IGetUserProfilePhotosParams): Promise<Interfaces.IUserProfilePhotos>; | ||
getUserProfilePhotos(params?: Params.IGetUserProfilePhotosParams): Promise<object>; | ||
@@ -224,3 +220,3 @@ /** | ||
*/ | ||
getFile(id: string): Promise<Interfaces.IFile>; | ||
getFile(id: string): Promise<object>; | ||
@@ -369,3 +365,3 @@ /** | ||
*/ | ||
getChat(chat: number | string): Promise<Interfaces.IChat>; | ||
getChat(chat: number | string): Promise<object>; | ||
@@ -381,3 +377,3 @@ /** | ||
*/ | ||
getChatAdministrators(chat: number | string): Promise<Array<Interfaces.IChatMember>>; | ||
getChatAdministrators(chat: number | string): Promise<object>; | ||
@@ -396,3 +392,3 @@ /** | ||
*/ | ||
getChatMember(params?: Params.IGetChatMemberParams): Promise<Interfaces.IChatMember>; | ||
getChatMember(params?: Params.IGetChatMemberParams): Promise<object>; | ||
@@ -443,3 +439,3 @@ /** | ||
*/ | ||
getMyCommands(): Promise<Array<Interfaces.IBotCommand>>; | ||
getMyCommands(): Promise<object>; | ||
@@ -493,3 +489,3 @@ /** | ||
*/ | ||
stopPoll(params?: Params.IStopPollParams): Promise<Interfaces.IPoll>; | ||
stopPoll(params?: Params.IStopPollParams): Promise<object>; | ||
@@ -514,3 +510,3 @@ /** | ||
*/ | ||
sendSticker(params?: Parms.ISendStickerParams): Promise<Interfaces.IMessage>; | ||
sendSticker(params?: Parms.ISendStickerParams): Promise<object>; | ||
@@ -522,3 +518,3 @@ /** | ||
*/ | ||
getStickerSet(name: string): Promise<Interfaces.IStickerSet>; | ||
getStickerSet(name: string): Promise<object>; | ||
@@ -532,3 +528,3 @@ /** | ||
*/ | ||
uploadStickerFile(params?: Params.IUploadStickerFileParams): Promise<Interfaces.IFile>; | ||
uploadStickerFile(params?: Params.IUploadStickerFileParams): Promise<object>; | ||
@@ -591,3 +587,3 @@ /** | ||
*/ | ||
sendInvoice(params?: Params.ISendInvoiceParams): Promise<Interfaces.IMessage>; | ||
sendInvoice(params?: Params.ISendInvoiceParams): Promise<object>; | ||
@@ -644,3 +640,3 @@ /** | ||
*/ | ||
sendGame(params?: Params.ISendGameParams): Promise<Interfaces.IMessage>; | ||
sendGame(params?: Params.ISendGameParams): Promise<object>; | ||
@@ -666,3 +662,3 @@ /** | ||
*/ | ||
getGameHighScores(params?: Params.IGetGameHighScoresParams): Promise<Array<Interfaces.IGameHighScore>>; | ||
getGameHighScores(params?: Params.IGetGameHighScoresParams): Promise<object>; | ||
@@ -703,5 +699,5 @@ /** | ||
*/ | ||
getWebhookInfo(): Promise<Interfaces.IWebhookInfo>; | ||
getWebhookInfo(): Promise<object>; | ||
} | ||
export = API; |
@@ -7,2 +7,3 @@ let fetch = require('node-fetch'); | ||
let APIError = require('./attachments/apierror'); | ||
let User = require('./structures/user'); | ||
@@ -148,3 +149,3 @@ class API { | ||
} | ||
sendVideo(params = {}) { | ||
@@ -151,0 +152,0 @@ let { video } = params; |
@@ -39,3 +39,3 @@ function replaceSymbols(text) { | ||
return `<a href="${link}">${text}</a>`; | ||
return `<a href='${link}'>${text}</a>`; | ||
} | ||
@@ -46,3 +46,3 @@ | ||
return `<a href="tg://user?id=${id}">${text}</a>`; | ||
return `<a href='tg://user?id=${id}'>${text}</a>`; | ||
} | ||
@@ -57,3 +57,3 @@ | ||
static pre(code) { | ||
text = replaceSymbols(text); | ||
code = replaceSymbols(code); | ||
@@ -60,0 +60,0 @@ return `<pre>${code}</pre>`; |
import Types from '../../typings/types'; | ||
interface IKeyboardOptions { | ||
export interface IKeyboardOptions { | ||
/** | ||
@@ -34,3 +34,3 @@ * Text of the button. | ||
interface IKeyboardButtonPollType { | ||
export interface IKeyboardButtonPollType { | ||
/** | ||
@@ -37,0 +37,0 @@ * If `quiz` is passed, the user will be allowed to |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -10,2 +10,5 @@ let { inspect } = require('util'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
class CallbackQuery extends Context { | ||
@@ -305,9 +308,2 @@ constructor(telegram, update) { | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.message.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -314,0 +310,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,3 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
@@ -4,0 +4,0 @@ import MessageContext from './message'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -312,9 +313,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -321,0 +315,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,3 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
@@ -29,5 +29,5 @@ import MessageContext from './message'; | ||
public forwardFrom?: User; | ||
public forwardFrom?: Interfaces.IUser; | ||
public forwardFromChat?: User; | ||
public forwardFromChat?: Interfaces.IUser; | ||
@@ -54,77 +54,77 @@ public forwardFromMessageId?: number; | ||
public entities?: Array<MessageEntity>; | ||
public entities?: Array<Interfaces.IMessage>; | ||
public hasEntities: boolean; | ||
public captionEntities?: Array<MessageEntity>; | ||
public captionEntities?: Array<Interfaces.IMessage>; | ||
public audio?: Audio; | ||
public audio?: Interfaces.IAudio; | ||
public document?: Document; | ||
public document?: Interfaces.IDocument; | ||
public animation?: Animation; | ||
public animation?: Interfaces.IAnimation; | ||
public game?: Game; | ||
public game?: Interfaces.IGame; | ||
public photo?: Interfaces.PhotoAttachment; | ||
public sticker?: Sticker; | ||
public sticker?: Interfaces.ISticker; | ||
public video?: Video; | ||
public video?: Interfaces.IVideo; | ||
public voice?: Voice; | ||
public voice?: Interfaces.IVoice; | ||
public videoNote?: VideoNote; | ||
public videoNote?: Interfaces.IVideoNote; | ||
public caption?: string; | ||
public contact?: Contact; | ||
public contact?: Interfaces.IContact; | ||
public location?: Location; | ||
public location?: Interfaces.ILocation; | ||
public venue?: Venue; | ||
public venue?: Interfaces.IVenue; | ||
public poll?: Poll; | ||
public poll?: Interfaces.IPoll; | ||
public dice?: Dice; | ||
public dice?: Interfaces.IDice; | ||
public attachments: Array<Attachment>; | ||
public attachments: Array<Types.Attachments>; | ||
public hasAttachments(type?: Types.AttachmentTypes): boolean; | ||
public getAttachments(type: 'audio'): Array<Audio>; | ||
public getAttachments(type: 'audio'): Array<Interfaces.IAudio>; | ||
public getAttachments(type: 'document'): Array<Document>; | ||
public getAttachments(type: 'document'): Array<Interfaces.IDocument>; | ||
public getAttachments(type: 'animation'): Array<Animation>; | ||
public getAttachments(type: 'animation'): Array<Interfaces.IAnimation>; | ||
public getAttachments(type: 'game'): Array<Game>; | ||
public getAttachments(type: 'game'): Array<Interfaces.IGame>; | ||
public getAttachments(type: 'photo'): Array<Array<PhotoSize>>; | ||
public getAttachments(type: 'photo'): Array<Array<Interfaces.IPhotoSize>>; | ||
public getAttachments(type: 'sticker'): Array<Sticker>; | ||
public getAttachments(type: 'sticker'): Array<Interfaces.ISticker>; | ||
public getAttachments(type: 'video'): Array<Video>; | ||
public getAttachments(type: 'video'): Array<Interfaces.IVideo>; | ||
public getAttachments(type: 'voice'): Array<Voice>; | ||
public getAttachments(type: 'voice'): Array<Interfaces.IVoice>; | ||
public getAttachments(type: 'video_note' | 'videoNote'): Array<VideoNote>; | ||
public getAttachments(type: 'video_note' | 'videoNote'): Array<Interfaces.IVideoNote>; | ||
public getAttachments(type: 'contact'): Array<Contact>; | ||
public getAttachments(type: 'contact'): Array<Interfaces.IContact>; | ||
public getAttachments(type: 'location'): Array<Location>; | ||
public getAttachments(type: 'location'): Array<Interfaces.ILocation>; | ||
public getAttachments(type: 'venue'): Array<Venue>; | ||
public getAttachments(type: 'venue'): Array<Interfaces.IVenue>; | ||
public getAttachments(type: 'poll'): Array<Poll>; | ||
public getAttachments(type: 'poll'): Array<Interfaces.IPoll>; | ||
public getAttachments(type?: Types.AttachmentTypes): boolean; | ||
public newChatMembers?: Array<User>; | ||
public newChatMembers?: Array<Interfaces.IUser>; | ||
public leftChatMember?: User; | ||
public leftChatMember?: Interfaces.IUser; | ||
public newChatTitle?: string; | ||
public newChatPhoto?: Array<PhotoSize>; | ||
public newChatPhoto?: Array<Interfaces.IPhotoSize>; | ||
@@ -145,11 +145,11 @@ public deleteChatPhoto?: true; | ||
public invoice?: Invoice; | ||
public invoice?: Interfaces.IInvoice; | ||
public successfulPayment?: SuccessfulPayment; | ||
public successfulPayment?: Interfaces.ISuccessfulPayment; | ||
public connectedWebsite?: string; | ||
public passportData?: PassportData; | ||
public passportData?: Interfaces.IPassportData; | ||
public replyMarkup?: InlineKeyboardMarkup; | ||
public replyMarkup?: Interfaces.IInlineKeyboardMarkup; | ||
@@ -156,0 +156,0 @@ public isEvent: boolean; |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let MessageContext = require('./message'); | ||
let ReplyMessageContext = require('./reply-message'); | ||
@@ -541,3 +542,3 @@ | ||
return response !== true | ||
? new EditedMessageContext(this.telegram, response) | ||
? new MessageContext(this.telegram, response) | ||
: true; | ||
@@ -609,9 +610,2 @@ } | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -618,0 +612,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let MessageContext = require('./message'); | ||
let User = require('../structures/user'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -278,9 +281,2 @@ let { filterPayload } = require('../utils'); | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -287,0 +283,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,2 +0,2 @@ | ||
import { ITelegramParams, AllowArray } from "../../typings/params"; | ||
import { ITelegramParams, AllowArray } from '../../typings/params'; | ||
@@ -3,0 +3,0 @@ declare class Context { |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -310,9 +311,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -319,0 +313,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,6 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import ReplyMessageContext from './reply-message'; | ||
import MessageContext from './message'; | ||
@@ -23,5 +26,5 @@ import Context from './context'; | ||
public forwardFrom?: User; | ||
public forwardFrom?: Interfaces.IUser; | ||
public forwardFromChat?: User; | ||
public forwardFromChat?: Interfaces.IUser; | ||
@@ -48,77 +51,77 @@ public forwardFromMessageId?: number; | ||
public entities?: Array<MessageEntity>; | ||
public entities?: Array<Interfaces.IMessageEntity>; | ||
public hasEntities: boolean; | ||
public captionEntities?: Array<MessageEntity>; | ||
public captionEntities?: Array<Interfaces.IMessageEntity>; | ||
public audio?: Audio; | ||
public audio?: Interfaces.IAudio; | ||
public document?: Document; | ||
public document?: Interfaces.IDocument; | ||
public animation?: Animation; | ||
public animation?: Interfaces.IAnimation; | ||
public game?: Game; | ||
public game?: Interfaces.IGame; | ||
public photo?: Interfaces.PhotoAttachment; | ||
public sticker?: Sticker; | ||
public sticker?: Interfaces.ISticker; | ||
public video?: Video; | ||
public video?: Interfaces.IVideo; | ||
public voice?: Voice; | ||
public voice?: Interfaces.IVoice; | ||
public videoNote?: VideoNote; | ||
public videoNote?: Interfaces.IVideoNote; | ||
public caption?: string; | ||
public contact?: Contact; | ||
public contact?: Interfaces.IContact; | ||
public location?: Location; | ||
public location?: Interfaces.ILocation; | ||
public venue?: Venue; | ||
public venue?: Interfaces.IVenue; | ||
public poll?: Poll; | ||
public poll?: Interfaces.IPoll; | ||
public dice?: Dice; | ||
public dice?: Interfaces.IDice; | ||
public attachments: Array<Attachment>; | ||
public attachments: Array<Types.Attachments>; | ||
public hasAttachments(type?: Types.AttachmentTypes): boolean; | ||
public getAttachments(type: 'audio'): Array<Audio>; | ||
public getAttachments(type: 'audio'): Array<Interfaces.IAudio>; | ||
public getAttachments(type: 'document'): Array<Document>; | ||
public getAttachments(type: 'document'): Array<Interfaces.IDocument>; | ||
public getAttachments(type: 'animation'): Array<Animation>; | ||
public getAttachments(type: 'animation'): Array<Interfaces.IAnimation>; | ||
public getAttachments(type: 'game'): Array<Game>; | ||
public getAttachments(type: 'game'): Array<Interfaces.IGame>; | ||
public getAttachments(type: 'photo'): Array<Array<PhotoSize>>; | ||
public getAttachments(type: 'photo'): Array<Array<Interfaces.IPhotoSize>>; | ||
public getAttachments(type: 'sticker'): Array<Sticker>; | ||
public getAttachments(type: 'sticker'): Array<Interfaces.ISticker>; | ||
public getAttachments(type: 'video'): Array<Video>; | ||
public getAttachments(type: 'video'): Array<Interfaces.IVideo>; | ||
public getAttachments(type: 'voice'): Array<Voice>; | ||
public getAttachments(type: 'voice'): Array<Interfaces.IVoice>; | ||
public getAttachments(type: 'video_note' | 'videoNote'): Array<VideoNote>; | ||
public getAttachments(type: 'video_note' | 'videoNote'): Array<Interfaces.IVideoNote>; | ||
public getAttachments(type: 'contact'): Array<Contact>; | ||
public getAttachments(type: 'contact'): Array<Interfaces.IContact>; | ||
public getAttachments(type: 'location'): Array<Location>; | ||
public getAttachments(type: 'location'): Array<Interfaces.ILocation>; | ||
public getAttachments(type: 'venue'): Array<Venue>; | ||
public getAttachments(type: 'venue'): Array<Interfaces.IVenue>; | ||
public getAttachments(type: 'poll'): Array<Poll>; | ||
public getAttachments(type: 'poll'): Array<Interfaces.IPoll>; | ||
public getAttachments(type?: Types.AttachmentTypes): boolean; | ||
public newChatMembers?: Array<User>; | ||
public newChatMembers?: Array<Interfaces.IUser>; | ||
public leftChatMember?: User; | ||
public leftChatMember?: Interfaces.IUser; | ||
public newChatTitle?: string; | ||
public newChatPhoto?: Array<PhotoSize>; | ||
public newChatPhoto?: Array<Interfaces.IPhotoSize>; | ||
@@ -139,11 +142,11 @@ public deleteChatPhoto?: true; | ||
public invoice?: Invoice; | ||
public invoice?: Interfaces.IInvoice; | ||
public successfulPayment?: SuccessfulPayment; | ||
public successfulPayment?: Interfaces.ISuccessfulPayment; | ||
public connectedWebsite?: string; | ||
public passportData?: PassportData; | ||
public passportData?: Interfaces.IPassportData; | ||
public replyMarkup?: InlineKeyboardMarkup; | ||
public replyMarkup?: Interfaces.IInlineKeyboardMarkup; | ||
@@ -150,0 +153,0 @@ public isEvent: boolean; |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let MessageContext = require('./message'); | ||
let ReplyMessageContext = require('./reply-message'); | ||
@@ -541,3 +542,3 @@ | ||
return response !== true | ||
? new EditedMessageContext(this.telegram, response) | ||
? new MessageContext(this.telegram, response) | ||
: true; | ||
@@ -609,9 +610,2 @@ } | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -618,0 +612,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,6 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import ReplyMessageContext from './reply-message'; | ||
import MessageContext from './message'; | ||
@@ -23,5 +26,5 @@ import Context from './context'; | ||
public forwardFrom?: User; | ||
public forwardFrom?: Interfaces.IUser; | ||
public forwardFromChat?: User; | ||
public forwardFromChat?: Interfaces.IUser; | ||
@@ -48,77 +51,77 @@ public forwardFromMessageId?: number; | ||
public entities?: Array<MessageEntity>; | ||
public entities?: Array<Interfaces.IMessageEntity>; | ||
public hasEntities: boolean; | ||
public captionEntities?: Array<MessageEntity>; | ||
public captionEntities?: Array<Interfaces.IMessageEntity>; | ||
public audio?: Audio; | ||
public audio?: Interfaces.IAudio; | ||
public document?: Document; | ||
public document?: Interfaces.IDocument; | ||
public animation?: Animation; | ||
public animation?: Interfaces.IAnimation; | ||
public game?: Game; | ||
public game?: Interfaces.IGame; | ||
public photo?: Interfaces.PhotoAttachment; | ||
public sticker?: Sticker; | ||
public sticker?: Interfaces.ISticker; | ||
public video?: Video; | ||
public video?: Interfaces.IVideo; | ||
public voice?: Voice; | ||
public voice?: Interfaces.IVoice; | ||
public videoNote?: VideoNote; | ||
public videoNote?: Interfaces.IVideoNote; | ||
public caption?: string; | ||
public contact?: Contact; | ||
public contact?: Interfaces.IContact; | ||
public location?: Location; | ||
public location?: Interfaces.ILocation; | ||
public venue?: Venue; | ||
public venue?: Interfaces.IVenue; | ||
public poll?: Poll; | ||
public poll?: Interfaces.IPoll; | ||
public dice?: Dice; | ||
public dice?: Interfaces.IDice; | ||
public attachments: Array<Attachment>; | ||
public attachments: Array<Types.Attachments>; | ||
public hasAttachments(type?: Types.AttachmentTypes): boolean; | ||
public getAttachments(type: 'audio'): Array<Audio>; | ||
public getAttachments(type: 'audio'): Array<Interfaces.IAudio>; | ||
public getAttachments(type: 'document'): Array<Document>; | ||
public getAttachments(type: 'document'): Array<Interfaces.IDocument>; | ||
public getAttachments(type: 'animation'): Array<Animation>; | ||
public getAttachments(type: 'animation'): Array<Interfaces.IAnimation>; | ||
public getAttachments(type: 'game'): Array<Game>; | ||
public getAttachments(type: 'game'): Array<Interfaces.IGame>; | ||
public getAttachments(type: 'photo'): Array<Array<PhotoSize>>; | ||
public getAttachments(type: 'photo'): Array<Array<Interfaces.IPhotoSize>>; | ||
public getAttachments(type: 'sticker'): Array<Sticker>; | ||
public getAttachments(type: 'sticker'): Array<Interfaces.ISticker>; | ||
public getAttachments(type: 'video'): Array<Video>; | ||
public getAttachments(type: 'video'): Array<Interfaces.IVideo>; | ||
public getAttachments(type: 'voice'): Array<Voice>; | ||
public getAttachments(type: 'voice'): Array<Interfaces.IVoice>; | ||
public getAttachments(type: 'video_note' | 'videoNote'): Array<VideoNote>; | ||
public getAttachments(type: 'video_note' | 'videoNote'): Array<Interfaces.IVideoNote>; | ||
public getAttachments(type: 'contact'): Array<Contact>; | ||
public getAttachments(type: 'contact'): Array<Interfaces.IContact>; | ||
public getAttachments(type: 'location'): Array<Location>; | ||
public getAttachments(type: 'location'): Array<Interfaces.ILocation>; | ||
public getAttachments(type: 'venue'): Array<Venue>; | ||
public getAttachments(type: 'venue'): Array<Interfaces.IVenue>; | ||
public getAttachments(type: 'poll'): Array<Poll>; | ||
public getAttachments(type: 'poll'): Array<Interfaces.IPoll>; | ||
public getAttachments(type?: Types.AttachmentTypes): boolean; | ||
public newChatMembers?: Array<User>; | ||
public newChatMembers?: Array<Interfaces.IUser>; | ||
public leftChatMember?: User; | ||
public leftChatMember?: Interfaces.IUser; | ||
public newChatTitle?: string; | ||
public newChatPhoto?: Array<PhotoSize>; | ||
public newChatPhoto?: Array<Interfaces.IPhotoSize>; | ||
@@ -139,11 +142,11 @@ public deleteChatPhoto?: true; | ||
public invoice?: Invoice; | ||
public invoice?: Interfaces.IInvoice; | ||
public successfulPayment?: SuccessfulPayment; | ||
public successfulPayment?: Interfaces.ISuccessfulPayment; | ||
public connectedWebsite?: string; | ||
public passportData?: PassportData; | ||
public passportData?: Interfaces.IPassportData; | ||
public replyMarkup?: InlineKeyboardMarkup; | ||
public replyMarkup?: Interfaces.IInlineKeyboardMarkup; | ||
@@ -150,0 +153,0 @@ public isEvent: boolean; |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let MessageContext = require('./message'); | ||
let ReplyMessageContext = require('./reply-message'); | ||
@@ -608,9 +609,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -617,0 +611,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -310,9 +311,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -319,0 +313,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,8 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import MessageContext from './message'; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Context from './context'; | ||
type MessageOrTrue = MessageContext | true; | ||
declare class InlineQuery extends Context { | ||
@@ -9,0 +6,0 @@ public constructor(telegram: Params.ITelegramParams, update: object); |
@@ -1,3 +0,3 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +4,0 @@ import InvoiceStructure from '../structures/invoice'; |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let MessageContext = require('./message'); | ||
let User = require('../structures/user'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -8,0 +11,0 @@ let InvoiceStructure = require('../structures/invoice'); |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -310,9 +311,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -319,0 +313,0 @@ return this.telegram.api.sendChatAction({ |
@@ -26,2 +26,3 @@ let { inspect } = require('util'); | ||
let Dice = require('../structures/dice'); | ||
let Poll = require('../structures/poll'); | ||
let EVENTS = require('../structures/events'); | ||
@@ -28,0 +29,0 @@ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let MessageContext = require('./message'); | ||
let User = require('../structures/user'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -8,0 +11,0 @@ class MigrateFromChatId extends Context { |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let MessageContext = require('./message'); | ||
let User = require('../structures/user'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -8,0 +11,0 @@ class MigrateToChatId extends Context { |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -312,9 +313,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -321,0 +315,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let PhotoSize = require('../structures/photo-size'); | ||
@@ -316,9 +317,2 @@ let PhotoAttachment = require('../structures/photo'); | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -411,10 +405,2 @@ return this.telegram.api.sendChatAction({ | ||
get eventPhoto() { | ||
return new PhotoAttachment( | ||
...this.update.new_chat_photo.map( | ||
e => new PhotoSize(e), | ||
) | ||
); | ||
} | ||
async sendDice(params = {}) { | ||
@@ -421,0 +407,0 @@ let response = await this.telegram.api.sendDice({ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -310,9 +311,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -319,0 +313,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let Message = require('./message'); | ||
@@ -314,9 +315,2 @@ let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -323,0 +317,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,3 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Context from './context'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,3 +0,3 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Context from './context'; | ||
@@ -4,0 +4,0 @@ import Types from '../../typings/types'; |
@@ -1,3 +0,3 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Context from './context'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -8,9 +10,2 @@ import Context from './context'; | ||
type Attachment = | ||
| Audio | Document | Animation | ||
| Game | PhotoSize | Sticker | ||
| Video | Voice | VideoNote | ||
| Contact | Location | Venue | ||
| Poll; | ||
declare class ReplyMessage extends Context { | ||
@@ -31,5 +26,5 @@ public constructor(telegram: Params.ITelegramParams, update: object); | ||
public forwardFrom?: User; | ||
public forwardFrom?: Interfaces.IUser; | ||
public forwardFromChat?: User; | ||
public forwardFromChat?: Interfaces.IUser; | ||
@@ -62,33 +57,33 @@ public forwardFromMessageId?: number; | ||
public audio?: Audio; | ||
public audio?: Interfaces.IAudio; | ||
public document?: Document; | ||
public document?: Interfaces.IDocument; | ||
public animation?: Animation; | ||
public animation?: Interfaces.IAnimation; | ||
public game?: Game; | ||
public game?: Interfaces.IGame; | ||
public photo?: Interfaces.PhotoAttachment; | ||
public sticker?: Sticker; | ||
public sticker?: Interfaces.ISticker; | ||
public video?: Video; | ||
public video?: Interfaces.IVideo; | ||
public voice?: Voice; | ||
public voice?: Interfaces.IVoice; | ||
public videoNote?: VideoNote; | ||
public videoNote?: Interfaces.IVideoNote; | ||
public caption?: string; | ||
public contact?: Contact; | ||
public contact?: Interfaces.IContact; | ||
public location?: Location; | ||
public location?: Interfaces.ILocation; | ||
public venue?: Venue; | ||
public venue?: Interfaces.IVenue; | ||
public poll?: Poll; | ||
public poll?: Interfaces.IPoll; | ||
public dice?: Dice; | ||
public dice?: Interfaces.IDice; | ||
public attachments: Array<Attachment>; | ||
public attachments: Array<Types.Attachments>; | ||
@@ -127,3 +122,3 @@ public hasAttachments(type?: Types.AttachmentTypes): boolean; | ||
public leftChatMember?: User; | ||
public leftChatMember?: Interfaces.IUser; | ||
@@ -130,0 +125,0 @@ public newChatTitle?: string; |
let { inspect } = require('util'); | ||
let MessageContext = require('./message'); | ||
let User = require('../structures/user'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -485,9 +489,2 @@ let { filterPayload } = require('../utils'); | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -494,0 +491,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,3 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Context from './context'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let SuccessfulPaymentStructure = require('../structures/successful-payment'); | ||
@@ -311,9 +312,2 @@ let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -320,0 +314,0 @@ return this.telegram.api.sendChatAction({ |
@@ -1,3 +0,5 @@ | ||
import Params from "../../typings/params"; | ||
import Interfaces from "../../typings/interfaces"; | ||
import Params from '../../typings/params'; | ||
import Interfaces from '../../typings/interfaces'; | ||
import Types from '../../typings/types'; | ||
import MessageContext from './message'; | ||
@@ -4,0 +6,0 @@ import Context from './context'; |
@@ -8,2 +8,3 @@ let { inspect } = require('util'); | ||
let Chat = require('../structures/chat'); | ||
let Poll = require('../structures/poll'); | ||
let UserProfilePhotos = require('../structures/user-profile-photos'); | ||
@@ -310,9 +311,2 @@ | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -319,0 +313,0 @@ return this.telegram.api.sendChatAction({ |
@@ -8,3 +8,3 @@ let { inspect } = require('util'); | ||
this.sizes = sizes; | ||
this.sorted = this.sort( | ||
@@ -11,0 +11,0 @@ (a, b) => (b.width * b.height) - (a.width * a.height) |
@@ -56,2 +56,5 @@ let { inspect } = require('util'); | ||
languageCode: this.languageCode, | ||
canJoinGroups: this.canJoinGroups, | ||
canReadAllGroupMessages: this.canReadAllGroupMessages, | ||
supportsInlineQueries: this.supportsInlineQueries | ||
}; | ||
@@ -58,0 +61,0 @@ |
@@ -13,3 +13,3 @@ let https = require('https'); | ||
keepAliveMsecs: 1000, | ||
}), | ||
}) | ||
}) { | ||
@@ -16,0 +16,0 @@ this.token = token; |
@@ -119,3 +119,3 @@ let middlewareIo = require('middleware-io'); | ||
startPolling() { | ||
async startPolling() { | ||
if (this.isStarted) { | ||
@@ -128,3 +128,3 @@ throw new Error('Polling is already started'); | ||
try { | ||
return this.startFetchLoop(); | ||
this.startFetchLoop(); | ||
} catch (e) { | ||
@@ -142,8 +142,4 @@ this.isStarted = false; | ||
async startFetchLoop() { | ||
try { | ||
while (this.isStarted) { | ||
await this.fetchUpdates(); | ||
} | ||
} catch (e) { | ||
throw e; | ||
while (this.isStarted) { | ||
await this.fetchUpdates(); | ||
} | ||
@@ -150,0 +146,0 @@ } |
@@ -110,1 +110,17 @@ import Keyboard from '../src/attachments/keyboard'; | ||
export type DiceTypes = 'dice' | 'darts' | 'ball'; | ||
export type Attachments = | ||
| Interfaces.PhotoAttachment | ||
| Interfaces.IAudio | ||
| Interfaces.IDocument | ||
| Interfaces.IAnimation | ||
| Interfaces.IGame | ||
| Array<Interfaces.IPhotoSize> | ||
| Interfaces.ISticker | ||
| Interfaces.IVideo | ||
| Interfaces.IVoice | ||
| Interfaces.IVideoNote | ||
| Interfaces.IContact | ||
| Interfaces.ILocation | ||
| Interfaces.IVenue | ||
| Interfaces.IPoll; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
772322
0
56
23271