mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 10:36:54 +01:00
23 lines
694 B
Markdown
23 lines
694 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
|
|
---
|
|
## 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
|
|
|
|
### Params:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|username|[string](../types/string.md) | Yes|Username to be resolved|
|
|
|
|
|
|
### Return type: [Chat](../types/Chat.md)
|
|
|