Exemplo n.º 1
0
 /// <summary>
 /// Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use
 /// </summary>
 public static Task <Ok> SetChatLocationAsync(
     this Client client, long chatId = default, ChatLocation location = default)
 {
     return(client.ExecuteAsync(new SetChatLocation
     {
         ChatId = chatId, Location = location
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat
 /// </summary>
 public static Task <Chat> CreateNewSupergroupChatAsync(
     this Client client, string title = default, bool isChannel = default, string description = default,
     ChatLocation location            = default)
 {
     return(client.ExecuteAsync(new CreateNewSupergroupChat
     {
         Title = title, IsChannel = isChannel, Description = description, Location = location
     }));
 }