<commit_before>﻿using NetTelebot.Result;
using RestSharp;

namespace NetTelebot
{
    /* About tests
    * After adding the class field, you need to add the following tests:
    *  
    * NetTelebot.Tests.RequestToMockTest.[ClassName]
    * 
    * [ClassName] = TelegramBotClientTest if you want to test the method
    * [ClassName] = TelegramBotGetUpdatesTest if you are testing for updates
    * [ClassName] = TelegramBotInlineKeyboardTest or TelegramBotKeyboardTest if you test keyboard.
    * [ClassName] = TelegramBotEventHandlerTest if you test event handler
    * 
    * Also you can check how the written added methods work in the namespace classes NetTelebot.Tests.RequestToTelegramTest.
    * There are requests to the telegram servers
    */

    /* About this partial class
     * 
     * Part of the class, for work with sticker methods.
     * See API https://core.telegram.org/bots/api#stickers
     * 
     */

    public partial class TelegramBotClient
    {
        private const string mGetStickerSet = "/bot{0}/getStickerSet";
        private const string mDeleteStickerFromSet = "/bot{0}/deleteStickerFromSet";

        /// <summary>
        /// Use this method to get a sticker set
        /// </summary>
        /// <param name="name">Name of the sticker set</param>
        /// <returns>On success, a <see cref="StickerSetInfoResult"/> is returned.</returns>
        public StickerSetInfoResult GetStickerSet(string name)
        {
            RestRequest request = NewRestRequest(mGetStickerSet);

            request.AddParameter("name", name);

            return ExecuteRequest<StickerSetInfoResult>(request) as StickerSetInfoResult; 
        }

        /// <summary>
        /// Use this method to delete a sticker from a set created by the bot. 
        /// </summary>
        /// <param name="sticker">File identifier of the sticker </param>
        /// <returns>True on success</returns>
        public BooleanResult DeleteStickerFromSet(string sticker)
        {
            RestRequest request = NewRestRequest(mDeleteStickerFromSet);

            request.AddParameter("sticker", sticker);

            return  ExecuteRequest<BooleanResult>(request) as BooleanResult;
        }
    }
}<commit_msg>Added: SetStickerPositionSet method<commit_after>﻿using NetTelebot.Result;
using RestSharp;

namespace NetTelebot
{
    /* About tests
    * After adding the class field, you need to add the following tests:
    *  
    * NetTelebot.Tests.RequestToMockTest.[ClassName]
    * 
    * [ClassName] = TelegramBotClientTest if you want to test the method
    * [ClassName] = TelegramBotGetUpdatesTest if you are testing for updates
    * [ClassName] = TelegramBotInlineKeyboardTest or TelegramBotKeyboardTest if you test keyboard.
    * [ClassName] = TelegramBotEventHandlerTest if you test event handler
    * 
    * Also you can check how the written added methods work in the namespace classes NetTelebot.Tests.RequestToTelegramTest.
    * There are requests to the telegram servers
    */

    /* About this partial class
     * 
     * Part of the class, for work with sticker methods.
     * See API https://core.telegram.org/bots/api#stickers
     * 
     */

    public partial class TelegramBotClient
    {
        private const string mGetStickerSet = "/bot{0}/getStickerSet";
        private const string mSetStickerPositionInSet = "/bot{0}/setStickerPositionInSet";
        private const string mDeleteStickerFromSet = "/bot{0}/deleteStickerFromSet";

        /// <summary>
        /// Use this method to get a sticker set
        /// </summary>
        /// <param name="name">Name of the sticker set</param>
        /// <returns>On success, a <see cref="StickerSetInfoResult"/> is returned.</returns>
        public StickerSetInfoResult GetStickerSet(string name)
        {
            RestRequest request = NewRestRequest(mGetStickerSet);

            request.AddParameter("name", name);

            return ExecuteRequest<StickerSetInfoResult>(request) as StickerSetInfoResult; 
        }

        /// <summary>
        /// Use this method to move a sticker in a set created by the bot to a specific position.
        /// </summary>
        /// <param name="sticker">File identifier of the sticker</param>
        /// <param name="position">New sticker position in the set, zero-based</param>
        /// <returns>True on success</returns>
        public BooleanResult SetStickerPositionSet(string sticker, int position)
        {
            RestRequest request = NewRestRequest(mSetStickerPositionInSet);

            request.AddParameter("sticker", sticker);
            request.AddParameter("position", position);

            return ExecuteRequest<BooleanResult>(request) as BooleanResult;
        }

        /// <summary>
        /// Use this method to delete a sticker from a set created by the bot. 
        /// </summary>
        /// <param name="sticker">File identifier of the sticker </param>
        /// <returns>True on success</returns>
        public BooleanResult DeleteStickerFromSet(string sticker)
        {
            RestRequest request = NewRestRequest(mDeleteStickerFromSet);

            request.AddParameter("sticker", sticker);

            return  ExecuteRequest<BooleanResult>(request) as BooleanResult;
        }
    }
}
{'fraction_non_alphanumeric': 0.09072009072009073, 'fraction_numerical': 0.000945000945000945, 'mean_word_length': 2.62217659137577, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 42, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5700617', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1370, 'n_words': 421}