PurTahan
PurTahan

Reputation: 1003

Send InLine message to channel with bot

Is it possible to Send InlineMessage to Channel with Bot Automatically ?

in InlineMessage after trying user to use Inline method Telegram sends InlineQueryUpdate, after that Bot should AnswerInlineQuery with InlineQueryResults. and then, User after select any of InlineQueryResults , Result is Send to user.

In channel because no body there to select any of Results, InlineKeyboardSwitchInlineQueryButton is removed from Markup.

So, What we can do?


EDIT:
Additional Information:
There is one Bot and One Channel. Bot is Admin of Channel. Bot has inLine Mode and inLine Reply Keyboard

Problem:
When Bot sends Message (without any human user) with inLine Reply Keyboard to Channel, inLine Reply Buttons are Removes from Keyboard.
But when I send message (with human user) to channel via inLine Mode of Bot, every thing is OK.

What I Need?
I Need Send Message to Channel via Bot without any human user. or Best solution for this.

Upvotes: 5

Views: 1748

Answers (1)

Kondal
Kondal

Reputation: 2970

First of all, what language and library are you using? The method for doing this will differ vastly.

If it's Discord.JS, you need to get the channel object from somewhere. Either get a message's channel 'message.channel', find one from a server 'server.channels.find("name", "servernamehere")' or a ton of other different ways.

Upvotes: -1

Related Questions