BotChannel class
The channel operator of a bot.
This is used for creating, updating, and deleting intents and objects of a bot.
Constructors
- BotChannel.of(Bot _bot)
- Create a new bot channel.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connectToFacebook(
{required String callbackUrl, bool autoRedirect = true, bool newWindow = false}) → Future< String?> - Connect this bot to a facebook channel. You will have to manually store the access token and the facebook user id that you get from the facebook login page using callbackUrl.
-
connectToLineManual(
{required String accessToken, required String secret}) → Future< void> - Connect this bot to a line channel with the "manual" approach.
-
connectToLineModular(
{required String callbackUrl, bool autoRedirect = true, bool newWindow = false}) → Future< String?> - Connect this bot to a line channel with the "modular" approach.
-
disconnectFacbook(
{required String fuid, required String accessToken}) → Future< void> - Disconnect facebook from this bot.
-
disconnectFromLine(
) → Future< void> - Disconnect this bot from a connected line channel.
-
getFacebookPages(
{required String fuid, required String accessToken}) → Future< List< BotFacebookPage> ?> - Get the facebook pages that are connected to this bot.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setChannelActiveStatus(
{required String channel, required bool status}) → Future< void> - Set the active status of a channel.
-
subscribeFacebookPage(
{required BotFacebookPage page, required String fuid, required String accessToken}) → Future< void> - Subscribe this bot to a facebook page.
-
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribeFacebookPage(
{required BotFacebookPage page, required String fuid, required String accessToken}) → Future< void> - Unsubscribe this bot from a facebook page.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited