24 lines
773 B
Markdown
24 lines
773 B
Markdown
---
|
|
title: searchPublicChat
|
|
description: Searches public chat by its username. Currently only private and channel chats can be public. Returns chat if found, otherwise some error is returned
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Method: searchPublicChat
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
|
|
|
|
|
|
Searches public chat by its username. Currently only private and channel chats can be public. Returns chat if found, otherwise some error is returned
|
|
|
|
### Parameters:
|
|
|
|
| Name | Type | Description | Required |
|
|
|----------|---------------|-------------|----------|
|
|
|username|[string](../types/string.md) | Username to be resolved | Yes|
|
|
|
|
|
|
### Return type: [Chat](../types/Chat.md)
|
|
|