GroupMeBotFactory GetFirstBotByNameAndGroup Method CkSoftware GroupMe SDK - Documentation
Tries to find the bot using the given bot-name and group id.

Namespace: CkSoftware.GroupMe.Sdk.Bot
Assembly: CkSoftware.GroupMe.Sdk.Bot (in CkSoftware.GroupMe.Sdk.Bot.dll) Version: 1.0.1.35397 (1.0.1.0)
Syntax

public Task<GroupMeBot> GetFirstBotByNameAndGroup(
	string name,
	string groupId
)

Parameters

name
Type: System String
The bot name to search for (case insensitive).
groupId
Type: System String
the group-id where the bot should live in.

Return Value

Type: Task GroupMeBot 
Awaitable task resulting in an instance of GroupMeBot if the bot was found. Throws exception if not!
Exceptions

ExceptionCondition
InvalidOperationExceptionOccurs when there is no bot with the given name and group-id.
See Also