Updating to TelegramBotFramework 16.0.2

ATTENTION: UserIds will no longer be "int", instead it has to be of the long datatype
- updating DeviceSession methods for new datatype
- updating LinkReplaceTest class example
- adding .NET 5 as target framework
This commit is contained in:
FlorianDahn
2021-07-17 18:34:27 +02:00
parent 47aa8c2aaa
commit 5613e84bc3
3 changed files with 10 additions and 9 deletions
+4 -4
View File
@@ -700,7 +700,7 @@ namespace TelegramBotBase.Sessions
#region "Users"
public virtual async Task RestrictUser(int userId, ChatPermissions permissions, DateTime until = default(DateTime))
public virtual async Task RestrictUser(long userId, ChatPermissions permissions, DateTime until = default(DateTime))
{
try
{
@@ -712,7 +712,7 @@ namespace TelegramBotBase.Sessions
}
}
public virtual async Task<ChatMember> GetChatUser(int userId)
public virtual async Task<ChatMember> GetChatUser(long userId)
{
try
{
@@ -725,7 +725,7 @@ namespace TelegramBotBase.Sessions
return null;
}
public virtual async Task KickUser(int userId, DateTime until = default(DateTime))
public virtual async Task KickUser(long userId, DateTime until = default(DateTime))
{
try
{
@@ -737,7 +737,7 @@ namespace TelegramBotBase.Sessions
}
}
public virtual async Task UnbanUser(int userId)
public virtual async Task UnbanUser(long userId)
{
try
{