Skip to content

Conversation

@chentsulin
Copy link
Collaborator

@chentsulin chentsulin commented Jan 18, 2018

context.answerInlineQuery(
  [
    {
      type: 'photo',
      id: 'UNIQUE_ID',
      photo_file_id: 'FILE_ID',
      title: 'PHOTO_TITLE',
    },
    {
      type: 'audio',
      id: 'UNIQUE_ID',
      audio_file_id: 'FILE_ID',
      caption: 'AUDIO_TITLE',
    },
  ],
  {
    cache_time: 1000,
  }
);

if (!this._event.isInlineQuery) {
warning(
false,
'answerInlineQuery: should not be called to answer InlineQuery event'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should only be called to answer InlineQuery event

@chentsulin chentsulin force-pushed the context.answerInlineQuery branch from 0cd8f9f to e54d88a Compare January 18, 2018 05:13
@chentsulin chentsulin changed the title Implement context.context.answerInlineQuery for Telegram Implement context.answerInlineQuery for Telegram Jan 18, 2018
@chentsulin chentsulin merged commit 3d7e7db into master Jan 18, 2018
@chentsulin chentsulin deleted the context.answerInlineQuery branch January 18, 2018 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants