Skip to content

Commit

Permalink
Remove get_nearby_chats method
Browse files Browse the repository at this point in the history
  • Loading branch information
KurimuzonAkuma committed Sep 10, 2024
1 parent 6684eaf commit 40e6578
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 87 deletions.
1 change: 0 additions & 1 deletion compiler/docs/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ def get_title_list(s: str) -> list:
get_dialogs
get_dialogs_count
set_chat_username
get_nearby_chats
archive_chats
unarchive_chats
add_chat_members
Expand Down
2 changes: 0 additions & 2 deletions pyrogram/methods/chats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
from .get_folders import GetFolders
from .get_forum_topics import GetForumTopics
from .get_forum_topics_by_id import GetForumTopicsByID
from .get_nearby_chats import GetNearbyChats
from .get_personal_channels import GetPersonalChannels
from .get_send_as_chats import GetSendAsChats
from .join_chat import JoinChat
Expand Down Expand Up @@ -121,7 +120,6 @@ class Chats(
DeleteSupergroup,
EditForumTopic,
ExportFolderLink,
GetNearbyChats,
GetPersonalChannels,
SetAdministratorTitle,
SetSlowMode,
Expand Down
78 changes: 0 additions & 78 deletions pyrogram/methods/chats/get_nearby_chats.py

This file was deleted.

6 changes: 0 additions & 6 deletions pyrogram/types/user_and_chats/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ class Chat(Object):
permissions (:obj:`~pyrogram.types.ChatPermissions` *optional*):
Default chat member permissions, for groups and supergroups.
distance (``int``, *optional*):
Distance in meters of this group chat from your location.
Returned only in :meth:`~pyrogram.Client.get_nearby_chats`.
personal_channel (:obj:`~pyrogram.types.Chat`, *optional*):
The personal channel linked to this chat.
Returned only in :meth:`~pyrogram.Client.get_chat`.
Expand Down Expand Up @@ -306,7 +302,6 @@ def __init__(
members_count: int = None,
restrictions: List["types.Restriction"] = None,
permissions: "types.ChatPermissions" = None,
distance: int = None,
personal_channel: "types.Chat" = None,
personal_channel_message: "types.Message" = None,
linked_chat: "types.Chat" = None,
Expand Down Expand Up @@ -377,7 +372,6 @@ def __init__(
self.members_count = members_count
self.restrictions = restrictions
self.permissions = permissions
self.distance = distance
self.personal_channel = personal_channel
self.personal_channel_message = personal_channel_message
self.linked_chat = linked_chat
Expand Down

2 comments on commit 40e6578

@SpEcHiDe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

@KurimuzonAkuma
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Because telegram removed it from app?

https://t.me/durov/343

Please sign in to comment.