Update Generator.cs
- Markup Generator: Updating MentionUser
This commit is contained in:
@@ -39,11 +39,22 @@ namespace TelegramBotBase.Markdown
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="title"></param>
|
||||
/// <returns></returns>
|
||||
public static String MentionUser(this long userId, String title = null)
|
||||
public static String MentionUser(this int userId, String title = null)
|
||||
{
|
||||
return Link("tg://user?id=" + userId.ToString(), title);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a Link to the User, title is optional.
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="title"></param>
|
||||
/// <returns></returns>
|
||||
public static String MentionUser(this String username, String title = null)
|
||||
{
|
||||
return Link("tg://user?id=" + username, title);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a bold text in Markdown or HTML
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user