getAttachMenuBot method

Future<Result<AttachMenuBotsBotBase>> getAttachMenuBot({
  1. required InputUserBase bot,
})

Get Attach Menu Bot.

ID: 77216192.

Implementation

Future<Result<AttachMenuBotsBotBase>> getAttachMenuBot({
  required InputUserBase bot,
}) async {
  // Preparing the request.
  final request = MessagesGetAttachMenuBot(
    bot: bot,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<AttachMenuBotsBotBase>();
}