Update Generator.cs
- Markup Generator: Updating MentionUser
This commit is contained in:
parent
6a62d73fe0
commit
5a1e050aec
@ -39,11 +39,22 @@ namespace TelegramBotBase.Markdown
|
|||||||
/// <param name="userId"></param>
|
/// <param name="userId"></param>
|
||||||
/// <param name="title"></param>
|
/// <param name="title"></param>
|
||||||
/// <returns></returns>
|
/// <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);
|
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>
|
/// <summary>
|
||||||
/// Returns a bold text in Markdown or HTML
|
/// Returns a bold text in Markdown or HTML
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user