tock / ai.tock.bot.connector.twitter / withTwitter

# withTwitter

`fun BotBus.withTwitter(messageProvider: () -> TwitterConnectorMessage): BotBus` (source)

Adds a Twitter ConnectorMessage if the current connector is Twitter and the interface is not public. You need to call BotBus.send or BotBus.end later to send this message.

`fun BotBus.withTwitter(connectorId: String, messageProvider: () -> TwitterConnectorMessage): BotBus` (source)

Adds a Twitter ConnectorMessage if the current connector is Twitter and the current connector is connectorId. You need to call T:BusT.send or T:BusT.end later to send this message.